From 29a27ccad2305766e5fc99354a5a4848d64b4432 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Apr 2021 18:50:04 +0000 Subject: [PATCH 01/54] chore: release 0.4.2-SNAPSHOT (#240) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-aiplatform-bom/pom.xml | 12 ++++++------ google-cloud-aiplatform/pom.xml | 4 ++-- grpc-google-cloud-aiplatform-v1/pom.xml | 4 ++-- grpc-google-cloud-aiplatform-v1beta1/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-aiplatform-v1/pom.xml | 4 ++-- proto-google-cloud-aiplatform-v1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index 0372b7037..59e1527ed 100644 --- a/google-cloud-aiplatform-bom/pom.xml +++ b/google-cloud-aiplatform-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 0.4.1 + 0.4.2-SNAPSHOT pom com.google.cloud @@ -68,27 +68,27 @@ com.google.cloud google-cloud-aiplatform - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 0.4.1 + 0.4.2-SNAPSHOT diff --git a/google-cloud-aiplatform/pom.xml b/google-cloud-aiplatform/pom.xml index 6daa0cc40..98ecd66c8 100644 --- a/google-cloud-aiplatform/pom.xml +++ b/google-cloud-aiplatform/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 0.4.1 + 0.4.2-SNAPSHOT jar Google AI Platform https://github.com/googleapis/java-aiplatform @@ -11,7 +11,7 @@ com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 0.4.2-SNAPSHOT google-cloud-aiplatform diff --git a/grpc-google-cloud-aiplatform-v1/pom.xml b/grpc-google-cloud-aiplatform-v1/pom.xml index 04915214e..2683b0a26 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 + 0.4.2-SNAPSHOT grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 0.4.2-SNAPSHOT diff --git a/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 0f9a7bc13..1a7b32b96 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.4.2-SNAPSHOT grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 0.4.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index aaec93cf0..b54a1d313 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 0.4.1 + 0.4.2-SNAPSHOT Google AI Platform Parent https://github.com/googleapis/java- @@ -70,27 +70,27 @@ com.google.cloud google-cloud-aiplatform - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 0.4.1 + 0.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.4.1 + 0.4.2-SNAPSHOT com.google.cloud diff --git a/proto-google-cloud-aiplatform-v1/pom.xml b/proto-google-cloud-aiplatform-v1/pom.xml index 2a402abb9..e18bcb9e3 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 + 0.4.2-SNAPSHOT proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 0.4.2-SNAPSHOT diff --git a/proto-google-cloud-aiplatform-v1beta1/pom.xml b/proto-google-cloud-aiplatform-v1beta1/pom.xml index 3c426d1a0..1b85ad4f0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.4.1 + 0.4.2-SNAPSHOT proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 0.4.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f24890ded..9d0524d32 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-aiplatform - 0.4.1 + 0.4.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6a2489973..482a2b1c3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-aiplatform:0.4.1:0.4.1 -proto-google-cloud-aiplatform-v1:0.4.1:0.4.1 -proto-google-cloud-aiplatform-v1beta1:0.4.1:0.4.1 -grpc-google-cloud-aiplatform-v1:0.4.1:0.4.1 -grpc-google-cloud-aiplatform-v1beta1:0.4.1:0.4.1 \ No newline at end of file +google-cloud-aiplatform:0.4.1:0.4.2-SNAPSHOT +proto-google-cloud-aiplatform-v1:0.4.1:0.4.2-SNAPSHOT +proto-google-cloud-aiplatform-v1beta1:0.4.1:0.4.2-SNAPSHOT +grpc-google-cloud-aiplatform-v1:0.4.1:0.4.2-SNAPSHOT +grpc-google-cloud-aiplatform-v1beta1:0.4.1:0.4.2-SNAPSHOT \ No newline at end of file From c24be7033e5d002d16d9262e45b9a9478257b414 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Apr 2021 11:52:05 -0700 Subject: [PATCH 02/54] chore: regenerate README (#241) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-15 18:46:16,589 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-aiplatform/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-15 18:46:17,920 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/d0ee4b50-a1a5-4f99-9594-5641745a7717/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 3afa47fcc..27185bbac 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": "51a06f423a97e7ffa51a1a713e1bdf2f7eaa73da" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "043cc620d6a6111816d9e09f2a97208565fde958" } } ] diff --git a/README.md b/README.md index c054105aa..e9490c322 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ 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.1.0') compile 'com.google.cloud:google-cloud-aiplatform' ``` From a169f45193280f71b7b5a662cc93176c451c1bca Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Thu, 15 Apr 2021 12:59:48 -0700 Subject: [PATCH 03/54] samples: updates samples to v1 (1 of 8) (#206) * samples: updates samples to v1 * samples: adds NLP batch jobs * samples: update copyright, added some env vars * fix: test teardowns --- .../CancelBatchPredictionJobSample.java | 8 +- .../CancelDataLabelingJobSample.java | 8 +- .../CancelTrainingPipelineSample.java | 8 +- ...reateBatchPredictionJobBigquerySample.java | 18 +- .../CreateBatchPredictionJobSample.java | 30 ++- ...PredictionJobTextClassificationSample.java | 94 +++++++++ ...edictionJobTextEntityExtractionSample.java | 95 +++++++++ ...dictionJobTextSentimentAnalysisSample.java | 94 +++++++++ ...ictionJobVideoActionRecognitionSample.java | 25 +-- ...redictionJobVideoClassificationSample.java | 56 +++--- ...redictionJobVideoObjectTrackingSample.java | 50 ++--- ...teDataLabelingJobActiveLearningSample.java | 14 +- .../CreateDataLabelingJobImageSample.java | 12 +- .../CreateDataLabelingJobSample.java | 10 +- ...teDataLabelingJobSpecialistPoolSample.java | 16 +- .../CreateDataLabelingJobVideoSample.java | 10 +- ...ineCustomTrainingManagedDatasetSample.java | 2 +- ...ingPipelineImageObjectDetectionSample.java | 3 - ...ngPipelineTabularClassificationSample.java | 38 ++-- ...ainingPipelineTabularRegressionSample.java | 184 ++++++++++-------- ...iningPipelineTextClassificationSample.java | 4 +- ...ingPipelineTextEntityExtractionSample.java | 2 - ...gPipelineVideoActionRecognitionSample.java | 9 +- ...ningPipelineVideoObjectTrackingSample.java | 4 +- .../PredictImageClassificationSample.java | 14 +- .../PredictImageObjectDetectionSample.java | 9 +- .../PredictTabularClassificationSample.java | 4 +- .../PredictTabularRegressionSample.java | 3 +- ...ctTextClassificationSingleLabelSample.java | 6 +- .../PredictTextEntityExtractionSample.java | 5 +- ...ictionJobTextClassificationSampleTest.java | 113 +++++++++++ ...tionJobTextEntityExtractionSampleTest.java | 111 +++++++++++ ...ionJobTextSentimentAnalysisSampleTest.java | 111 +++++++++++ ...ctionJobVideoClassificationSampleTest.java | 3 +- ...ctionJobVideoObjectTrackingSampleTest.java | 2 +- .../CreateDataLabelingJobVideoSampleTest.java | 2 +- 36 files changed, 892 insertions(+), 285 deletions(-) create mode 100644 samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextClassificationSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSample.java create mode 100644 samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextClassificationSampleTest.java create mode 100644 samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSampleTest.java create mode 100644 samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSampleTest.java diff --git a/samples/snippets/src/main/java/aiplatform/CancelBatchPredictionJobSample.java b/samples/snippets/src/main/java/aiplatform/CancelBatchPredictionJobSample.java index 61931a9fd..495f0f885 100644 --- a/samples/snippets/src/main/java/aiplatform/CancelBatchPredictionJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/CancelBatchPredictionJobSample.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. @@ -18,9 +18,9 @@ // [START aiplatform_cancel_batch_prediction_job_sample] -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJobName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.BatchPredictionJobName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; import java.io.IOException; public class CancelBatchPredictionJobSample { diff --git a/samples/snippets/src/main/java/aiplatform/CancelDataLabelingJobSample.java b/samples/snippets/src/main/java/aiplatform/CancelDataLabelingJobSample.java index 9483c07e4..eb540687e 100644 --- a/samples/snippets/src/main/java/aiplatform/CancelDataLabelingJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/CancelDataLabelingJobSample.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. @@ -18,9 +18,9 @@ // [START aiplatform_cancel_data_labeling_job_sample] -import com.google.cloud.aiplatform.v1beta1.DataLabelingJobName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.DataLabelingJobName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; import java.io.IOException; public class CancelDataLabelingJobSample { diff --git a/samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.java b/samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.java index 4dd2902f3..a689ae246 100644 --- a/samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.java +++ b/samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.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. @@ -18,9 +18,9 @@ // [START aiplatform_cancel_training_pipeline_sample] -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.TrainingPipelineName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.TrainingPipelineName; import java.io.IOException; public class CancelTrainingPipelineSample { diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobBigquerySample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobBigquerySample.java index 5ccad051a..105268f2e 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobBigquerySample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobBigquerySample.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. @@ -17,13 +17,13 @@ package aiplatform; // [START aiplatform_create_batch_prediction_job_bigquery_sample] -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob; -import com.google.cloud.aiplatform.v1beta1.BigQueryDestination; -import com.google.cloud.aiplatform.v1beta1.BigQuerySource; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.BigQueryDestination; +import com.google.cloud.aiplatform.v1.BigQuerySource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ModelName; import com.google.gson.JsonObject; import com.google.protobuf.Value; import com.google.protobuf.util.JsonFormat; @@ -95,8 +95,6 @@ static void createBatchPredictionJobBigquerySample( .setModelParameters(modelParameters) .setInputConfig(inputConfig) .setOutputConfig(outputConfig) - // optional - .setGenerateExplanation(true) .build(); LocationName parent = LocationName.of(project, location); BatchPredictionJob response = client.createBatchPredictionJob(parent, batchPredictionJob); diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobSample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobSample.java index cdac97ba4..12bab04e1 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobSample.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. @@ -17,19 +17,18 @@ package aiplatform; // [START aiplatform_create_batch_prediction_job_sample] -import com.google.cloud.aiplatform.v1beta1.AcceleratorType; -import com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.GcsSource; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.MachineSpec; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.gson.JsonObject; +import com.google.cloud.aiplatform.util.ValueConverter; +import com.google.cloud.aiplatform.v1.AcceleratorType; +import com.google.cloud.aiplatform.v1.BatchDedicatedResources; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.MachineSpec; +import com.google.cloud.aiplatform.v1.ModelName; import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import java.io.IOException; public class CreateBatchPredictionJobSample { @@ -74,10 +73,7 @@ static void createBatchPredictionJobSample( try (JobServiceClient client = JobServiceClient.create(settings)) { // Passing in an empty Value object for model parameters - JsonObject jsonModelParameters = new JsonObject(); - Value.Builder modelParametersBuilder = Value.newBuilder(); - JsonFormat.parser().merge(jsonModelParameters.toString(), modelParametersBuilder); - Value modelParameters = modelParametersBuilder.build(); + Value modelParameters = ValueConverter.EMPTY_VALUE; GcsSource gcsSource = GcsSource.newBuilder().addUris(gcsSourceUri).build(); BatchPredictionJob.InputConfig inputConfig = diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextClassificationSample.java new file mode 100644 index 000000000..ba79bf14b --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextClassificationSample.java @@ -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. + */ + +package aiplatform; + +// [START aiplatform_create_batch_prediction_job_text_classification_sample] +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ModelName; +import java.io.IOException; + +public class CreateBatchPredictionJobTextClassificationSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "PROJECT"; + String location = "us-central1"; + String displayName = "DISPLAY_NAME"; + String modelId = "MODEL_ID"; + String gcsSourceUri = "GCS_SOURCE_URI"; + String gcsDestinationOutputUriPrefix = "GCS_DESTINATION_OUTPUT_URI_PREFIX"; + createBatchPredictionJobTextClassificationSample( + project, location, displayName, modelId, gcsSourceUri, gcsDestinationOutputUriPrefix); + } + + static void createBatchPredictionJobTextClassificationSample( + String project, + String location, + String displayName, + String modelId, + String gcsSourceUri, + String gcsDestinationOutputUriPrefix) + throws IOException { + // The AI Platform services require regional API endpoints. + JobServiceSettings settings = + JobServiceSettings.newBuilder() + .setEndpoint("us-central1-aiplatform.googleapis.com:443") + .build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient client = JobServiceClient.create(settings)) { + try { + String modelName = ModelName.of(project, location, modelId).toString(); + GcsSource gcsSource = GcsSource.newBuilder().addUris(gcsSourceUri).build(); + BatchPredictionJob.InputConfig inputConfig = + BatchPredictionJob.InputConfig.newBuilder() + .setInstancesFormat("jsonl") + .setGcsSource(gcsSource) + .build(); + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(gcsDestinationOutputUriPrefix).build(); + BatchPredictionJob.OutputConfig outputConfig = + BatchPredictionJob.OutputConfig.newBuilder() + .setPredictionsFormat("jsonl") + .setGcsDestination(gcsDestination) + .build(); + BatchPredictionJob batchPredictionJob = + BatchPredictionJob.newBuilder() + .setDisplayName(displayName) + .setModel(modelName) + .setInputConfig(inputConfig) + .setOutputConfig(outputConfig) + .build(); + LocationName parent = LocationName.of(project, location); + BatchPredictionJob response = client.createBatchPredictionJob(parent, batchPredictionJob); + System.out.format("response: %s\n", response); + } catch (ApiException ex) { + System.out.format("Exception: %s\n", ex.getLocalizedMessage()); + } + } + } +} + +// [END aiplatform_create_batch_prediction_job_text_classification_sample] diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSample.java new file mode 100644 index 000000000..e753da2ed --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSample.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 + * + * 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. + */ + +package aiplatform; + +// [START aiplatform_create_batch_prediction_job_text_entity_extraction_sample] +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ModelName; +import java.io.IOException; + +public class CreateBatchPredictionJobTextEntityExtractionSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "PROJECT"; + String location = "us-central1"; + String displayName = "DISPLAY_NAME"; + String modelId = "MODEL_ID"; + String gcsSourceUri = "GCS_SOURCE_URI"; + String gcsDestinationOutputUriPrefix = "GCS_DESTINATION_OUTPUT_URI_PREFIX"; + createBatchPredictionJobTextEntityExtractionSample( + project, location, displayName, modelId, gcsSourceUri, gcsDestinationOutputUriPrefix); + } + + static void createBatchPredictionJobTextEntityExtractionSample( + String project, + String location, + String displayName, + String modelId, + String gcsSourceUri, + String gcsDestinationOutputUriPrefix) + throws IOException { + // The AI Platform services require regional API endpoints. + JobServiceSettings settings = + JobServiceSettings.newBuilder() + .setEndpoint("us-central1-aiplatform.googleapis.com:443") + .build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient client = JobServiceClient.create(settings)) { + try { + String modelName = ModelName.of(project, location, modelId).toString(); + GcsSource gcsSource = GcsSource.newBuilder().addUris(gcsSourceUri).build(); + BatchPredictionJob.InputConfig inputConfig = + BatchPredictionJob.InputConfig.newBuilder() + .setInstancesFormat("jsonl") + .setGcsSource(gcsSource) + .build(); + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(gcsDestinationOutputUriPrefix).build(); + BatchPredictionJob.OutputConfig outputConfig = + BatchPredictionJob.OutputConfig.newBuilder() + .setPredictionsFormat("jsonl") + .setGcsDestination(gcsDestination) + .build(); + BatchPredictionJob batchPredictionJob = + BatchPredictionJob.newBuilder() + .setDisplayName(displayName) + .setModel(modelName) + .setInputConfig(inputConfig) + .setOutputConfig(outputConfig) + .build(); + LocationName parent = LocationName.of(project, location); + BatchPredictionJob response = client.createBatchPredictionJob(parent, batchPredictionJob); + System.out.format("response: %s\n", response); + System.out.format("\tname:%s\n", response.getName()); + } catch (ApiException ex) { + System.out.format("Exception: %s\n", ex.getLocalizedMessage()); + } + } + } +} + +// [END aiplatform_create_batch_prediction_job_text_entity_extraction_sample] diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSample.java new file mode 100644 index 000000000..8191618c9 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSample.java @@ -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. + */ + +package aiplatform; + +// [START aiplatform_create_batch_prediction_job_text_sentiment_analysis_sample] +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ModelName; +import java.io.IOException; + +public class CreateBatchPredictionJobTextSentimentAnalysisSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "PROJECT"; + String location = "us-central1"; + String displayName = "DISPLAY_NAME"; + String modelId = "MODEL_ID"; + String gcsSourceUri = "GCS_SOURCE_URI"; + String gcsDestinationOutputUriPrefix = "GCS_DESTINATION_OUTPUT_URI_PREFIX"; + createBatchPredictionJobTextSentimentAnalysisSample( + project, location, displayName, modelId, gcsSourceUri, gcsDestinationOutputUriPrefix); + } + + static void createBatchPredictionJobTextSentimentAnalysisSample( + String project, + String location, + String displayName, + String modelId, + String gcsSourceUri, + String gcsDestinationOutputUriPrefix) + throws IOException { + // The AI Platform services require regional API endpoints. + JobServiceSettings settings = + JobServiceSettings.newBuilder() + .setEndpoint("us-central1-aiplatform.googleapis.com:443") + .build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient client = JobServiceClient.create(settings)) { + try { + String modelName = ModelName.of(project, location, modelId).toString(); + GcsSource gcsSource = GcsSource.newBuilder().addUris(gcsSourceUri).build(); + BatchPredictionJob.InputConfig inputConfig = + BatchPredictionJob.InputConfig.newBuilder() + .setInstancesFormat("jsonl") + .setGcsSource(gcsSource) + .build(); + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(gcsDestinationOutputUriPrefix).build(); + BatchPredictionJob.OutputConfig outputConfig = + BatchPredictionJob.OutputConfig.newBuilder() + .setPredictionsFormat("jsonl") + .setGcsDestination(gcsDestination) + .build(); + BatchPredictionJob batchPredictionJob = + BatchPredictionJob.newBuilder() + .setDisplayName(displayName) + .setModel(modelName) + .setInputConfig(inputConfig) + .setOutputConfig(outputConfig) + .build(); + LocationName parent = LocationName.of(project, location); + BatchPredictionJob response = client.createBatchPredictionJob(parent, batchPredictionJob); + System.out.format("response: %s\n", response); + } catch (ApiException ex) { + System.out.format("Exception: %s\n", ex.getLocalizedMessage()); + } + } + } +} + +// [END aiplatform_create_batch_prediction_job_text_sentiment_analysis_sample] diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoActionRecognitionSample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoActionRecognitionSample.java index b255b625c..0d0f68e54 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoActionRecognitionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoActionRecognitionSample.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. @@ -17,16 +17,15 @@ package aiplatform; // [START aiplatform_create_batch_prediction_job_video_action_recognition_sample] -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.GcsSource; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.gson.JsonObject; +import com.google.cloud.aiplatform.util.ValueConverter; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ModelName; import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import java.io.IOException; public class CreateBatchPredictionJobVideoActionRecognitionSample { @@ -59,11 +58,7 @@ static void createBatchPredictionJobVideoActionRecognitionSample( // once, and can be reused for multiple requests. After completing all of your requests, call // the "close" method on the client to safely clean up any remaining background resources. try (JobServiceClient client = JobServiceClient.create(settings)) { - JsonObject jsonModelParameters = new JsonObject(); - jsonModelParameters.addProperty("confidenceThreshold", 0.5); - Value.Builder modelParametersBuilder = Value.newBuilder(); - JsonFormat.parser().merge(jsonModelParameters.toString(), modelParametersBuilder); - Value modelParameters = modelParametersBuilder.build(); + Value modelParameters = ValueConverter.EMPTY_VALUE; GcsSource gcsSource = GcsSource.newBuilder().addUris(gcsSourceUri).build(); BatchPredictionJob.InputConfig inputConfig = BatchPredictionJob.InputConfig.newBuilder() diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoClassificationSample.java index a89f2bfe3..905ab46b7 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoClassificationSample.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. @@ -18,26 +18,27 @@ // [START aiplatform_create_batch_prediction_job_video_classification_sample] -import com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; -import com.google.cloud.aiplatform.v1beta1.BigQueryDestination; -import com.google.cloud.aiplatform.v1beta1.BigQuerySource; -import com.google.cloud.aiplatform.v1beta1.CompletionStats; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.GcsSource; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.MachineSpec; -import com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.cloud.aiplatform.v1beta1.ResourcesConsumed; +import com.google.cloud.aiplatform.util.ValueConverter; +import com.google.cloud.aiplatform.v1.BatchDedicatedResources; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo; +import com.google.cloud.aiplatform.v1.BigQueryDestination; +import com.google.cloud.aiplatform.v1.BigQuerySource; +import com.google.cloud.aiplatform.v1.CompletionStats; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.MachineSpec; +import com.google.cloud.aiplatform.v1.ManualBatchTuningParameters; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ResourcesConsumed; +import com.google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; import com.google.protobuf.Any; import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import com.google.rpc.Status; import java.io.IOException; import java.util.List; @@ -75,11 +76,16 @@ static void createBatchPredictionJobVideoClassification( String location = "us-central1"; LocationName locationName = LocationName.of(project, location); - String jsonString = - "{\"confidenceThreshold\": 0.5,\"maxPredictions\": 10000,\"segmentClassification\":" - + " True,\"shotClassification\": True,\"oneSecIntervalClassification\": True}"; - Value.Builder modelParameters = Value.newBuilder(); - JsonFormat.parser().merge(jsonString, modelParameters); + VideoClassificationPredictionParams modelParamsObj = + VideoClassificationPredictionParams.newBuilder() + .setConfidenceThreshold(((float) 0.5)) + .setMaxPredictions(10000) + .setSegmentClassification(true) + .setShotClassification(true) + .setOneSecIntervalClassification(true) + .build(); + + Value modelParameters = ValueConverter.toValue(modelParamsObj); ModelName modelName = ModelName.of(project, location, modelId); GcsSource.Builder gcsSource = GcsSource.newBuilder(); @@ -112,8 +118,6 @@ static void createBatchPredictionJobVideoClassification( System.out.format("\tModel %s\n", batchPredictionJobResponse.getModel()); System.out.format( "\tModel Parameters: %s\n", batchPredictionJobResponse.getModelParameters()); - System.out.format( - "\tGenerate Explanation: %s\n", batchPredictionJobResponse.getGenerateExplanation()); System.out.format("\tState: %s\n", batchPredictionJobResponse.getState()); System.out.format("\tCreate Time: %s\n", batchPredictionJobResponse.getCreateTime()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSample.java b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSample.java index da0550b26..860bc8da8 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSample.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. @@ -18,26 +18,27 @@ // [START aiplatform_create_batch_prediction_job_video_object_tracking_sample] -import com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; -import com.google.cloud.aiplatform.v1beta1.BigQueryDestination; -import com.google.cloud.aiplatform.v1beta1.BigQuerySource; -import com.google.cloud.aiplatform.v1beta1.CompletionStats; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.GcsSource; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.MachineSpec; -import com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.cloud.aiplatform.v1beta1.ResourcesConsumed; +import com.google.cloud.aiplatform.util.ValueConverter; +import com.google.cloud.aiplatform.v1.BatchDedicatedResources; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo; +import com.google.cloud.aiplatform.v1.BigQueryDestination; +import com.google.cloud.aiplatform.v1.BigQuerySource; +import com.google.cloud.aiplatform.v1.CompletionStats; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.MachineSpec; +import com.google.cloud.aiplatform.v1.ManualBatchTuningParameters; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ResourcesConsumed; +import com.google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; import com.google.protobuf.Any; import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import com.google.rpc.Status; import java.io.IOException; import java.util.List; @@ -77,9 +78,12 @@ static void batchPredictionJobVideoObjectTracking( LocationName locationName = LocationName.of(project, location); ModelName modelName = ModelName.of(project, location, modelId); - String jsonString = "{\"confidenceThreshold\": 0.0}"; - Value.Builder modelParameters = Value.newBuilder(); - JsonFormat.parser().merge(jsonString, modelParameters); + VideoObjectTrackingPredictionParams modelParamsObj = + VideoObjectTrackingPredictionParams.newBuilder() + .setConfidenceThreshold(((float) 0.5)) + .build(); + + Value modelParameters = ValueConverter.toValue(modelParamsObj); GcsSource.Builder gcsSource = GcsSource.newBuilder(); gcsSource.addUris(gcsSourceUri); @@ -111,8 +115,6 @@ static void batchPredictionJobVideoObjectTracking( System.out.format("\tModel %s\n", batchPredictionJobResponse.getModel()); System.out.format( "\tModel Parameters: %s\n", batchPredictionJobResponse.getModelParameters()); - System.out.format( - "\tGenerate Explanation: %s\n", batchPredictionJobResponse.getGenerateExplanation()); System.out.format("\tState: %s\n", batchPredictionJobResponse.getState()); System.out.format("\tCreate Time: %s\n", batchPredictionJobResponse.getCreateTime()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobActiveLearningSample.java b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobActiveLearningSample.java index d9f069e40..1a0076fbc 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobActiveLearningSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobActiveLearningSample.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. @@ -17,12 +17,12 @@ package aiplatform; // [START aiplatform_create_data_labeling_job_active_learning_sample] -import com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig; -import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; -import com.google.cloud.aiplatform.v1beta1.DatasetName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.ActiveLearningConfig; +import com.google.cloud.aiplatform.v1.DataLabelingJob; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.protobuf.Value; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobImageSample.java b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobImageSample.java index 5ea70a42f..8d9dced5e 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobImageSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobImageSample.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. @@ -18,11 +18,11 @@ // [START aiplatform_create_data_labeling_job_image_sample] -import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; -import com.google.cloud.aiplatform.v1beta1.DatasetName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.DataLabelingJob; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import com.google.protobuf.Value; import com.google.protobuf.util.JsonFormat; import com.google.type.Money; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSample.java b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSample.java index 2858a7e80..a677169d7 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSample.java @@ -18,11 +18,11 @@ // [START aiplatform_create_data_labeling_job_sample] -import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; -import com.google.cloud.aiplatform.v1beta1.DatasetName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.DataLabelingJob; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import com.google.protobuf.Value; import com.google.protobuf.util.JsonFormat; import com.google.type.Money; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSpecialistPoolSample.java b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSpecialistPoolSample.java index 04a3c4216..528e4b2d0 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSpecialistPoolSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobSpecialistPoolSample.java @@ -17,12 +17,12 @@ package aiplatform; // [START aiplatform_create_data_labeling_job_specialist_pool_sample] -import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; -import com.google.cloud.aiplatform.v1beta1.DatasetName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.SpecialistPoolName; +import com.google.cloud.aiplatform.v1.DataLabelingJob; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.SpecialistPoolName; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.protobuf.Value; @@ -78,8 +78,8 @@ static void createDataLabelingJobSpecialistPoolSample( Value inputs = inputsBuilder.build(); String datasetName = DatasetName.of(project, location, dataset).toString(); - String specialistPoolName = SpecialistPoolName.of(project, location, specialistPool) - .toString(); + String specialistPoolName = + SpecialistPoolName.of(project, location, specialistPool).toString(); DataLabelingJob dataLabelingJob = DataLabelingJob.newBuilder() diff --git a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobVideoSample.java b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobVideoSample.java index ae0e451ba..cabf23997 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobVideoSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDataLabelingJobVideoSample.java @@ -18,11 +18,11 @@ // [START aiplatform_create_data_labeling_job_video_sample] -import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; -import com.google.cloud.aiplatform.v1beta1.DatasetName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.DataLabelingJob; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import com.google.protobuf.Value; import com.google.protobuf.util.JsonFormat; import com.google.type.Money; diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java index 739d15cf8..ea624de5b 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java @@ -113,7 +113,7 @@ static void createTrainingPipelineCustomTrainingManagedDatasetSample( .build(); GcsDestination gcsDestination = GcsDestination.newBuilder().setOutputUriPrefix(baseOutputUriPrefix).build(); - + // input_data_config InputDataConfig inputDataConfig = InputDataConfig.newBuilder() diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java index 9136cec90..78181e448 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java @@ -39,11 +39,8 @@ import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; import com.google.cloud.aiplatform.v1beta1.TimestampSplit; import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType; -import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import com.google.rpc.Status; import java.io.IOException; diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java index d37bbf6eb..0ee0392db 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java @@ -41,8 +41,6 @@ import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; -import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import com.google.rpc.Status; import java.io.IOException; import java.util.ArrayList; @@ -55,15 +53,11 @@ public static void main(String[] args) throws IOException { String modelDisplayName = "YOUR_DATASET_DISPLAY_NAME"; String datasetId = "YOUR_DATASET_ID"; String targetColumn = "TARGET_COLUMN"; - createTrainingPipelineTableClassification( - project, modelDisplayName, datasetId, targetColumn); + createTrainingPipelineTableClassification(project, modelDisplayName, datasetId, targetColumn); } static void createTrainingPipelineTableClassification( - String project, - String modelDisplayName, - String datasetId, - String targetColumn) + String project, String modelDisplayName, String datasetId, String targetColumn) throws IOException { PipelineServiceSettings pipelineServiceSettings = PipelineServiceSettings.newBuilder() @@ -81,18 +75,22 @@ static void createTrainingPipelineTableClassification( "gs://google-cloud-aiplatform/schema/trainingjob/definition/automl_tables_1.0.0.yaml"; // Set the columns used for training and their data types - Transformation transformation1 = Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_width").build()) - .build(); - Transformation transformation2 = Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_length").build()) - .build(); - Transformation transformation3 = Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("petal_length").build()) - .build(); - Transformation transformation4 = Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("petal_width").build()) - .build(); + Transformation transformation1 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_width").build()) + .build(); + Transformation transformation2 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_length").build()) + .build(); + Transformation transformation3 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("petal_length").build()) + .build(); + Transformation transformation4 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("petal_width").build()) + .build(); ArrayList transformationArrayList = new ArrayList<>(); transformationArrayList.add(transformation1); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java index ce5fff480..f9f6ade39 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java @@ -38,13 +38,10 @@ import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; import com.google.cloud.aiplatform.v1beta1.TimestampSplit; import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; -import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import com.google.rpc.Status; import java.io.IOException; import java.util.ArrayList; @@ -57,15 +54,11 @@ public static void main(String[] args) throws IOException { String modelDisplayName = "YOUR_DATASET_DISPLAY_NAME"; String datasetId = "YOUR_DATASET_ID"; String targetColumn = "TARGET_COLUMN"; - createTrainingPipelineTableRegression( - project, modelDisplayName, datasetId, targetColumn); + createTrainingPipelineTableRegression(project, modelDisplayName, datasetId, targetColumn); } static void createTrainingPipelineTableRegression( - String project, - String modelDisplayName, - String datasetId, - String targetColumn) + String project, String modelDisplayName, String datasetId, String targetColumn) throws IOException { PipelineServiceSettings pipelineServiceSettings = PipelineServiceSettings.newBuilder() @@ -84,79 +77,106 @@ static void createTrainingPipelineTableRegression( // Set the columns used for training and their data types ArrayList tranformations = new ArrayList<>(); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("STRING_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("INTEGER_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_REPEATED")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("NUMERIC_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("BOOLEAN_2unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setTimestamp(TimestampTransformation.newBuilder() - .setColumnName("TIMESTAMP_1unique_NULLABLE") - .setInvalidValuesAllowed(true)) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("DATE_1unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("TIME_1unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setTimestamp(TimestampTransformation.newBuilder() - .setColumnName("DATETIME_1unique_NULLABLE") - .setInvalidValuesAllowed(true)) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.STRING_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.INTEGER_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REQUIRED")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REPEATED")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.NUMERIC_5000unique_NULLABLE")) - .build()); - tranformations.add(Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.TIMESTAMP_1unique_NULLABLE")) - .build()); - - AutoMlTablesInputs trainingTaskInputs = AutoMlTablesInputs.newBuilder() - .addAllTransformations(tranformations) - .setTargetColumn(targetColumn) - .setPredictionType("regression") - .setTrainBudgetMilliNodeHours(8000) - .setDisableEarlyStopping(false) - // supported regression optimisation objectives: minimize-rmse, - // minimize-mae, minimize-rmsle - .setOptimizationObjective("minimize-rmse") - .build(); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("STRING_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("INTEGER_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_REPEATED")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("NUMERIC_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("BOOLEAN_2unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setTimestamp( + TimestampTransformation.newBuilder() + .setColumnName("TIMESTAMP_1unique_NULLABLE") + .setInvalidValuesAllowed(true)) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("DATE_1unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("TIME_1unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setTimestamp( + TimestampTransformation.newBuilder() + .setColumnName("DATETIME_1unique_NULLABLE") + .setInvalidValuesAllowed(true)) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.STRING_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.INTEGER_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REQUIRED")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REPEATED")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.NUMERIC_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.TIMESTAMP_1unique_NULLABLE")) + .build()); + + AutoMlTablesInputs trainingTaskInputs = + AutoMlTablesInputs.newBuilder() + .addAllTransformations(tranformations) + .setTargetColumn(targetColumn) + .setPredictionType("regression") + .setTrainBudgetMilliNodeHours(8000) + .setDisableEarlyStopping(false) + // supported regression optimisation objectives: minimize-rmse, + // minimize-mae, minimize-rmsle + .setOptimizationObjective("minimize-rmse") + .build(); FractionSplit fractionSplit = FractionSplit.newBuilder() diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java index 194f2a71d..dadd642c2 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java @@ -77,9 +77,7 @@ static void createTrainingPipelineTextClassificationSample( LocationName locationName = LocationName.of(project, location); AutoMlTextClassificationInputs trainingTaskInputs = - AutoMlTextClassificationInputs.newBuilder() - .setMultiLabel(false) - .build(); + AutoMlTextClassificationInputs.newBuilder().setMultiLabel(false).build(); InputDataConfig trainingInputDataConfig = InputDataConfig.newBuilder().setDatasetId(datasetId).build(); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java index 577dc865a..c62606c98 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java @@ -39,8 +39,6 @@ import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; import com.google.cloud.aiplatform.v1beta1.TimestampSplit; import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import com.google.rpc.Status; import java.io.IOException; diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java index bd7320813..9b3d83e77 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java @@ -41,10 +41,7 @@ public static void main(String[] args) throws IOException { } static void createTrainingPipelineVideoActionRecognitionSample( - String project, - String displayName, - String datasetId, - String modelDisplayName) + String project, String displayName, String datasetId, String modelDisplayName) throws IOException { PipelineServiceSettings settings = PipelineServiceSettings.newBuilder() @@ -57,9 +54,7 @@ static void createTrainingPipelineVideoActionRecognitionSample( // the "close" method on the client to safely clean up any remaining background resources. try (PipelineServiceClient client = PipelineServiceClient.create(settings)) { AutoMlVideoActionRecognitionInputs trainingTaskInputs = - AutoMlVideoActionRecognitionInputs.newBuilder() - .setModelType(ModelType.CLOUD) - .build(); + AutoMlVideoActionRecognitionInputs.newBuilder().setModelType(ModelType.CLOUD).build(); InputDataConfig inputDataConfig = InputDataConfig.newBuilder().setDatasetId(datasetId).build(); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java index 5cc64fe71..03cf2a522 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java @@ -69,9 +69,7 @@ static void createTrainingPipelineVideoObjectTracking( LocationName locationName = LocationName.of(project, location); AutoMlVideoObjectTrackingInputs trainingTaskInputs = - AutoMlVideoObjectTrackingInputs.newBuilder() - .setModelType(ModelType.CLOUD) - .build(); + AutoMlVideoObjectTrackingInputs.newBuilder().setModelType(ModelType.CLOUD).build(); InputDataConfig inputDataConfig = InputDataConfig.newBuilder().setDatasetId(datasetId).build(); diff --git a/samples/snippets/src/main/java/aiplatform/PredictImageClassificationSample.java b/samples/snippets/src/main/java/aiplatform/PredictImageClassificationSample.java index 15519675f..7a6961b72 100644 --- a/samples/snippets/src/main/java/aiplatform/PredictImageClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/PredictImageClassificationSample.java @@ -64,22 +64,20 @@ static void predictImageClassification(String project, String fileName, String e String content = new String(contents, StandardCharsets.UTF_8); ImageClassificationPredictionInstance predictionInstance = - ImageClassificationPredictionInstance.newBuilder() - .setContent(content) - .build(); + ImageClassificationPredictionInstance.newBuilder().setContent(content).build(); List instances = new ArrayList<>(); instances.add(ValueConverter.toValue(predictionInstance)); ImageClassificationPredictionParams predictionParams = ImageClassificationPredictionParams.newBuilder() - .setConfidenceThreshold((float) 0.5) - .setMaxPredictions(5) - .build(); + .setConfidenceThreshold((float) 0.5) + .setMaxPredictions(5) + .build(); PredictResponse predictResponse = - predictionServiceClient.predict(endpointName, instances, - ValueConverter.toValue(predictionParams)); + predictionServiceClient.predict( + endpointName, instances, ValueConverter.toValue(predictionParams)); System.out.println("Predict Image Classification Response"); System.out.format("\tDeployed Model Id: %s\n", predictResponse.getDeployedModelId()); diff --git a/samples/snippets/src/main/java/aiplatform/PredictImageObjectDetectionSample.java b/samples/snippets/src/main/java/aiplatform/PredictImageObjectDetectionSample.java index da8d4b8d7..7d5a8f1cc 100644 --- a/samples/snippets/src/main/java/aiplatform/PredictImageObjectDetectionSample.java +++ b/samples/snippets/src/main/java/aiplatform/PredictImageObjectDetectionSample.java @@ -28,7 +28,6 @@ import com.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams; import com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult; import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; @@ -71,9 +70,7 @@ static void predictImageObjectDetection(String project, String fileName, String .build(); ImageObjectDetectionPredictionInstance instance = - ImageObjectDetectionPredictionInstance.newBuilder() - .setContent(content) - .build(); + ImageObjectDetectionPredictionInstance.newBuilder().setContent(content).build(); List instances = new ArrayList<>(); instances.add(ValueConverter.toValue(instance)); @@ -90,8 +87,8 @@ static void predictImageObjectDetection(String project, String fileName, String ImageObjectDetectionPredictionResult.newBuilder(); ImageObjectDetectionPredictionResult result = - (ImageObjectDetectionPredictionResult) ValueConverter - .fromValue(resultBuilder, prediction); + (ImageObjectDetectionPredictionResult) + ValueConverter.fromValue(resultBuilder, prediction); for (int i = 0; i < result.getIdsCount(); i++) { System.out.printf("\tDisplay name: %s\n", result.getDisplayNames(i)); diff --git a/samples/snippets/src/main/java/aiplatform/PredictTabularClassificationSample.java b/samples/snippets/src/main/java/aiplatform/PredictTabularClassificationSample.java index f5c42327c..c6fc5a8cb 100644 --- a/samples/snippets/src/main/java/aiplatform/PredictTabularClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/PredictTabularClassificationSample.java @@ -70,8 +70,8 @@ static void predictTabularClassification(String instance, String project, String TabularClassificationPredictionResult.Builder resultBuilder = TabularClassificationPredictionResult.newBuilder(); TabularClassificationPredictionResult result = - (TabularClassificationPredictionResult) ValueConverter - .fromValue(resultBuilder, prediction); + (TabularClassificationPredictionResult) + ValueConverter.fromValue(resultBuilder, prediction); for (int i = 0; i < result.getClassesCount(); i++) { System.out.printf("\tClass: %s", result.getClasses(i)); diff --git a/samples/snippets/src/main/java/aiplatform/PredictTabularRegressionSample.java b/samples/snippets/src/main/java/aiplatform/PredictTabularRegressionSample.java index fd5ec9e68..bf728f847 100644 --- a/samples/snippets/src/main/java/aiplatform/PredictTabularRegressionSample.java +++ b/samples/snippets/src/main/java/aiplatform/PredictTabularRegressionSample.java @@ -71,8 +71,7 @@ static void predictTabularRegression(String instance, String project, String end TabularRegressionPredictionResult.newBuilder(); TabularRegressionPredictionResult result = - (TabularRegressionPredictionResult) ValueConverter - .fromValue(resultBuilder, prediction); + (TabularRegressionPredictionResult) ValueConverter.fromValue(resultBuilder, prediction); System.out.printf("\tUpper bound: %f\n", result.getUpperBound()); System.out.printf("\tLower bound: %f\n", result.getLowerBound()); diff --git a/samples/snippets/src/main/java/aiplatform/PredictTextClassificationSingleLabelSample.java b/samples/snippets/src/main/java/aiplatform/PredictTextClassificationSingleLabelSample.java index e8989906c..d3384dc72 100644 --- a/samples/snippets/src/main/java/aiplatform/PredictTextClassificationSingleLabelSample.java +++ b/samples/snippets/src/main/java/aiplatform/PredictTextClassificationSingleLabelSample.java @@ -55,10 +55,8 @@ static void predictTextClassificationSingleLabel( String location = "us-central1"; EndpointName endpointName = EndpointName.of(project, location, endpointId); - TextClassificationPredictionInstance predictionInstance = TextClassificationPredictionInstance - .newBuilder() - .setContent(content) - .build(); + TextClassificationPredictionInstance predictionInstance = + TextClassificationPredictionInstance.newBuilder().setContent(content).build(); List instances = new ArrayList<>(); instances.add(ValueConverter.toValue(predictionInstance)); diff --git a/samples/snippets/src/main/java/aiplatform/PredictTextEntityExtractionSample.java b/samples/snippets/src/main/java/aiplatform/PredictTextEntityExtractionSample.java index 6995e34b2..47f4b9eab 100644 --- a/samples/snippets/src/main/java/aiplatform/PredictTextEntityExtractionSample.java +++ b/samples/snippets/src/main/java/aiplatform/PredictTextEntityExtractionSample.java @@ -26,7 +26,6 @@ import com.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance; import com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult; import com.google.protobuf.Value; -import com.google.protobuf.util.JsonFormat; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -60,9 +59,7 @@ static void predictTextEntityExtraction(String project, String content, String e EndpointName endpointName = EndpointName.of(project, location, endpointId); TextExtractionPredictionInstance instance = - TextExtractionPredictionInstance.newBuilder() - .setContent(content) - .build(); + TextExtractionPredictionInstance.newBuilder().setContent(content).build(); List instances = new ArrayList<>(); instances.add(ValueConverter.toValue(instance)); diff --git a/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextClassificationSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextClassificationSampleTest.java new file mode 100644 index 000000000..5c8e9b0ba --- /dev/null +++ b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextClassificationSampleTest.java @@ -0,0 +1,113 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package aiplatform; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateBatchPredictionJobTextClassificationSampleTest { + private static final String PROJECT = System.getenv("UCAIP_PROJECT_ID"); + private static final String LOCATION = "us-central1"; + private static final String MODEL_ID = System.getenv("TEXT_CLASS_MODEL_ID"); + private static final String GCS_SOURCE_URI = + "gs://ucaip-samples-test-output/inputs/batch_predict_TCN/tcn_inputs.jsonl"; + private static final String GCS_OUTPUT_URI = "gs://ucaip-samples-test-output/"; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + private String got; + + private static void requireEnvVar(String varName) { + String errorMessage = + String.format("Environment variable '%s' is required to perform these tests.", varName); + assertNotNull(errorMessage, System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("UCAIP_PROJECT_ID"); + requireEnvVar("TEXT_CLASS_MODEL_ID"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + + String batchPredictionJobId = + got.split("name:")[1].split("batchPredictionJobs/")[1].split("\"\n")[0]; + + CancelBatchPredictionJobSample.cancelBatchPredictionJobSample(PROJECT, batchPredictionJobId); + + // Assert + String cancelResponse = bout.toString(); + assertThat(cancelResponse).contains("Cancelled the Batch Prediction Job"); + TimeUnit.MINUTES.sleep(2); + + // Delete the Batch Prediction Job + DeleteBatchPredictionJobSample.deleteBatchPredictionJobSample(PROJECT, batchPredictionJobId); + + // Assert + String deleteResponse = bout.toString(); + assertThat(deleteResponse).contains("Deleted Batch"); + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testCreateBatchPredictionJobTextClassificationSample() throws IOException { + // Act + String batchPredictionDisplayName = + String.format( + "temp_java_create_batch_prediction_TCN_%s", + UUID.randomUUID().toString().replaceAll("-", "_").substring(0, 26)); + + CreateBatchPredictionJobTextClassificationSample + .createBatchPredictionJobTextClassificationSample( + PROJECT, + LOCATION, + batchPredictionDisplayName, + MODEL_ID, + GCS_SOURCE_URI, + GCS_OUTPUT_URI); + + // Assert + got = bout.toString(); + assertThat(got).contains(batchPredictionDisplayName); + assertThat(got).contains("response:"); + } +} diff --git a/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSampleTest.java new file mode 100644 index 000000000..3cc135491 --- /dev/null +++ b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSampleTest.java @@ -0,0 +1,111 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package aiplatform; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateBatchPredictionJobTextEntityExtractionSampleTest { + private static final String PROJECT = System.getenv("UCAIP_PROJECT_ID"); + private static final String LOCATION = "us-central1"; + private static final String MODEL_ID = System.getenv("TEXT_ENTITY_MODEL_ID"); + private static final String GCS_SOURCE_URI = + "gs://ucaip-samples-test-output/inputs/batch_predict_TEN/ten_inputs.jsonl"; + private static final String GCS_OUTPUT_URI = "gs://ucaip-samples-test-output/"; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + private String got; + + private static void requireEnvVar(String varName) { + String errorMessage = + String.format("Environment variable '%s' is required to perform these tests.", varName); + assertNotNull(errorMessage, System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("UCAIP_PROJECT_ID"); + requireEnvVar("TEXT_ENTITY_MODEL_ID"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + String batchPredictionJobId = + got.split("name:")[1].split("batchPredictionJobs/")[1].split("\"\n")[0]; + CancelBatchPredictionJobSample.cancelBatchPredictionJobSample(PROJECT, batchPredictionJobId); + + // Assert + String cancelResponse = bout.toString(); + assertThat(cancelResponse).contains("Cancelled the Batch Prediction Job"); + TimeUnit.MINUTES.sleep(2); + + // Delete the Batch Prediction Job + DeleteBatchPredictionJobSample.deleteBatchPredictionJobSample(PROJECT, batchPredictionJobId); + + // Assert + String deleteResponse = bout.toString(); + assertThat(deleteResponse).contains("Deleted Batch"); + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testCreateBatchPredictionJobTextEntityExtractionSample() throws IOException { + // Act + String batchPredictionDisplayName = + String.format( + "temp_java_create_batch_prediction_TEN_%s", + UUID.randomUUID().toString().replaceAll("-", "_").substring(0, 26)); + + CreateBatchPredictionJobTextEntityExtractionSample + .createBatchPredictionJobTextEntityExtractionSample( + PROJECT, + LOCATION, + batchPredictionDisplayName, + MODEL_ID, + GCS_SOURCE_URI, + GCS_OUTPUT_URI); + + // Assert + got = bout.toString(); + assertThat(got).contains(batchPredictionDisplayName); + assertThat(got).contains("response:"); + } +} diff --git a/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSampleTest.java new file mode 100644 index 000000000..8d70db487 --- /dev/null +++ b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSampleTest.java @@ -0,0 +1,111 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package aiplatform; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateBatchPredictionJobTextSentimentAnalysisSampleTest { + private static final String PROJECT = System.getenv("UCAIP_PROJECT_ID"); + private static final String LOCATION = "us-central1"; + private static final String MODEL_ID = System.getenv("TEXT_SENTI_MODEL_ID"); + private static final String GCS_SOURCE_URI = + "gs://ucaip-samples-test-output/inputs/batch_predict_TSN/tsn_inputs.jsonl"; + private static final String GCS_OUTPUT_URI = "gs://ucaip-samples-test-output/"; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + private String got; + + private static void requireEnvVar(String varName) { + String errorMessage = + String.format("Environment variable '%s' is required to perform these tests.", varName); + assertNotNull(errorMessage, System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("UCAIP_PROJECT_ID"); + requireEnvVar("TEXT_SENTI_MODEL_ID"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + String batchPredictionJobId = + got.split("name:")[1].split("batchPredictionJobs/")[1].split("\"\n")[0]; + CancelBatchPredictionJobSample.cancelBatchPredictionJobSample(PROJECT, batchPredictionJobId); + + // Assert + String cancelResponse = bout.toString(); + assertThat(cancelResponse).contains("Cancelled the Batch Prediction Job"); + TimeUnit.MINUTES.sleep(2); + + // Delete the Batch Prediction Job + DeleteBatchPredictionJobSample.deleteBatchPredictionJobSample(PROJECT, batchPredictionJobId); + + // Assert + String deleteResponse = bout.toString(); + assertThat(deleteResponse).contains("Deleted Batch"); + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testCreateBatchPredictionJobTextSentimentAnalysisSample() throws IOException { + // Act + String batchPredictionDisplayName = + String.format( + "temp_java_create_batch_prediction_TSN_%s", + UUID.randomUUID().toString().replaceAll("-", "_").substring(0, 26)); + + CreateBatchPredictionJobTextSentimentAnalysisSample + .createBatchPredictionJobTextSentimentAnalysisSample( + PROJECT, + LOCATION, + batchPredictionDisplayName, + MODEL_ID, + GCS_SOURCE_URI, + GCS_OUTPUT_URI); + + // Assert + got = bout.toString(); + assertThat(got).contains(batchPredictionDisplayName); + assertThat(got).contains("response:"); + } +} diff --git a/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoClassificationSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoClassificationSampleTest.java index fc6c217e8..d2a0fef22 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoClassificationSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoClassificationSampleTest.java @@ -34,7 +34,7 @@ public class CreateBatchPredictionJobVideoClassificationSampleTest { private static final String PROJECT = System.getenv("UCAIP_PROJECT_ID"); - private static final String MODEL_ID = "8596984660557299712"; + private static final String MODEL_ID = System.getenv("VIDEO_CLASS_MODEL_ID"); private static final String GCS_SOURCE_URI = "gs://ucaip-samples-test-output/inputs/vcn_40_batch_prediction_input.jsonl"; private static final String GCS_DESTINATION_OUTPUT_URI_PREFIX = "gs://ucaip-samples-test-output/"; @@ -53,6 +53,7 @@ private static void requireEnvVar(String varName) { public static void checkRequirements() { requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); requireEnvVar("UCAIP_PROJECT_ID"); + requireEnvVar("VIDEO_CLASS_MODEL_ID"); } @Before diff --git a/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSampleTest.java index b6890db18..c2f2855e4 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSampleTest.java @@ -34,7 +34,7 @@ public class CreateBatchPredictionJobVideoObjectTrackingSampleTest { private static final String PROJECT = System.getenv("UCAIP_PROJECT_ID"); - private static final String MODEL_ID = "8609932509485989888"; + private static final String MODEL_ID = System.getenv("VIDEO_OBJECT_DETECT_MODEL_ID"); private static final String GCS_SOURCE_URI = "gs://ucaip-samples-test-output/inputs/vot_batch_prediction_input.jsonl"; private static final String GCS_DESTINATION_OUTPUT_URI_PREFIX = "gs://ucaip-samples-test-output/"; diff --git a/samples/snippets/src/test/java/aiplatform/CreateDataLabelingJobVideoSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateDataLabelingJobVideoSampleTest.java index 3dd56d561..2c6ee8222 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateDataLabelingJobVideoSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateDataLabelingJobVideoSampleTest.java @@ -87,7 +87,7 @@ public void tearDown() } @Test - @Ignore + @Ignore("Avoid creating actual data labeling job for humans") public void testCreateDataLabelingJobVideoSample() throws IOException { // Act String dataLabelingDisplayName = From 8cf16e47f985f759380df93a21cbc9b879c3dcaf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Apr 2021 13:08:03 -0700 Subject: [PATCH 04/54] chore: regenerate README (#242) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-15 20:02:10,213 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-aiplatform/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-15 20:02:11,933 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/124e48f7-61fc-4839-8d61-d4605f1ede83/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 27185bbac..376e68b11 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-aiplatform.git", - "sha": "51a06f423a97e7ffa51a1a713e1bdf2f7eaa73da" + "sha": "a169f45193280f71b7b5a662cc93176c451c1bca" } }, { diff --git a/README.md b/README.md index e9490c322..4b0517cc0 100644 --- a/README.md +++ b/README.md @@ -43,12 +43,12 @@ 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 @@ -94,6 +94,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) | From 43ec06bd4809bc97dda6f5a913452381389541d1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Apr 2021 08:20:06 -0700 Subject: [PATCH 05/54] fix: release scripts from issuing overlapping phases (#245) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1cc75326-5681-4615-abf3-35b747333def/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d --- .kokoro/release/snapshot.sh | 2 +- .kokoro/release/stage.sh | 2 +- synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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/synth.metadata b/synth.metadata index 73d13c44c..f8e0fbb96 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-aiplatform.git", - "sha": "6be4f2c5a69efa17a00db7664c2d4e772fb2d637" + "sha": "8cf16e47f985f759380df93a21cbc9b879c3dcaf" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1f5e6bc8dc8e3661ee550905fc070e55e1b6cea1" + "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" } } ], From 5c0de9f6ac27685170644f467610dc89d2f0e34b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Apr 2021 11:07:48 -0700 Subject: [PATCH 06/54] feat: removes unneeded protos and files from v1beta1 (#198) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore: release gapic-generator-java v0.0.21 with gapic_metadata.json support Committer: @miraleung PiperOrigin-RevId: 358516065 Source-Author: Google APIs Source-Date: Fri Feb 19 17:43:23 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: af8f71dae961ee036a0ac52a1965270149a6b2c9 Source-Link: https://github.com/googleapis/googleapis/commit/af8f71dae961ee036a0ac52a1965270149a6b2c9 * chore: update protobuf v3.15.3 This release makes --experimental_allow_proto3_optional no longer necessary. PiperOrigin-RevId: 359781040 Source-Author: Google APIs Source-Date: Fri Feb 26 09:59:49 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: f6dd7e47620566925a4b3f1ce029e74e1b2f2516 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 * chore: updates copyright on schema/ protos feat!: BREAKING_CHANGE: removes forecasting (time_series_forecasting.proto) from public v1beta1 protos PiperOrigin-RevId: 360235141 Source-Author: Google APIs Source-Date: Mon Mar 1 11:23:30 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: d1ec8a4330fdc131e49637ed34bb031695a89060 Source-Link: https://github.com/googleapis/googleapis/commit/d1ec8a4330fdc131e49637ed34bb031695a89060 * feat!: BREAKING_CHANGE: removes forecasting (time_series_forecasting.proto) from public v1beta1 protos chore: updates copyright on schema/ protos PiperOrigin-RevId: 360248513 Source-Author: Google APIs Source-Date: Mon Mar 1 12:18:35 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: a389671476b5fe2b1c63bcc115515a76c273ceba Source-Link: https://github.com/googleapis/googleapis/commit/a389671476b5fe2b1c63bcc115515a76c273ceba * fix: adds exceptions to clirr ignore rule for v1beta1 * fix: clirr try 2 * fix: more clirr fixes * fix: more clirr fixes * fix: more clirr * fix: more clirr Co-authored-by: Neenu Shaji Co-authored-by: Eric Schmidt --- .../clirr-ignored-differences.xml | 19 + .../aiplatform/v1/ActiveLearningConfig.java | 58 + .../v1/ActiveLearningConfigOrBuilder.java | 24 + ...atchMigrateResourcesOperationMetadata.java | 82 + .../aiplatform/v1/BatchPredictionJob.java | 92 + .../v1/MigrateResourceResponse.java | 58 + .../v1/MigrateResourceResponseOrBuilder.java | 24 + .../cloud/aiplatform/v1/SampleConfig.java | 60 + .../aiplatform/v1/SampleConfigOrBuilder.java | 25 + .../aiplatform/v1/UserActionReference.java | 70 + .../v1/UserActionReferenceOrBuilder.java | 30 + .../definition/AutoMlTablesInputs.java | 62 + .../AutoMlTablesInputsOrBuilder.java | 26 + .../instance/image_classification.proto | 2 +- .../instance/image_object_detection.proto | 2 +- .../instance/text_classification.proto | 2 +- .../predict/instance/text_extraction.proto | 2 +- .../predict/instance/text_sentiment.proto | 2 +- .../instance/video_action_recognition.proto | 2 +- .../instance/video_classification.proto | 2 +- .../instance/video_object_tracking.proto | 2 +- .../predict/params/image_classification.proto | 2 +- .../params/image_object_detection.proto | 2 +- .../params/video_action_recognition.proto | 2 +- .../predict/params/video_classification.proto | 2 +- .../params/video_object_tracking.proto | 2 +- .../predict/prediction/classification.proto | 2 +- .../prediction/image_object_detection.proto | 2 +- .../prediction/tabular_classification.proto | 2 +- .../prediction/tabular_regression.proto | 2 +- .../predict/prediction/text_extraction.proto | 2 +- .../predict/prediction/text_sentiment.proto | 2 +- .../prediction/video_action_recognition.proto | 2 +- .../prediction/video_classification.proto | 2 +- .../prediction/video_object_tracking.proto | 2 +- .../automl_image_classification.proto | 2 +- .../automl_image_object_detection.proto | 2 +- .../definition/automl_tables.proto | 2 +- .../automl_text_classification.proto | 2 +- .../definition/automl_text_extraction.proto | 2 +- .../definition/automl_text_sentiment.proto | 2 +- .../automl_video_action_recognition.proto | 2 +- .../automl_video_classification.proto | 2 +- .../automl_video_object_tracking.proto | 2 +- .../export_evaluated_data_items_config.proto | 2 +- .../clirr-ignored-differences.xml | 19 + .../v1beta1/ActiveLearningConfig.java | 58 + .../ActiveLearningConfigOrBuilder.java | 24 + ...atchMigrateResourcesOperationMetadata.java | 82 + .../v1beta1/BatchPredictionJob.java | 92 + .../v1beta1/ExplanationMetadata.java | 53 + .../v1beta1/MigrateResourceResponse.java | 58 + .../MigrateResourceResponseOrBuilder.java | 24 + .../aiplatform/v1beta1/SampleConfig.java | 60 + .../v1beta1/SampleConfigOrBuilder.java | 25 + .../aiplatform/v1beta1/SmoothGradConfig.java | 51 + .../v1beta1/SmoothGradConfigOrBuilder.java | 23 + .../v1beta1/UserActionReference.java | 70 + .../v1beta1/UserActionReferenceOrBuilder.java | 30 + ...TimeSeriesForecastingPredictionResult.java | 806 - ...sForecastingPredictionResultOrBuilder.java | 64 - ...eriesForecastingPredictionResultProto.java | 75 - .../definition/AutoMLForecastingProto.java | 341 - .../definition/AutoMlForecasting.java | 1170 -- .../definition/AutoMlForecastingInputs.java | 15272 ---------------- .../AutoMlForecastingInputsOrBuilder.java | 695 - .../definition/AutoMlForecastingMetadata.java | 621 - .../AutoMlForecastingMetadataOrBuilder.java | 41 - .../AutoMlForecastingOrBuilder.java | 113 - .../definition/AutoMlTablesInputs.java | 62 + .../AutoMlTablesInputsOrBuilder.java | 26 + .../v1beta1/schema/annotation_payload.proto | 2 +- .../schema/annotation_spec_color.proto | 2 +- .../v1beta1/schema/data_item_payload.proto | 2 +- .../v1beta1/schema/dataset_metadata.proto | 2 +- .../aiplatform/v1beta1/schema/geometry.proto | 2 +- .../instance/image_classification.proto | 2 +- .../instance/image_object_detection.proto | 2 +- .../instance/text_classification.proto | 2 +- .../predict/instance/text_extraction.proto | 2 +- .../predict/instance/text_sentiment.proto | 2 +- .../instance/video_action_recognition.proto | 2 +- .../instance/video_classification.proto | 2 +- .../instance/video_object_tracking.proto | 2 +- .../predict/params/image_classification.proto | 2 +- .../params/image_object_detection.proto | 2 +- .../params/video_action_recognition.proto | 2 +- .../predict/params/video_classification.proto | 2 +- .../params/video_object_tracking.proto | 2 +- .../predict/prediction/classification.proto | 2 +- .../prediction/image_object_detection.proto | 2 +- .../prediction/tabular_classification.proto | 2 +- .../prediction/tabular_regression.proto | 2 +- .../predict/prediction/text_extraction.proto | 2 +- .../predict/prediction/text_sentiment.proto | 2 +- .../prediction/time_series_forecasting.proto | 36 - .../prediction/video_action_recognition.proto | 2 +- .../prediction/video_classification.proto | 2 +- .../prediction/video_object_tracking.proto | 2 +- .../automl_image_object_detection.proto | 2 +- .../definition/automl_tables.proto | 2 +- .../automl_text_classification.proto | 2 +- .../definition/automl_text_extraction.proto | 2 +- .../definition/automl_text_sentiment.proto | 2 +- .../automl_time_series_forecasting.proto | 312 - .../automl_video_action_recognition.proto | 2 +- .../automl_video_classification.proto | 2 +- .../automl_video_object_tracking.proto | 2 +- .../export_evaluated_data_items_config.proto | 2 +- synth.metadata | 24 +- 110 files changed, 1465 insertions(+), 19628 deletions(-) create mode 100644 proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultOrBuilder.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputsOrBuilder.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadataOrBuilder.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingOrBuilder.java delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto delete mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto 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..fa79c23fb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + + + 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/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/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..e24663c42 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 @@ -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; + } /** * * 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/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/UserActionReference.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java index 622b9acb1..6ad96389b 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; + } /** * * @@ -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; + } /** * * 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..780770e6e 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(); /** * * 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/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-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml index b291fabc7..96edc75e4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml @@ -106,4 +106,23 @@ 7002 * set*(*) + + + com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/*Result* + + 8001 + + + + com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/*Forecasting* + + 8001 + + + + com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/*OrBuilder + + 7012 + * has*() + diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java index 843b0bf65..df861a327 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java @@ -197,6 +197,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; + } /** * * @@ -217,6 +232,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; + } /** * * @@ -780,6 +810,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; + } /** * * @@ -835,6 +879,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfigOrBuilder.java index bb6593d77..074945a9d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfigOrBuilder.java @@ -23,6 +23,18 @@ public interface ActiveLearningConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-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..5e35fd92e 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(); /** * * @@ -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; + } /** * * @@ -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; + } /** * * 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..66030fb3e 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 @@ -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; + } /** * * 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..149120646 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 @@ -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(); /** * * @@ -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; + } /** * * @@ -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; + } /** * * 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/SampleConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java index 86506a756..1d18cc9bb 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; + } /** * * @@ -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; + } /** * * 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..741c8b81f 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(); /** * * 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..69af0bc16 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 @@ -185,6 +185,32 @@ public GradientNoiseSigmaCase getGradientNoiseSigmaCase() { } public static final int NOISE_SIGMA_FIELD_NUMBER = 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. For more details
+   * about normalization:
+   * https://tinyurl.com/dgc-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; + } /** * * @@ -708,6 +734,31 @@ public Builder clearGradientNoiseSigma() { return this; } + /** + * + * + *
+     * 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.
+     * 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; + } /** * * 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..f60632608 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 @@ -23,6 +23,29 @@ public interface SmoothGradConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SmoothGradConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * 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.
+   * 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(); /** * * 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..8184d824a 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; + } /** * * @@ -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; + } /** * * 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..2349faa68 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(); /** * * 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 deleted file mode 100644 index f7670b130..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java +++ /dev/null @@ -1,806 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.predict.prediction; - -/** - * - * - *
- * Prediction output format for Time Series Forecasting.
- * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult} - */ -public final class TimeSeriesForecastingPredictionResult - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult) - TimeSeriesForecastingPredictionResultOrBuilder { - private static final long serialVersionUID = 0L; - // Use TimeSeriesForecastingPredictionResult.newBuilder() to construct. - private TimeSeriesForecastingPredictionResult( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TimeSeriesForecastingPredictionResult() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TimeSeriesForecastingPredictionResult(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TimeSeriesForecastingPredictionResult( - 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 13: - { - value_ = input.readFloat(); - break; - } - case 21: - { - lowerBound_ = input.readFloat(); - break; - } - case 29: - { - upperBound_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (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.predict.prediction - .TimeSeriesForecastingPredictionResultProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResultProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult.class, - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private float value_; - /** - * - * - *
-   * The regression value.
-   * 
- * - * float value = 1; - * - * @return The value. - */ - @java.lang.Override - 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 - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_ != 0F) { - output.writeFloat(1, value_); - } - if (lowerBound_ != 0F) { - output.writeFloat(2, lowerBound_); - } - if (upperBound_ != 0F) { - output.writeFloat(3, upperBound_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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; - } - - @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.predict.prediction - .TimeSeriesForecastingPredictionResult)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - other = - (com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult) - 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; - } - - @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) + 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; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom( - java.nio.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.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom( - com.google.protobuf.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.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom(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.predict.prediction - .TimeSeriesForecastingPredictionResult - 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.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom( - java.io.InputStream input, com.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.predict.prediction - .TimeSeriesForecastingPredictionResult - 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.predict.prediction - .TimeSeriesForecastingPredictionResult - parseDelimitedFrom( - java.io.InputStream input, com.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.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom(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.predict.prediction - .TimeSeriesForecastingPredictionResult - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.predict.prediction - .TimeSeriesForecastingPredictionResult - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Prediction output format for Time Series Forecasting.
-   * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult) - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResultProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResultProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult.class, - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult.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_ = 0F; - - lowerBound_ = 0F; - - upperBound_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResultProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - build() { - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - result = - new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult(this); - result.value_ = value_; - result.lowerBound_ = lowerBound_; - result.upperBound_ = upperBound_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - 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.predict.prediction - .TimeSeriesForecastingPredictionResult) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult.getDefaultInstance()) return this; - 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; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.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.predict.prediction - .TimeSeriesForecastingPredictionResult - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float value_; - /** - * - * - *
-     * The regression value.
-     * 
- * - * float value = 1; - * - * @return The value. - */ - @java.lang.Override - public float getValue() { - return value_; - } - /** - * - * - *
-     * The regression value.
-     * 
- * - * float value = 1; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(float value) { - - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The regression value.
-     * 
- * - * float value = 1; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = 0F; - onChanged(); - 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); - } - - @java.lang.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.predict.prediction.TimeSeriesForecastingPredictionResult) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult) - private static final com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.predict.prediction - .TimeSeriesForecastingPredictionResult - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesForecastingPredictionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeSeriesForecastingPredictionResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.predict.prediction - .TimeSeriesForecastingPredictionResult - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} 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 deleted file mode 100644 index b56e2964e..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.predict.prediction; - -public interface TimeSeriesForecastingPredictionResultOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The regression value.
-   * 
- * - * float value = 1; - * - * @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 deleted file mode 100644 index bccf02c30..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.predict.prediction; - -public final class TimeSeriesForecastingPredictionResultProto { - private TimeSeriesForecastingPredictionResultProto() {} - - 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_schema_predict_prediction_TimeSeriesForecastingPredictionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nWgoogle/cloud/aiplatform/v1beta1/schema" - + "/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" - }; - 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_schema_predict_prediction_TimeSeriesForecastingPredictionResult_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_descriptor, - new java.lang.String[] { - "Value", "LowerBound", "UpperBound", - }); - 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/schema/trainingjob/definition/AutoMLForecastingProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java deleted file mode 100644 index 6d17c462a..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: -// google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; - -public final class AutoMLForecastingProto { - private AutoMLForecastingProto() {} - - 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_schema_trainingjob_definition_AutoMlForecasting_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecasting_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_AutoTransformation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_AutoTransformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericTransformation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericTransformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalTransformation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalTransformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TimestampTransformation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TimestampTransformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextTransformation_descriptor; - 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; - 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; - 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 - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nbgoogle/cloud/aiplatform/v1beta1/schema" - + "/trainingjob/definition/automl_time_seri" - + "es_forecasting.proto\022=google.cloud.aipla" - + "tform.v1beta1.schema.trainingjob.definit" - + "ion\032fgoogle/cloud/aiplatform/v1beta1/sch" - + "ema/trainingjob/definition/export_evalua" - + "ted_data_items_config.proto\032\034google/api/" - + "annotations.proto\"\347\001\n\021AutoMlForecasting\022" - + "f\n\006inputs\030\001 \001(\0132V.google.cloud.aiplatfor" - + "m.v1beta1.schema.trainingjob.definition." - + "AutoMlForecastingInputs\022j\n\010metadata\030\002 \001(" - + "\0132X.google.cloud.aiplatform.v1beta1.sche" - + "ma.trainingjob.definition.AutoMlForecast" - + "ingMetadata\"\265\024\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" - + "ud.aiplatform.v1beta1.schema.trainingjob" - + ".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" - + ".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" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecasting_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecasting_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecasting_descriptor, - new java.lang.String[] { - "Inputs", "Metadata", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_descriptor, - new java.lang.String[] { - "TargetColumn", - "TimeSeriesIdentifierColumn", - "TimeColumn", - "Transformations", - "OptimizationObjective", - "TrainBudgetMilliNodeHours", - "WeightColumn", - "StaticColumns", - "TimeVariantPastOnlyColumns", - "TimeVariantPastAndFutureColumns", - "Period", - "ForecastWindowStart", - "ForecastWindowEnd", - "PastHorizon", - "ExportEvaluatedDataItemsConfig", - "Quantiles", - "ValidationOptions", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor = - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_fieldAccessorTable = - 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", - }); - 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 - .getNestedTypes() - .get(0); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_AutoTransformation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_AutoTransformation_descriptor, - new java.lang.String[] { - "ColumnName", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericTransformation_descriptor = - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericTransformation_fieldAccessorTable = - 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", - }); - 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 - .getNestedTypes() - .get(2); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalTransformation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalTransformation_descriptor, - new java.lang.String[] { - "ColumnName", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TimestampTransformation_descriptor = - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TimestampTransformation_fieldAccessorTable = - 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", - }); - 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 - .getNestedTypes() - .get(4); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextTransformation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextTransformation_descriptor, - 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_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_descriptor, - new java.lang.String[] { - "Unit", "Quantity", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingMetadata_descriptor, - new java.lang.String[] { - "TrainCostMilliNodeHours", - }); - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigProto.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/schema/trainingjob/definition/AutoMlForecasting.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java deleted file mode 100644 index 3b1455031..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java +++ /dev/null @@ -1,1170 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: -// google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; - -/** - * - * - *
- * A TrainingJob that trains and uploads an AutoML Forecasting Model.
- * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting} - */ -public final class AutoMlForecasting extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) - AutoMlForecastingOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoMlForecasting.newBuilder() to construct. - private AutoMlForecasting(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoMlForecasting() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoMlForecasting(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoMlForecasting( - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Builder - subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.Builder - subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.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.schema.trainingjob.definition.AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecasting_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_AutoMlForecasting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - .class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - .Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - inputs_; - /** - * - * - *
-   * The input parameters of this TrainingJob.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - * - * @return Whether the inputs field is set. - */ - @java.lang.Override - public boolean hasInputs() { - return inputs_ != null; - } - /** - * - * - *
-   * The input parameters of this TrainingJob.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - * - * @return The inputs. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - getInputs() { - return inputs_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .getDefaultInstance() - : inputs_; - } - /** - * - * - *
-   * The input parameters of this TrainingJob.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputsOrBuilder - getInputsOrBuilder() { - return getInputs(); - } - - public static final int METADATA_FIELD_NUMBER = 2; - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - metadata_; - /** - * - * - *
-   * The metadata information.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * The metadata information.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - * - * @return The metadata. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - getMetadata() { - return metadata_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * The metadata information.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadataOrBuilder - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputs()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, 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.schema.trainingjob.definition.AutoMlForecasting)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs().equals(other.getInputs())) 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(); - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().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.schema.trainingjob.definition.AutoMlForecasting - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - parseFrom( - java.nio.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.AutoMlForecasting - 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.AutoMlForecasting - parseFrom( - com.google.protobuf.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.AutoMlForecasting - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - parseFrom(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.AutoMlForecasting - 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.AutoMlForecasting - parseFrom( - java.io.InputStream input, com.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.AutoMlForecasting - 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.AutoMlForecasting - parseDelimitedFrom( - java.io.InputStream input, com.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.AutoMlForecasting - parseFrom(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.AutoMlForecasting - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.AutoMlForecasting - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 TrainingJob that trains and uploads an AutoML Forecasting Model.
-   * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingOrBuilder { - 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_AutoMlForecasting_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_AutoMlForecasting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - .class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - .Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - 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.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecasting_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting( - this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - 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.schema.trainingjob.definition.AutoMlForecasting) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - .getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - 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.schema.trainingjob.definition.AutoMlForecasting - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs - inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputsOrBuilder> - inputsBuilder_; - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - * - * @return Whether the inputs field is set. - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - * - * @return The inputs. - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.getDefaultInstance() - : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - public Builder setInputs( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - public Builder setInputs( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Builder - builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - public Builder mergeInputs( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Builder - getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputsOrBuilder - getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.getDefaultInstance() - : inputs_; - } - } - /** - * - * - *
-     * The input parameters of this TrainingJob.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputsOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputsOrBuilder>( - getInputs(), getParentForChildren(), isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - * - * @return The metadata. - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - public Builder setMetadata( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - public Builder setMetadata( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - .Builder - builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - public Builder mergeMetadata( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.Builder - getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadataOrBuilder - getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * The metadata information.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadataOrBuilder>( - 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.schema.trainingjob.definition.AutoMlForecasting) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecasting - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoMlForecasting parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoMlForecasting(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.AutoMlForecasting - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} 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 deleted file mode 100644 index b368666f6..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java +++ /dev/null @@ -1,15272 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: -// google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; - -/** - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs} - */ -public final class AutoMlForecastingInputs extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs) - AutoMlForecastingInputsOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoMlForecastingInputs.newBuilder() to construct. - private AutoMlForecastingInputs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoMlForecastingInputs() { - targetColumn_ = ""; - timeSeriesIdentifierColumn_ = ""; - timeColumn_ = ""; - 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; - quantiles_ = emptyDoubleList(); - validationOptions_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoMlForecastingInputs(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoMlForecastingInputs( - 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(); - - targetColumn_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - timeSeriesIdentifierColumn_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - timeColumn_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transformations_ = - new java.util.ArrayList< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation>(); - mutable_bitField0_ |= 0x00000001; - } - transformations_.add( - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.parser(), - extensionRegistry)); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - optimizationObjective_ = s; - break; - } - case 48: - { - trainBudgetMilliNodeHours_ = input.readInt64(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - 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 - .ExportEvaluatedDataItemsConfig.Builder - subBuilder = null; - if (exportEvaluatedDataItemsConfig_ != null) { - subBuilder = exportEvaluatedDataItemsConfig_.toBuilder(); - } - exportEvaluatedDataItemsConfig_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exportEvaluatedDataItemsConfig_); - exportEvaluatedDataItemsConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 129: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - quantiles_ = newDoubleList(); - mutable_bitField0_ |= 0x00000010; - } - quantiles_.addDouble(input.readDouble()); - break; - } - case 130: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) { - quantiles_ = newDoubleList(); - mutable_bitField0_ |= 0x00000010; - } - while (input.getBytesUntilLimit() > 0) { - quantiles_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - - validationOptions_ = 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)) { - transformations_ = java.util.Collections.unmodifiableList(transformations_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - staticColumns_ = staticColumns_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - timeVariantPastOnlyColumns_ = timeVariantPastOnlyColumns_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - timeVariantPastAndFutureColumns_ = timeVariantPastAndFutureColumns_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - quantiles_.makeImmutable(); // C - } - 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_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_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Builder.class); - } - - public interface TransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - * - * @return Whether the auto field is set. - */ - boolean hasAuto(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - * - * @return The auto. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation - getAuto(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformationOrBuilder - getAutoOrBuilder(); - - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - * - * @return Whether the numeric field is set. - */ - boolean hasNumeric(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - * - * @return The numeric. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation - getNumeric(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformationOrBuilder - getNumericOrBuilder(); - - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - * - * @return Whether the categorical field is set. - */ - boolean hasCategorical(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - * - * @return The categorical. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation - getCategorical(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformationOrBuilder - getCategoricalOrBuilder(); - - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - * - * @return Whether the timestamp field is set. - */ - boolean hasTimestamp(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - * - * @return The timestamp. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation - getTimestamp(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformationOrBuilder - getTimestampOrBuilder(); - - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - * - * @return Whether the text field is set. - */ - boolean hasText(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - * - * @return The text. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation - getText(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .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(); - } - /** - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} - */ - public static final class Transformation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation) - TransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Transformation.newBuilder() to construct. - private Transformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Transformation() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Transformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Transformation( - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder - subBuilder = null; - if (transformationDetailCase_ == 1) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - transformationDetailCase_ = 1; - break; - } - case 18: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder - subBuilder = null; - if (transformationDetailCase_ == 2) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - transformationDetailCase_ = 2; - break; - } - case 26: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder - subBuilder = null; - if (transformationDetailCase_ == 3) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - transformationDetailCase_ = 3; - break; - } - case 34: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder - subBuilder = null; - if (transformationDetailCase_ == 4) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - transformationDetailCase_ = 4; - break; - } - case 42: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder - subBuilder = null; - if (transformationDetailCase_ == 5) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - 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)) { - done = true; - } - break; - } - } - } - } catch (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_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); - } - - public interface AutoTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation) - 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(); - } - /** - * - * - *
-     * Training pipeline will infer the proper transformation based on the
-     * statistic of dataset.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation} - */ - public static final class AutoTransformation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation) - AutoTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoTransformation.newBuilder() to construct. - private AutoTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoTransformation() { - columnName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoTransformation( - 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_AutoTransformation_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_AutoTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.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.AutoTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - 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.AutoTransformation - 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.AutoTransformation - parseFrom( - java.nio.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.AutoTransformation - 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.AutoTransformation - parseFrom( - com.google.protobuf.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.AutoTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - parseFrom(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.AutoTransformation - 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.AutoTransformation - parseFrom( - java.io.InputStream input, - com.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.AutoTransformation - 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.AutoTransformation - parseDelimitedFrom( - java.io.InputStream input, - com.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.AutoTransformation - parseFrom(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.AutoTransformation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.AutoTransformation - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 pipeline will infer the proper transformation based on the
-       * statistic of dataset.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation} - */ - 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.AutoTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformationOrBuilder { - 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_AutoTransformation_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_AutoTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.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_AutoTransformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation(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.AutoTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.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.AutoTransformation - 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.AutoTransformation) - 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.AutoTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoTransformation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.AutoTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface NumericTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation) - 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(); - - /** - * - * - *
-       * 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(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation} - */ - public static final class NumericTransformation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation) - NumericTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use NumericTransformation.newBuilder() to construct. - private NumericTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NumericTransformation() { - columnName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NumericTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NumericTransformation( - 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(); - } - } - - 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_NumericTransformation_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_NumericTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.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; - } - } - - 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 - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - 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 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.NumericTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - obj; - - if (!getColumnName().equals(other.getColumnName())) return false; - if (getInvalidValuesAllowed() != other.getInvalidValuesAllowed()) return false; - if (!unknownFields.equals(other.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 = (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; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - 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.NumericTransformation - parseFrom( - java.nio.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.NumericTransformation - 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.NumericTransformation - parseFrom( - com.google.protobuf.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.NumericTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - parseFrom(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.NumericTransformation - 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.NumericTransformation - parseFrom( - java.io.InputStream input, - com.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.NumericTransformation - 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.NumericTransformation - parseDelimitedFrom( - java.io.InputStream input, - com.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.NumericTransformation - parseFrom(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.NumericTransformation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.NumericTransformation - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 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.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation} - */ - 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.NumericTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformationOrBuilder { - 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_NumericTransformation_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_NumericTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.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_ = ""; - - invalidValuesAllowed_ = false; - - 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_NumericTransformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation(this); - result.columnName_ = columnName_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - 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.NumericTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - .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.NumericTransformation - 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.NumericTransformation) - 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.NumericTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericTransformation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.NumericTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface CategoricalTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation) - 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(); - } - /** - * - * - *
-     * Training pipeline will perform following transformation functions.
-     * *  The categorical string as is--no change to case, punctuation,
-     * 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.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation} - */ - public static final class CategoricalTransformation - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation) - CategoricalTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use CategoricalTransformation.newBuilder() to construct. - private CategoricalTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CategoricalTransformation() { - columnName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CategoricalTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CategoricalTransformation( - 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_CategoricalTransformation_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_CategoricalTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.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.CategoricalTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - 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.CategoricalTransformation - 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.CategoricalTransformation - parseFrom( - java.nio.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.CategoricalTransformation - 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.CategoricalTransformation - parseFrom( - com.google.protobuf.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.CategoricalTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - parseFrom(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.CategoricalTransformation - 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.CategoricalTransformation - parseFrom( - java.io.InputStream input, - com.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.CategoricalTransformation - 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.CategoricalTransformation - parseDelimitedFrom( - java.io.InputStream input, - com.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.CategoricalTransformation - parseFrom(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.CategoricalTransformation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.CategoricalTransformation - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 pipeline will perform following transformation functions.
-       * *  The categorical string as is--no change to case, punctuation,
-       * 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.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation} - */ - 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.CategoricalTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformationOrBuilder { - 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_CategoricalTransformation_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_CategoricalTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder - .class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.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_CategoricalTransformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation(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.CategoricalTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .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.CategoricalTransformation - 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.CategoricalTransformation) - 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.CategoricalTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CategoricalTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoricalTransformation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.CategoricalTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface TimestampTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation) - 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(); - - /** - * - * - *
-       * 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
-       * default format is RFC 3339 `date-time` format, where
-       * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-       * 
- * - * string time_format = 2; - * - * @return The timeFormat. - */ - java.lang.String getTimeFormat(); - /** - * - * - *
-       * 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
-       * default format is RFC 3339 `date-time` format, where
-       * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-       * 
- * - * string time_format = 2; - * - * @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(); - } - /** - * - * - *
-     * 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.
-     * *  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.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation} - */ - public static final class TimestampTransformation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation) - TimestampTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use TimestampTransformation.newBuilder() to construct. - private TimestampTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TimestampTransformation() { - columnName_ = ""; - timeFormat_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TimestampTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TimestampTransformation( - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - timeFormat_ = s; - break; - } - case 24: - { - 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(); - } - } - - 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_TimestampTransformation_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_TimestampTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.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; - } - } - - public static final int TIME_FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object timeFormat_; - /** - * - * - *
-       * 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
-       * default format is RFC 3339 `date-time` format, where
-       * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-       * 
- * - * string time_format = 2; - * - * @return The timeFormat. - */ - @java.lang.Override - public java.lang.String getTimeFormat() { - java.lang.Object ref = timeFormat_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeFormat_ = s; - return s; - } - } - /** - * - * - *
-       * 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
-       * default format is RFC 3339 `date-time` format, where
-       * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-       * 
- * - * string time_format = 2; - * - * @return The bytes for timeFormat. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTimeFormatBytes() { - java.lang.Object ref = timeFormat_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!getTimeFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timeFormat_); - } - if (invalidValuesAllowed_ != false) { - output.writeBool(3, invalidValuesAllowed_); - } - 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_); - } - 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; - } - - @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.TimestampTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - 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; - } - - @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) + 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; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - 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.TimestampTransformation - parseFrom( - java.nio.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.TimestampTransformation - 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.TimestampTransformation - parseFrom( - com.google.protobuf.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.TimestampTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - parseFrom(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.TimestampTransformation - 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.TimestampTransformation - parseFrom( - java.io.InputStream input, - com.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.TimestampTransformation - 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.TimestampTransformation - parseDelimitedFrom( - java.io.InputStream input, - com.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.TimestampTransformation - parseFrom(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.TimestampTransformation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.TimestampTransformation - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 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.
-       * *  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.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation} - */ - 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.TimestampTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformationOrBuilder { - 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_TimestampTransformation_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_TimestampTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder - .class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.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_ = ""; - - timeFormat_ = ""; - - invalidValuesAllowed_ = false; - - 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_TimestampTransformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation(this); - result.columnName_ = columnName_; - result.timeFormat_ = timeFormat_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - 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.TimestampTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - .getDefaultInstance()) return this; - if (!other.getColumnName().isEmpty()) { - columnName_ = other.columnName_; - onChanged(); - } - if (!other.getTimeFormat().isEmpty()) { - timeFormat_ = other.timeFormat_; - 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.TimestampTransformation - 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.TimestampTransformation) - 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 java.lang.Object timeFormat_ = ""; - /** - * - * - *
-         * 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
-         * default format is RFC 3339 `date-time` format, where
-         * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-         * 
- * - * string time_format = 2; - * - * @return The timeFormat. - */ - public java.lang.String getTimeFormat() { - java.lang.Object ref = timeFormat_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeFormat_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * 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
-         * default format is RFC 3339 `date-time` format, where
-         * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-         * 
- * - * string time_format = 2; - * - * @return The bytes for timeFormat. - */ - public com.google.protobuf.ByteString getTimeFormatBytes() { - java.lang.Object ref = timeFormat_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * 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
-         * default format is RFC 3339 `date-time` format, where
-         * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-         * 
- * - * string time_format = 2; - * - * @param value The timeFormat to set. - * @return This builder for chaining. - */ - public Builder setTimeFormat(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timeFormat_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * 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
-         * default format is RFC 3339 `date-time` format, where
-         * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-         * 
- * - * string time_format = 2; - * - * @return This builder for chaining. - */ - public Builder clearTimeFormat() { - - timeFormat_ = getDefaultInstance().getTimeFormat(); - onChanged(); - return this; - } - /** - * - * - *
-         * 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
-         * default format is RFC 3339 `date-time` format, where
-         * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
-         * 
- * - * string time_format = 2; - * - * @param value The bytes for timeFormat to set. - * @return This builder for chaining. - */ - public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timeFormat_ = 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 = 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) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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.TimestampTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimestampTransformation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.TimestampTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface TextTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation) - 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(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation} - */ - public static final class TextTransformation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation) - TextTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextTransformation.newBuilder() to construct. - private TextTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TextTransformation() { - columnName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TextTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TextTransformation( - 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_TextTransformation_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_TextTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.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.TextTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - 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.TextTransformation - 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.TextTransformation - parseFrom( - java.nio.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.TextTransformation - 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.TextTransformation - parseFrom( - com.google.protobuf.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.TextTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - parseFrom(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.TextTransformation - 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.TextTransformation - parseFrom( - java.io.InputStream input, - com.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.TextTransformation - 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.TextTransformation - parseDelimitedFrom( - java.io.InputStream input, - com.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.TextTransformation - parseFrom(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.TextTransformation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.TextTransformation - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 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.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation} - */ - 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.TextTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformationOrBuilder { - 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_TextTransformation_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_TextTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.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_TextTransformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation(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.TextTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.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.TextTransformation - 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.TextTransformation) - 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.TextTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextTransformation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.TextTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface NumericArrayTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - 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(); - - /** - * - * - *
-       * 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(); - } - /** - * - * - *
-     * 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 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 - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NumericArrayTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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(); - } - } - - 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; - } - - @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 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; - } - } - - 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 - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - 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 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; - } - - @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; - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - 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 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); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 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; - } - - @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); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.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_ = ""; - - invalidValuesAllowed_ = false; - - 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_NumericArrayTransformation_descriptor; - } - - @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(); - } - - @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; - } - - @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 clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - 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(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - 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; - } - - @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.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_; - } - - 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; - } - /** - * - * .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(); - } - } - /** - * - * .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(); - } - 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()); - } - 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(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 3) { - categoricalBuilder_.mergeFrom(value); - } - 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(); - } - } else { - if (transformationDetailCase_ == 3) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - categoricalBuilder_.clear(); - } - 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(); - } - /** - * - * .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_; - } - 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; - * - */ - 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; - onChanged(); - ; - return categoricalBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder> - timestampBuilder_; - /** - * - * .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 (timestampBuilder_ == null) { - 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(); - } else { - if (transformationDetailCase_ == 4) { - return timestampBuilder_.getMessage(); - } - 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; - * - */ - public Builder setTimestamp( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation - value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transformationDetail_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - transformationDetailCase_ = 4; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - */ - public Builder setTimestamp( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation.Builder - builderForValue) { - if (timestampBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - transformationDetailCase_ = 4; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - */ - public Builder mergeTimestamp( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation - value) { - if (timestampBuilder_ == null) { - if (transformationDetailCase_ == 4 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 4) { - timestampBuilder_.mergeFrom(value); - } - timestampBuilder_.setMessage(value); - } - transformationDetailCase_ = 4; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - if (transformationDetailCase_ == 4) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - } - } else { - if (transformationDetailCase_ == 4) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - timestampBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder - getTimestampBuilder() { - return getTimestampFieldBuilder().getBuilder(); - } - /** - * - * .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) && (timestampBuilder_ != null)) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - 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; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - if (!(transformationDetailCase_ == 4)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - .getDefaultInstance(); - } - timestampBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 4; - onChanged(); - ; - return timestampBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder> - textBuilder_; - /** - * - * .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 (textBuilder_ == null) { - 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(); - } else { - if (transformationDetailCase_ == 5) { - return textBuilder_.getMessage(); - } - 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; - * - */ - public Builder setText( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation - value) { - if (textBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transformationDetail_ = value; - onChanged(); - } else { - textBuilder_.setMessage(value); - } - transformationDetailCase_ = 5; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - */ - public Builder setText( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation.Builder - builderForValue) { - if (textBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - textBuilder_.setMessage(builderForValue.build()); - } - transformationDetailCase_ = 5; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - */ - public Builder mergeText( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation - value) { - if (textBuilder_ == null) { - if (transformationDetailCase_ == 5 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 5) { - textBuilder_.mergeFrom(value); - } - textBuilder_.setMessage(value); - } - transformationDetailCase_ = 5; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - */ - public Builder clearText() { - if (textBuilder_ == null) { - if (transformationDetailCase_ == 5) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - } - } else { - if (transformationDetailCase_ == 5) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - textBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder - getTextBuilder() { - return getTextFieldBuilder().getBuilder(); - } - /** - * - * .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) && (textBuilder_ != null)) { - return textBuilder_.getMessageOrBuilder(); - } else { - 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; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder> - getTextFieldBuilder() { - if (textBuilder_ == null) { - if (!(transformationDetailCase_ == 5)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); - } - textBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 5; - onChanged(); - ; - return textBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformationOrBuilder> - repeatedNumericBuilder_; - /** - * - * .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 (repeatedNumericBuilder_ == null) { - 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(); - } else { - if (transformationDetailCase_ == 6) { - return repeatedNumericBuilder_.getMessage(); - } - 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; - * - */ - public Builder setRepeatedNumeric( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - value) { - if (repeatedNumericBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transformationDetail_ = value; - onChanged(); - } else { - repeatedNumericBuilder_.setMessage(value); - } - transformationDetailCase_ = 6; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - */ - public Builder setRepeatedNumeric( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation.Builder - builderForValue) { - if (repeatedNumericBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - repeatedNumericBuilder_.setMessage(builderForValue.build()); - } - transformationDetailCase_ = 6; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - */ - public Builder mergeRepeatedNumeric( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - value) { - if (repeatedNumericBuilder_ == null) { - if (transformationDetailCase_ == 6 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 6) { - repeatedNumericBuilder_.mergeFrom(value); - } - repeatedNumericBuilder_.setMessage(value); - } - transformationDetailCase_ = 6; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - */ - public Builder clearRepeatedNumeric() { - if (repeatedNumericBuilder_ == null) { - if (transformationDetailCase_ == 6) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - } - } else { - if (transformationDetailCase_ == 6) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - repeatedNumericBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder - getRepeatedNumericBuilder() { - return getRepeatedNumericFieldBuilder().getBuilder(); - } - /** - * - * .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) && (repeatedNumericBuilder_ != null)) { - return repeatedNumericBuilder_.getMessageOrBuilder(); - } else { - 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; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformationOrBuilder> - getRepeatedNumericFieldBuilder() { - if (repeatedNumericBuilder_ == null) { - if (!(transformationDetailCase_ == 6)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - .getDefaultInstance(); - } - repeatedNumericBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 6; - onChanged(); - ; - return repeatedNumericBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformationOrBuilder> - repeatedCategoricalBuilder_; - /** - * - * .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 (repeatedCategoricalBuilder_ == null) { - 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(); - } else { - if (transformationDetailCase_ == 7) { - return repeatedCategoricalBuilder_.getMessage(); - } - 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; - * - */ - public Builder setRepeatedCategorical( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - value) { - if (repeatedCategoricalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transformationDetail_ = value; - onChanged(); - } else { - repeatedCategoricalBuilder_.setMessage(value); - } - transformationDetailCase_ = 7; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - */ - public Builder setRepeatedCategorical( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation.Builder - builderForValue) { - if (repeatedCategoricalBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - repeatedCategoricalBuilder_.setMessage(builderForValue.build()); - } - transformationDetailCase_ = 7; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - */ - public Builder mergeRepeatedCategorical( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - value) { - if (repeatedCategoricalBuilder_ == null) { - if (transformationDetailCase_ == 7 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - .CategoricalArrayTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 7) { - repeatedCategoricalBuilder_.mergeFrom(value); - } - repeatedCategoricalBuilder_.setMessage(value); - } - transformationDetailCase_ = 7; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - */ - public Builder clearRepeatedCategorical() { - if (repeatedCategoricalBuilder_ == null) { - if (transformationDetailCase_ == 7) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - } - } else { - if (transformationDetailCase_ == 7) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - repeatedCategoricalBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder - getRepeatedCategoricalBuilder() { - return getRepeatedCategoricalFieldBuilder().getBuilder(); - } - /** - * - * .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) && (repeatedCategoricalBuilder_ != null)) { - return repeatedCategoricalBuilder_.getMessageOrBuilder(); - } else { - 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; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformationOrBuilder> - getRepeatedCategoricalFieldBuilder() { - if (repeatedCategoricalBuilder_ == null) { - if (!(transformationDetailCase_ == 7)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance(); - } - repeatedCategoricalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - .CategoricalArrayTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 7; - onChanged(); - ; - return repeatedCategoricalBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformationOrBuilder> - repeatedTextBuilder_; - /** - * - * .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 (repeatedTextBuilder_ == null) { - 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(); - } else { - if (transformationDetailCase_ == 8) { - return repeatedTextBuilder_.getMessage(); - } - 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; - * - */ - public Builder setRepeatedText( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - value) { - if (repeatedTextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transformationDetail_ = value; - onChanged(); - } else { - repeatedTextBuilder_.setMessage(value); - } - transformationDetailCase_ = 8; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - */ - public Builder setRepeatedText( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation.Builder - builderForValue) { - if (repeatedTextBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - repeatedTextBuilder_.setMessage(builderForValue.build()); - } - transformationDetailCase_ = 8; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - */ - public Builder mergeRepeatedText( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - value) { - if (repeatedTextBuilder_ == null) { - if (transformationDetailCase_ == 8 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 8) { - repeatedTextBuilder_.mergeFrom(value); - } - repeatedTextBuilder_.setMessage(value); - } - transformationDetailCase_ = 8; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - */ - public Builder clearRepeatedText() { - if (repeatedTextBuilder_ == null) { - if (transformationDetailCase_ == 8) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - } - } else { - if (transformationDetailCase_ == 8) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - repeatedTextBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder - getRepeatedTextBuilder() { - return getRepeatedTextFieldBuilder().getBuilder(); - } - /** - * - * .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) && (repeatedTextBuilder_ != null)) { - return repeatedTextBuilder_.getMessageOrBuilder(); - } else { - 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; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformationOrBuilder> - getRepeatedTextFieldBuilder() { - if (repeatedTextBuilder_ == null) { - if (!(transformationDetailCase_ == 8)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - .getDefaultInstance(); - } - repeatedTextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 8; - onChanged(); - ; - return repeatedTextBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Transformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Transformation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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 - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface PeriodOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
-     * 
- * - * string unit = 1; - * - * @return The unit. - */ - java.lang.String getUnit(); - /** - * - * - *
-     * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
-     * 
- * - * string unit = 1; - * - * @return The bytes for unit. - */ - com.google.protobuf.ByteString getUnitBytes(); - - /** - * - * - *
-     * The number of units per period, e.g. 3 weeks or 2 months.
-     * 
- * - * int64 quantity = 2; - * - * @return The quantity. - */ - long getQuantity(); - } - /** - * - * - *
-   * A duration of time expressed in time granularity units.
-   * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} - */ - public static final class Period extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) - PeriodOrBuilder { - private static final long serialVersionUID = 0L; - // Use Period.newBuilder() to construct. - private Period(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Period() { - unit_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Period(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Period( - 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(); - - unit_ = s; - break; - } - case 16: - { - quantity_ = 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.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_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_Period_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder.class); - } - - public static final int UNIT_FIELD_NUMBER = 1; - private volatile java.lang.Object unit_; - /** - * - * - *
-     * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
-     * 
- * - * string unit = 1; - * - * @return The unit. - */ - @java.lang.Override - public java.lang.String getUnit() { - java.lang.Object ref = unit_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - unit_ = s; - return s; - } - } - /** - * - * - *
-     * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
-     * 
- * - * string unit = 1; - * - * @return The bytes for unit. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUnitBytes() { - java.lang.Object ref = unit_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - unit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUANTITY_FIELD_NUMBER = 2; - private long quantity_; - /** - * - * - *
-     * The number of units per period, e.g. 3 weeks or 2 months.
-     * 
- * - * int64 quantity = 2; - * - * @return The quantity. - */ - @java.lang.Override - public long getQuantity() { - return quantity_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUnitBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unit_); - } - if (quantity_ != 0L) { - output.writeInt64(2, quantity_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUnitBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, unit_); - } - if (quantity_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, quantity_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @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 - .Period)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period) - obj; - - if (!getUnit().equals(other.getUnit())) return false; - if (getQuantity() != other.getQuantity()) return false; - if (!unknownFields.equals(other.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) + UNIT_FIELD_NUMBER; - hash = (53 * hash) + getUnit().hashCode(); - hash = (37 * hash) + QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQuantity()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - 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 - parseFrom( - java.nio.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.Period - 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 - parseFrom( - com.google.protobuf.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.Period - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - parseFrom(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 - 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 - parseFrom( - java.io.InputStream input, com.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.Period - 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 - parseDelimitedFrom( - java.io.InputStream input, com.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.Period - parseFrom(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 - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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 - .Period - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 duration of time expressed in time granularity units.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} - */ - 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) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .PeriodOrBuilder { - 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; - } - - @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_Period_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.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(); - unit_ = ""; - - quantity_ = 0L; - - 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_Period_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period(this); - result.unit_ = unit_; - result.quantity_ = quantity_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - 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.Period) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance()) return this; - if (!other.getUnit().isEmpty()) { - unit_ = other.unit_; - onChanged(); - } - if (other.getQuantity() != 0L) { - setQuantity(other.getQuantity()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.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 - .Period - 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) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object unit_ = ""; - /** - * - * - *
-       * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
-       * 
- * - * string unit = 1; - * - * @return The unit. - */ - public java.lang.String getUnit() { - java.lang.Object ref = unit_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - unit_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
-       * 
- * - * string unit = 1; - * - * @return The bytes for unit. - */ - public com.google.protobuf.ByteString getUnitBytes() { - java.lang.Object ref = unit_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - unit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
-       * 
- * - * string unit = 1; - * - * @param value The unit to set. - * @return This builder for chaining. - */ - public Builder setUnit(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - unit_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
-       * 
- * - * string unit = 1; - * - * @return This builder for chaining. - */ - public Builder clearUnit() { - - unit_ = getDefaultInstance().getUnit(); - onChanged(); - return this; - } - /** - * - * - *
-       * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
-       * 
- * - * string unit = 1; - * - * @param value The bytes for unit to set. - * @return This builder for chaining. - */ - public Builder setUnitBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - unit_ = value; - onChanged(); - return this; - } - - private long quantity_; - /** - * - * - *
-       * The number of units per period, e.g. 3 weeks or 2 months.
-       * 
- * - * int64 quantity = 2; - * - * @return The quantity. - */ - @java.lang.Override - public long getQuantity() { - return quantity_; - } - /** - * - * - *
-       * The number of units per period, e.g. 3 weeks or 2 months.
-       * 
- * - * int64 quantity = 2; - * - * @param value The quantity to set. - * @return This builder for chaining. - */ - public Builder setQuantity(long value) { - - quantity_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The number of units per period, e.g. 3 weeks or 2 months.
-       * 
- * - * int64 quantity = 2; - * - * @return This builder for chaining. - */ - public Builder clearQuantity() { - - quantity_ = 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.schema.trainingjob.definition.AutoMlForecastingInputs.Period) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Period parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Period(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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 - .Period - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int TARGET_COLUMN_FIELD_NUMBER = 1; - private volatile java.lang.Object targetColumn_; - /** - * - * - *
-   * The name of the column that the model is to predict.
-   * 
- * - * string target_column = 1; - * - * @return The targetColumn. - */ - @java.lang.Override - public java.lang.String getTargetColumn() { - java.lang.Object ref = targetColumn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetColumn_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the column that the model is to predict.
-   * 
- * - * string target_column = 1; - * - * @return The bytes for targetColumn. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetColumnBytes() { - java.lang.Object ref = targetColumn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIME_SERIES_IDENTIFIER_COLUMN_FIELD_NUMBER = 2; - private volatile java.lang.Object timeSeriesIdentifierColumn_; - /** - * - * - *
-   * The name of the column that identifies the time series.
-   * 
- * - * string time_series_identifier_column = 2; - * - * @return The timeSeriesIdentifierColumn. - */ - @java.lang.Override - public java.lang.String getTimeSeriesIdentifierColumn() { - java.lang.Object ref = timeSeriesIdentifierColumn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeSeriesIdentifierColumn_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the column that identifies the time series.
-   * 
- * - * string time_series_identifier_column = 2; - * - * @return The bytes for timeSeriesIdentifierColumn. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTimeSeriesIdentifierColumnBytes() { - java.lang.Object ref = timeSeriesIdentifierColumn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeSeriesIdentifierColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIME_COLUMN_FIELD_NUMBER = 3; - private volatile java.lang.Object timeColumn_; - /** - * - * - *
-   * The name of the column that identifies time order in the time series.
-   * 
- * - * string time_column = 3; - * - * @return The timeColumn. - */ - @java.lang.Override - public java.lang.String getTimeColumn() { - java.lang.Object ref = timeColumn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeColumn_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the column that identifies time order in the time series.
-   * 
- * - * string time_column = 3; - * - * @return The bytes for timeColumn. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTimeColumnBytes() { - java.lang.Object ref = timeColumn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRANSFORMATIONS_FIELD_NUMBER = 4; - private java.util.List< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation> - transformations_; - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation> - getTransformationsList() { - return transformations_; - } - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.TransformationOrBuilder> - getTransformationsOrBuilderList() { - return transformations_; - } - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - @java.lang.Override - public int getTransformationsCount() { - return transformations_.size(); - } - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - getTransformations(int index) { - return transformations_.get(index); - } - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .TransformationOrBuilder - getTransformationsOrBuilder(int index) { - return transformations_.get(index); - } - - public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 5; - private volatile java.lang.Object optimizationObjective_; - /** - * - * - *
-   * Objective function the model is optimizing towards. The training process
-   * 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
-   *     percentage error (WAPE) and mean-absolute-error (MAE).
-   *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-   *     defined in `quantiles`.
-   * 
- * - * string optimization_objective = 5; - * - * @return The optimizationObjective. - */ - @java.lang.Override - public java.lang.String getOptimizationObjective() { - java.lang.Object ref = optimizationObjective_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - optimizationObjective_ = s; - return s; - } - } - /** - * - * - *
-   * Objective function the model is optimizing towards. The training process
-   * 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
-   *     percentage error (WAPE) and mean-absolute-error (MAE).
-   *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-   *     defined in `quantiles`.
-   * 
- * - * string optimization_objective = 5; - * - * @return The bytes for optimizationObjective. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { - java.lang.Object ref = optimizationObjective_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - optimizationObjective_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 6; - private long trainBudgetMilliNodeHours_; - /** - * - * - *
-   * Required. The train budget of creating this model, expressed in milli node
-   * hours i.e. 1,000 value in this field means 1 node hour.
-   * The training cost of the model will not exceed this budget. The final cost
-   * will be attempted to be close to the budget, though may end up being (even)
-   * noticeably smaller - at the backend's discretion. This especially may
-   * happen when further model training ceases to provide any improvements.
-   * If the budget is set to a value known to be insufficient to train a
-   * model for the given dataset, the training won't be attempted and
-   * will error.
-   * The train budget must be between 1,000 and 72,000 milli node hours,
-   * inclusive.
-   * 
- * - * int64 train_budget_milli_node_hours = 6; - * - * @return The trainBudgetMilliNodeHours. - */ - @java.lang.Override - public long getTrainBudgetMilliNodeHours() { - return trainBudgetMilliNodeHours_; - } - - public static final int WEIGHT_COLUMN_FIELD_NUMBER = 7; - private volatile java.lang.Object weightColumn_; - /** - * - * - *
-   * Column name that should be used as the weight column.
-   * Higher values in this column give more importance to the row
-   * during model training. The column must have numeric values between 0 and
-   * 10000 inclusively; 0 means the row is ignored for training. If weight
-   * column field is not set, then all rows are assumed to have equal weight
-   * of 1.
-   * 
- * - * string weight_column = 7; - * - * @return The weightColumn. - */ - @java.lang.Override - public java.lang.String getWeightColumn() { - java.lang.Object ref = weightColumn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - weightColumn_ = s; - return s; - } - } - /** - * - * - *
-   * Column name that should be used as the weight column.
-   * Higher values in this column give more importance to the row
-   * during model training. The column must have numeric values between 0 and
-   * 10000 inclusively; 0 means the row is ignored for training. If weight
-   * column field is not set, then all rows are assumed to have equal weight
-   * of 1.
-   * 
- * - * string weight_column = 7; - * - * @return The bytes for weightColumn. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWeightColumnBytes() { - java.lang.Object ref = weightColumn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - weightColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATIC_COLUMNS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList staticColumns_; - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @return A list containing the staticColumns. - */ - public com.google.protobuf.ProtocolStringList getStaticColumnsList() { - return staticColumns_; - } - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @return The count of staticColumns. - */ - public int getStaticColumnsCount() { - return staticColumns_.size(); - } - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @param index The index of the element to return. - * @return The staticColumns at the given index. - */ - public java.lang.String getStaticColumns(int index) { - return staticColumns_.get(index); - } - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @param index The index of the value to return. - * @return The bytes of the staticColumns at the given index. - */ - public com.google.protobuf.ByteString getStaticColumnsBytes(int index) { - return staticColumns_.getByteString(index); - } - - public static final int TIME_VARIANT_PAST_ONLY_COLUMNS_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList timeVariantPastOnlyColumns_; - /** - * - * - *
-   * 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; - * - * @return A list containing the timeVariantPastOnlyColumns. - */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastOnlyColumnsList() { - return timeVariantPastOnlyColumns_; - } - /** - * - * - *
-   * 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; - * - * @return The count of timeVariantPastOnlyColumns. - */ - public int getTimeVariantPastOnlyColumnsCount() { - return timeVariantPastOnlyColumns_.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).
-   * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @param index The index of the element to return. - * @return The timeVariantPastOnlyColumns at the given index. - */ - public java.lang.String getTimeVariantPastOnlyColumns(int index) { - return timeVariantPastOnlyColumns_.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).
-   * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @param index The index of the value to return. - * @return The bytes of the timeVariantPastOnlyColumns at the given index. - */ - public com.google.protobuf.ByteString getTimeVariantPastOnlyColumnsBytes(int index) { - return timeVariantPastOnlyColumns_.getByteString(index); - } - - public static final int TIME_VARIANT_PAST_AND_FUTURE_COLUMNS_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList timeVariantPastAndFutureColumns_; - /** - * - * - *
-   * 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; - * - * @return A list containing the timeVariantPastAndFutureColumns. - */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastAndFutureColumnsList() { - return timeVariantPastAndFutureColumns_; - } - /** - * - * - *
-   * 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; - * - * @return The count of timeVariantPastAndFutureColumns. - */ - public int getTimeVariantPastAndFutureColumnsCount() { - return timeVariantPastAndFutureColumns_.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
-   * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @param index The index of the element to return. - * @return The timeVariantPastAndFutureColumns at the given index. - */ - public java.lang.String getTimeVariantPastAndFutureColumns(int index) { - return timeVariantPastAndFutureColumns_.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
-   * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @param index The index of the value to return. - * @return The bytes of the timeVariantPastAndFutureColumns at the given index. - */ - public com.google.protobuf.ByteString getTimeVariantPastAndFutureColumnsBytes(int index) { - return timeVariantPastAndFutureColumns_.getByteString(index); - } - - public static final int PERIOD_FIELD_NUMBER = 11; - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - period_; - /** - * - * - *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - * - * @return Whether the period field is set. - */ - @java.lang.Override - public boolean hasPeriod() { - return period_ != null; - } - /** - * - * - *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - * - * @return The period. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - getPeriod() { - return period_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period.getDefaultInstance() - : period_; - } - /** - * - * - *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - @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_; - } - - public static final int FORECAST_WINDOW_END_FIELD_NUMBER = 13; - private long forecastWindowEnd_; - /** - * - * - *
-   * 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; - * - * @return The forecastWindowEnd. - */ - @java.lang.Override - public long getForecastWindowEnd() { - return forecastWindowEnd_; - } - - public static final int PAST_HORIZON_FIELD_NUMBER = 14; - private long pastHorizon_; - /** - * - * - *
-   * 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; - * - * @return The pastHorizon. - */ - @java.lang.Override - public long getPastHorizon() { - return pastHorizon_; - } - - public static final int EXPORT_EVALUATED_DATA_ITEMS_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig - exportEvaluatedDataItemsConfig_; - /** - * - * - *
-   * Configuration for exporting test set predictions to a BigQuery table. If
-   * this configuration is absent, then the export is not performed.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - * - * @return Whether the exportEvaluatedDataItemsConfig field is set. - */ - @java.lang.Override - public boolean hasExportEvaluatedDataItemsConfig() { - return exportEvaluatedDataItemsConfig_ != null; - } - /** - * - * - *
-   * Configuration for exporting test set predictions to a BigQuery table. If
-   * this configuration is absent, then the export is not performed.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - * - * @return The exportEvaluatedDataItemsConfig. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig - getExportEvaluatedDataItemsConfig() { - return exportEvaluatedDataItemsConfig_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.getDefaultInstance() - : exportEvaluatedDataItemsConfig_; - } - /** - * - * - *
-   * Configuration for exporting test set predictions to a BigQuery table. If
-   * this configuration is absent, then the export is not performed.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigOrBuilder - getExportEvaluatedDataItemsConfigOrBuilder() { - return getExportEvaluatedDataItemsConfig(); - } - - public static final int QUANTILES_FIELD_NUMBER = 16; - private com.google.protobuf.Internal.DoubleList quantiles_; - /** - * - * - *
-   * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-   * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-   * the value of optimization_objective is minimize-quantile-loss. Represents
-   * the percent quantiles to use for that objective. Quantiles must be unique.
-   * 
- * - * repeated double quantiles = 16; - * - * @return A list containing the quantiles. - */ - @java.lang.Override - public java.util.List getQuantilesList() { - return quantiles_; - } - /** - * - * - *
-   * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-   * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-   * the value of optimization_objective is minimize-quantile-loss. Represents
-   * the percent quantiles to use for that objective. Quantiles must be unique.
-   * 
- * - * repeated double quantiles = 16; - * - * @return The count of quantiles. - */ - public int getQuantilesCount() { - return quantiles_.size(); - } - /** - * - * - *
-   * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-   * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-   * the value of optimization_objective is minimize-quantile-loss. Represents
-   * the percent quantiles to use for that objective. Quantiles must be unique.
-   * 
- * - * repeated double quantiles = 16; - * - * @param index The index of the element to return. - * @return The quantiles at the given index. - */ - public double getQuantiles(int index) { - return quantiles_.getDouble(index); - } - - private int quantilesMemoizedSerializedSize = -1; - - public static final int VALIDATION_OPTIONS_FIELD_NUMBER = 17; - private volatile java.lang.Object validationOptions_; - /** - * - * - *
-   * 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
-   * 
- * - * string validation_options = 17; - * - * @return The validationOptions. - */ - @java.lang.Override - public java.lang.String getValidationOptions() { - java.lang.Object ref = validationOptions_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validationOptions_ = s; - return s; - } - } - /** - * - * - *
-   * 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
-   * 
- * - * string validation_options = 17; - * - * @return The bytes for validationOptions. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValidationOptionsBytes() { - java.lang.Object ref = validationOptions_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - validationOptions_ = 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 { - getSerializedSize(); - if (!getTargetColumnBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetColumn_); - } - if (!getTimeSeriesIdentifierColumnBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timeSeriesIdentifierColumn_); - } - if (!getTimeColumnBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, timeColumn_); - } - for (int i = 0; i < transformations_.size(); i++) { - output.writeMessage(4, transformations_.get(i)); - } - if (!getOptimizationObjectiveBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, optimizationObjective_); - } - if (trainBudgetMilliNodeHours_ != 0L) { - output.writeInt64(6, trainBudgetMilliNodeHours_); - } - 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()); - } - if (getQuantilesList().size() > 0) { - output.writeUInt32NoTag(130); - output.writeUInt32NoTag(quantilesMemoizedSerializedSize); - } - for (int i = 0; i < quantiles_.size(); i++) { - output.writeDoubleNoTag(quantiles_.getDouble(i)); - } - if (!getValidationOptionsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, validationOptions_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTargetColumnBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetColumn_); - } - if (!getTimeSeriesIdentifierColumnBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeSeriesIdentifierColumn_); - } - if (!getTimeColumnBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, timeColumn_); - } - for (int i = 0; i < transformations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, transformations_.get(i)); - } - if (!getOptimizationObjectiveBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, optimizationObjective_); - } - if (trainBudgetMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); - } - if (!getWeightColumnBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, weightColumn_); - } - { - int dataSize = 0; - for (int i = 0; i < staticColumns_.size(); i++) { - dataSize += computeStringSizeNoTag(staticColumns_.getRaw(i)); - } - size += dataSize; - size += 1 * getStaticColumnsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < timeVariantPastOnlyColumns_.size(); i++) { - dataSize += computeStringSizeNoTag(timeVariantPastOnlyColumns_.getRaw(i)); - } - size += dataSize; - size += 1 * getTimeVariantPastOnlyColumnsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < timeVariantPastAndFutureColumns_.size(); i++) { - dataSize += computeStringSizeNoTag(timeVariantPastAndFutureColumns_.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()); - } - { - int dataSize = 0; - dataSize = 8 * getQuantilesList().size(); - size += dataSize; - 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_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @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)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs) - obj; - - if (!getTargetColumn().equals(other.getTargetColumn())) return false; - if (!getTimeSeriesIdentifierColumn().equals(other.getTimeSeriesIdentifierColumn())) - return false; - if (!getTimeColumn().equals(other.getTimeColumn())) return false; - if (!getTransformationsList().equals(other.getTransformationsList())) return false; - 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())) - 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 (hasExportEvaluatedDataItemsConfig() != other.hasExportEvaluatedDataItemsConfig()) - return false; - if (hasExportEvaluatedDataItemsConfig()) { - if (!getExportEvaluatedDataItemsConfig().equals(other.getExportEvaluatedDataItemsConfig())) - return false; - } - if (!getQuantilesList().equals(other.getQuantilesList())) return false; - if (!getValidationOptions().equals(other.getValidationOptions())) return false; - if (!unknownFields.equals(other.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) + TARGET_COLUMN_FIELD_NUMBER; - hash = (53 * hash) + getTargetColumn().hashCode(); - hash = (37 * hash) + TIME_SERIES_IDENTIFIER_COLUMN_FIELD_NUMBER; - hash = (53 * hash) + getTimeSeriesIdentifierColumn().hashCode(); - hash = (37 * hash) + TIME_COLUMN_FIELD_NUMBER; - hash = (53 * hash) + getTimeColumn().hashCode(); - if (getTransformationsCount() > 0) { - hash = (37 * hash) + TRANSFORMATIONS_FIELD_NUMBER; - hash = (53 * hash) + getTransformationsList().hashCode(); - } - hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_FIELD_NUMBER; - hash = (53 * hash) + getOptimizationObjective().hashCode(); - hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; - 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 (hasExportEvaluatedDataItemsConfig()) { - hash = (37 * hash) + EXPORT_EVALUATED_DATA_ITEMS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getExportEvaluatedDataItemsConfig().hashCode(); - } - if (getQuantilesCount() > 0) { - hash = (37 * hash) + QUANTILES_FIELD_NUMBER; - hash = (53 * hash) + getQuantilesList().hashCode(); - } - hash = (37 * hash) + VALIDATION_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getValidationOptions().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs - 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 - parseFrom( - java.nio.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 - 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 - parseFrom( - com.google.protobuf.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 - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs - parseFrom(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 - 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 - parseFrom( - java.io.InputStream input, com.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 - 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 - parseDelimitedFrom( - java.io.InputStream input, com.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 - parseFrom(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 - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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 - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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} - */ - 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) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputsOrBuilder { - 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_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_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTransformationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - targetColumn_ = ""; - - timeSeriesIdentifierColumn_ = ""; - - timeColumn_ = ""; - - if (transformationsBuilder_ == null) { - transformations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transformationsBuilder_.clear(); - } - optimizationObjective_ = ""; - - trainBudgetMilliNodeHours_ = 0L; - - weightColumn_ = ""; - - staticColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - timeVariantPastOnlyColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - timeVariantPastAndFutureColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (periodBuilder_ == null) { - period_ = null; - } else { - period_ = null; - periodBuilder_ = null; - } - forecastWindowStart_ = 0L; - - forecastWindowEnd_ = 0L; - - pastHorizon_ = 0L; - - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - } else { - exportEvaluatedDataItemsConfig_ = null; - exportEvaluatedDataItemsConfigBuilder_ = null; - } - quantiles_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000010); - validationOptions_ = ""; - - 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_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs(this); - int from_bitField0_ = bitField0_; - result.targetColumn_ = targetColumn_; - result.timeSeriesIdentifierColumn_ = timeSeriesIdentifierColumn_; - result.timeColumn_ = timeColumn_; - if (transformationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transformations_ = java.util.Collections.unmodifiableList(transformations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transformations_ = transformations_; - } else { - result.transformations_ = transformationsBuilder_.build(); - } - result.optimizationObjective_ = optimizationObjective_; - result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; - result.weightColumn_ = weightColumn_; - if (((bitField0_ & 0x00000002) != 0)) { - staticColumns_ = staticColumns_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.staticColumns_ = staticColumns_; - if (((bitField0_ & 0x00000004) != 0)) { - timeVariantPastOnlyColumns_ = timeVariantPastOnlyColumns_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.timeVariantPastOnlyColumns_ = timeVariantPastOnlyColumns_; - if (((bitField0_ & 0x00000008) != 0)) { - timeVariantPastAndFutureColumns_ = timeVariantPastAndFutureColumns_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.timeVariantPastAndFutureColumns_ = timeVariantPastAndFutureColumns_; - if (periodBuilder_ == null) { - result.period_ = period_; - } else { - result.period_ = periodBuilder_.build(); - } - result.forecastWindowStart_ = forecastWindowStart_; - result.forecastWindowEnd_ = forecastWindowEnd_; - result.pastHorizon_ = pastHorizon_; - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfig_; - } else { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfigBuilder_.build(); - } - if (((bitField0_ & 0x00000010) != 0)) { - quantiles_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.quantiles_ = quantiles_; - result.validationOptions_ = validationOptions_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - 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) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.getDefaultInstance()) return this; - if (!other.getTargetColumn().isEmpty()) { - targetColumn_ = other.targetColumn_; - onChanged(); - } - if (!other.getTimeSeriesIdentifierColumn().isEmpty()) { - timeSeriesIdentifierColumn_ = other.timeSeriesIdentifierColumn_; - onChanged(); - } - if (!other.getTimeColumn().isEmpty()) { - timeColumn_ = other.timeColumn_; - onChanged(); - } - if (transformationsBuilder_ == null) { - if (!other.transformations_.isEmpty()) { - if (transformations_.isEmpty()) { - transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransformationsIsMutable(); - transformations_.addAll(other.transformations_); - } - onChanged(); - } - } else { - if (!other.transformations_.isEmpty()) { - if (transformationsBuilder_.isEmpty()) { - transformationsBuilder_.dispose(); - transformationsBuilder_ = null; - transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); - transformationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTransformationsFieldBuilder() - : null; - } else { - transformationsBuilder_.addAllMessages(other.transformations_); - } - } - } - if (!other.getOptimizationObjective().isEmpty()) { - optimizationObjective_ = other.optimizationObjective_; - onChanged(); - } - if (other.getTrainBudgetMilliNodeHours() != 0L) { - setTrainBudgetMilliNodeHours(other.getTrainBudgetMilliNodeHours()); - } - if (!other.getWeightColumn().isEmpty()) { - weightColumn_ = other.weightColumn_; - onChanged(); - } - if (!other.staticColumns_.isEmpty()) { - if (staticColumns_.isEmpty()) { - staticColumns_ = other.staticColumns_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStaticColumnsIsMutable(); - staticColumns_.addAll(other.staticColumns_); - } - onChanged(); - } - if (!other.timeVariantPastOnlyColumns_.isEmpty()) { - if (timeVariantPastOnlyColumns_.isEmpty()) { - timeVariantPastOnlyColumns_ = other.timeVariantPastOnlyColumns_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.addAll(other.timeVariantPastOnlyColumns_); - } - onChanged(); - } - if (!other.timeVariantPastAndFutureColumns_.isEmpty()) { - if (timeVariantPastAndFutureColumns_.isEmpty()) { - timeVariantPastAndFutureColumns_ = other.timeVariantPastAndFutureColumns_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.addAll(other.timeVariantPastAndFutureColumns_); - } - onChanged(); - } - if (other.hasPeriod()) { - mergePeriod(other.getPeriod()); - } - if (other.getForecastWindowStart() != 0L) { - setForecastWindowStart(other.getForecastWindowStart()); - } - if (other.getForecastWindowEnd() != 0L) { - setForecastWindowEnd(other.getForecastWindowEnd()); - } - if (other.getPastHorizon() != 0L) { - setPastHorizon(other.getPastHorizon()); - } - if (other.hasExportEvaluatedDataItemsConfig()) { - mergeExportEvaluatedDataItemsConfig(other.getExportEvaluatedDataItemsConfig()); - } - if (!other.quantiles_.isEmpty()) { - if (quantiles_.isEmpty()) { - quantiles_ = other.quantiles_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureQuantilesIsMutable(); - quantiles_.addAll(other.quantiles_); - } - onChanged(); - } - if (!other.getValidationOptions().isEmpty()) { - validationOptions_ = other.validationOptions_; - 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 - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object targetColumn_ = ""; - /** - * - * - *
-     * The name of the column that the model is to predict.
-     * 
- * - * string target_column = 1; - * - * @return The targetColumn. - */ - public java.lang.String getTargetColumn() { - java.lang.Object ref = targetColumn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetColumn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the column that the model is to predict.
-     * 
- * - * string target_column = 1; - * - * @return The bytes for targetColumn. - */ - public com.google.protobuf.ByteString getTargetColumnBytes() { - java.lang.Object ref = targetColumn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the column that the model is to predict.
-     * 
- * - * string target_column = 1; - * - * @param value The targetColumn to set. - * @return This builder for chaining. - */ - public Builder setTargetColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetColumn_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the column that the model is to predict.
-     * 
- * - * string target_column = 1; - * - * @return This builder for chaining. - */ - public Builder clearTargetColumn() { - - targetColumn_ = getDefaultInstance().getTargetColumn(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the column that the model is to predict.
-     * 
- * - * string target_column = 1; - * - * @param value The bytes for targetColumn to set. - * @return This builder for chaining. - */ - public Builder setTargetColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetColumn_ = value; - onChanged(); - return this; - } - - private java.lang.Object timeSeriesIdentifierColumn_ = ""; - /** - * - * - *
-     * The name of the column that identifies the time series.
-     * 
- * - * string time_series_identifier_column = 2; - * - * @return The timeSeriesIdentifierColumn. - */ - public java.lang.String getTimeSeriesIdentifierColumn() { - java.lang.Object ref = timeSeriesIdentifierColumn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeSeriesIdentifierColumn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the column that identifies the time series.
-     * 
- * - * string time_series_identifier_column = 2; - * - * @return The bytes for timeSeriesIdentifierColumn. - */ - public com.google.protobuf.ByteString getTimeSeriesIdentifierColumnBytes() { - java.lang.Object ref = timeSeriesIdentifierColumn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeSeriesIdentifierColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the column that identifies the time series.
-     * 
- * - * string time_series_identifier_column = 2; - * - * @param value The timeSeriesIdentifierColumn to set. - * @return This builder for chaining. - */ - public Builder setTimeSeriesIdentifierColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timeSeriesIdentifierColumn_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the column that identifies the time series.
-     * 
- * - * string time_series_identifier_column = 2; - * - * @return This builder for chaining. - */ - public Builder clearTimeSeriesIdentifierColumn() { - - timeSeriesIdentifierColumn_ = getDefaultInstance().getTimeSeriesIdentifierColumn(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the column that identifies the time series.
-     * 
- * - * string time_series_identifier_column = 2; - * - * @param value The bytes for timeSeriesIdentifierColumn to set. - * @return This builder for chaining. - */ - public Builder setTimeSeriesIdentifierColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timeSeriesIdentifierColumn_ = value; - onChanged(); - return this; - } - - private java.lang.Object timeColumn_ = ""; - /** - * - * - *
-     * The name of the column that identifies time order in the time series.
-     * 
- * - * string time_column = 3; - * - * @return The timeColumn. - */ - public java.lang.String getTimeColumn() { - java.lang.Object ref = timeColumn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeColumn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the column that identifies time order in the time series.
-     * 
- * - * string time_column = 3; - * - * @return The bytes for timeColumn. - */ - public com.google.protobuf.ByteString getTimeColumnBytes() { - java.lang.Object ref = timeColumn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the column that identifies time order in the time series.
-     * 
- * - * string time_column = 3; - * - * @param value The timeColumn to set. - * @return This builder for chaining. - */ - public Builder setTimeColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timeColumn_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the column that identifies time order in the time series.
-     * 
- * - * string time_column = 3; - * - * @return This builder for chaining. - */ - public Builder clearTimeColumn() { - - timeColumn_ = getDefaultInstance().getTimeColumn(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the column that identifies time order in the time series.
-     * 
- * - * string time_column = 3; - * - * @param value The bytes for timeColumn to set. - * @return This builder for chaining. - */ - public Builder setTimeColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timeColumn_ = value; - onChanged(); - return this; - } - - private java.util.List< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation> - transformations_ = java.util.Collections.emptyList(); - - private void ensureTransformationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transformations_ = - new java.util.ArrayList< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation>(transformations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.TransformationOrBuilder> - transformationsBuilder_; - - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public java.util.List< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation> - getTransformationsList() { - if (transformationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transformations_); - } else { - return transformationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public int getTransformationsCount() { - if (transformationsBuilder_ == null) { - return transformations_.size(); - } else { - return transformationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - getTransformations(int index) { - if (transformationsBuilder_ == null) { - return transformations_.get(index); - } else { - return transformationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder setTransformations( - int index, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - value) { - if (transformationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformationsIsMutable(); - transformations_.set(index, value); - onChanged(); - } else { - transformationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder setTransformations( - int index, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.Builder - builderForValue) { - if (transformationsBuilder_ == null) { - ensureTransformationsIsMutable(); - transformations_.set(index, builderForValue.build()); - onChanged(); - } else { - transformationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder addTransformations( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - value) { - if (transformationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformationsIsMutable(); - transformations_.add(value); - onChanged(); - } else { - transformationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder addTransformations( - int index, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - value) { - if (transformationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformationsIsMutable(); - transformations_.add(index, value); - onChanged(); - } else { - transformationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder addTransformations( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.Builder - builderForValue) { - if (transformationsBuilder_ == null) { - ensureTransformationsIsMutable(); - transformations_.add(builderForValue.build()); - onChanged(); - } else { - transformationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder addTransformations( - int index, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.Builder - builderForValue) { - if (transformationsBuilder_ == null) { - ensureTransformationsIsMutable(); - transformations_.add(index, builderForValue.build()); - onChanged(); - } else { - transformationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder addAllTransformations( - java.lang.Iterable< - ? extends - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation> - values) { - if (transformationsBuilder_ == null) { - ensureTransformationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transformations_); - onChanged(); - } else { - transformationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder clearTransformations() { - if (transformationsBuilder_ == null) { - transformations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transformationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public Builder removeTransformations(int index) { - if (transformationsBuilder_ == null) { - ensureTransformationsIsMutable(); - transformations_.remove(index); - onChanged(); - } else { - transformationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.Builder - getTransformationsBuilder(int index) { - return getTransformationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .TransformationOrBuilder - getTransformationsOrBuilder(int index) { - if (transformationsBuilder_ == null) { - return transformations_.get(index); - } else { - return transformationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public java.util.List< - ? extends - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.TransformationOrBuilder> - getTransformationsOrBuilderList() { - if (transformationsBuilder_ != null) { - return transformationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transformations_); - } - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.Builder - addTransformationsBuilder() { - return getTransformationsFieldBuilder() - .addBuilder( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.getDefaultInstance()); - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.Builder - addTransformationsBuilder(int index) { - return getTransformationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.getDefaultInstance()); - } - /** - * - * - *
-     * Each transformation will apply transform function to given input column.
-     * And the result will be used for training.
-     * When creating transformation for BigQuery Struct column, the column should
-     * be flattened using "." as the delimiter.
-     * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - public java.util.List< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.Builder> - getTransformationsBuilderList() { - return getTransformationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.TransformationOrBuilder> - getTransformationsFieldBuilder() { - if (transformationsBuilder_ == null) { - transformationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.TransformationOrBuilder>( - transformations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transformations_ = null; - } - return transformationsBuilder_; - } - - private java.lang.Object optimizationObjective_ = ""; - /** - * - * - *
-     * Objective function the model is optimizing towards. The training process
-     * 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
-     *     percentage error (WAPE) and mean-absolute-error (MAE).
-     *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-     *     defined in `quantiles`.
-     * 
- * - * string optimization_objective = 5; - * - * @return The optimizationObjective. - */ - public java.lang.String getOptimizationObjective() { - java.lang.Object ref = optimizationObjective_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - optimizationObjective_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Objective function the model is optimizing towards. The training process
-     * 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
-     *     percentage error (WAPE) and mean-absolute-error (MAE).
-     *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-     *     defined in `quantiles`.
-     * 
- * - * string optimization_objective = 5; - * - * @return The bytes for optimizationObjective. - */ - public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { - java.lang.Object ref = optimizationObjective_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - optimizationObjective_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Objective function the model is optimizing towards. The training process
-     * 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
-     *     percentage error (WAPE) and mean-absolute-error (MAE).
-     *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-     *     defined in `quantiles`.
-     * 
- * - * string optimization_objective = 5; - * - * @param value The optimizationObjective to set. - * @return This builder for chaining. - */ - public Builder setOptimizationObjective(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - optimizationObjective_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Objective function the model is optimizing towards. The training process
-     * 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
-     *     percentage error (WAPE) and mean-absolute-error (MAE).
-     *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-     *     defined in `quantiles`.
-     * 
- * - * string optimization_objective = 5; - * - * @return This builder for chaining. - */ - public Builder clearOptimizationObjective() { - - optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); - onChanged(); - return this; - } - /** - * - * - *
-     * Objective function the model is optimizing towards. The training process
-     * 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
-     *     percentage error (WAPE) and mean-absolute-error (MAE).
-     *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-     *     defined in `quantiles`.
-     * 
- * - * string optimization_objective = 5; - * - * @param value The bytes for optimizationObjective to set. - * @return This builder for chaining. - */ - public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - optimizationObjective_ = value; - onChanged(); - return this; - } - - private long trainBudgetMilliNodeHours_; - /** - * - * - *
-     * Required. The train budget of creating this model, expressed in milli node
-     * hours i.e. 1,000 value in this field means 1 node hour.
-     * The training cost of the model will not exceed this budget. The final cost
-     * will be attempted to be close to the budget, though may end up being (even)
-     * noticeably smaller - at the backend's discretion. This especially may
-     * happen when further model training ceases to provide any improvements.
-     * If the budget is set to a value known to be insufficient to train a
-     * model for the given dataset, the training won't be attempted and
-     * will error.
-     * The train budget must be between 1,000 and 72,000 milli node hours,
-     * inclusive.
-     * 
- * - * int64 train_budget_milli_node_hours = 6; - * - * @return The trainBudgetMilliNodeHours. - */ - @java.lang.Override - public long getTrainBudgetMilliNodeHours() { - return trainBudgetMilliNodeHours_; - } - /** - * - * - *
-     * Required. The train budget of creating this model, expressed in milli node
-     * hours i.e. 1,000 value in this field means 1 node hour.
-     * The training cost of the model will not exceed this budget. The final cost
-     * will be attempted to be close to the budget, though may end up being (even)
-     * noticeably smaller - at the backend's discretion. This especially may
-     * happen when further model training ceases to provide any improvements.
-     * If the budget is set to a value known to be insufficient to train a
-     * model for the given dataset, the training won't be attempted and
-     * will error.
-     * The train budget must be between 1,000 and 72,000 milli node hours,
-     * inclusive.
-     * 
- * - * int64 train_budget_milli_node_hours = 6; - * - * @param value The trainBudgetMilliNodeHours to set. - * @return This builder for chaining. - */ - public Builder setTrainBudgetMilliNodeHours(long value) { - - trainBudgetMilliNodeHours_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The train budget of creating this model, expressed in milli node
-     * hours i.e. 1,000 value in this field means 1 node hour.
-     * The training cost of the model will not exceed this budget. The final cost
-     * will be attempted to be close to the budget, though may end up being (even)
-     * noticeably smaller - at the backend's discretion. This especially may
-     * happen when further model training ceases to provide any improvements.
-     * If the budget is set to a value known to be insufficient to train a
-     * model for the given dataset, the training won't be attempted and
-     * will error.
-     * The train budget must be between 1,000 and 72,000 milli node hours,
-     * inclusive.
-     * 
- * - * int64 train_budget_milli_node_hours = 6; - * - * @return This builder for chaining. - */ - public Builder clearTrainBudgetMilliNodeHours() { - - trainBudgetMilliNodeHours_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object weightColumn_ = ""; - /** - * - * - *
-     * Column name that should be used as the weight column.
-     * Higher values in this column give more importance to the row
-     * during model training. The column must have numeric values between 0 and
-     * 10000 inclusively; 0 means the row is ignored for training. If weight
-     * column field is not set, then all rows are assumed to have equal weight
-     * of 1.
-     * 
- * - * string weight_column = 7; - * - * @return The weightColumn. - */ - public java.lang.String getWeightColumn() { - java.lang.Object ref = weightColumn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - weightColumn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Column name that should be used as the weight column.
-     * Higher values in this column give more importance to the row
-     * during model training. The column must have numeric values between 0 and
-     * 10000 inclusively; 0 means the row is ignored for training. If weight
-     * column field is not set, then all rows are assumed to have equal weight
-     * of 1.
-     * 
- * - * string weight_column = 7; - * - * @return The bytes for weightColumn. - */ - public com.google.protobuf.ByteString getWeightColumnBytes() { - java.lang.Object ref = weightColumn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - weightColumn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Column name that should be used as the weight column.
-     * Higher values in this column give more importance to the row
-     * during model training. The column must have numeric values between 0 and
-     * 10000 inclusively; 0 means the row is ignored for training. If weight
-     * column field is not set, then all rows are assumed to have equal weight
-     * of 1.
-     * 
- * - * string weight_column = 7; - * - * @param value The weightColumn to set. - * @return This builder for chaining. - */ - public Builder setWeightColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - weightColumn_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Column name that should be used as the weight column.
-     * Higher values in this column give more importance to the row
-     * during model training. The column must have numeric values between 0 and
-     * 10000 inclusively; 0 means the row is ignored for training. If weight
-     * column field is not set, then all rows are assumed to have equal weight
-     * of 1.
-     * 
- * - * string weight_column = 7; - * - * @return This builder for chaining. - */ - public Builder clearWeightColumn() { - - weightColumn_ = getDefaultInstance().getWeightColumn(); - onChanged(); - return this; - } - /** - * - * - *
-     * Column name that should be used as the weight column.
-     * Higher values in this column give more importance to the row
-     * during model training. The column must have numeric values between 0 and
-     * 10000 inclusively; 0 means the row is ignored for training. If weight
-     * column field is not set, then all rows are assumed to have equal weight
-     * of 1.
-     * 
- * - * string weight_column = 7; - * - * @param value The bytes for weightColumn to set. - * @return This builder for chaining. - */ - public Builder setWeightColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - weightColumn_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList staticColumns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureStaticColumnsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - staticColumns_ = new com.google.protobuf.LazyStringArrayList(staticColumns_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @return A list containing the staticColumns. - */ - public com.google.protobuf.ProtocolStringList getStaticColumnsList() { - return staticColumns_.getUnmodifiableView(); - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @return The count of staticColumns. - */ - public int getStaticColumnsCount() { - return staticColumns_.size(); - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @param index The index of the element to return. - * @return The staticColumns at the given index. - */ - public java.lang.String getStaticColumns(int index) { - return staticColumns_.get(index); - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @param index The index of the value to return. - * @return The bytes of the staticColumns at the given index. - */ - public com.google.protobuf.ByteString getStaticColumnsBytes(int index) { - return staticColumns_.getByteString(index); - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @param index The index to set the value at. - * @param value The staticColumns to set. - * @return This builder for chaining. - */ - public Builder setStaticColumns(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStaticColumnsIsMutable(); - staticColumns_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @param value The staticColumns to add. - * @return This builder for chaining. - */ - public Builder addStaticColumns(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStaticColumnsIsMutable(); - staticColumns_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @param values The staticColumns to add. - * @return This builder for chaining. - */ - public Builder addAllStaticColumns(java.lang.Iterable values) { - ensureStaticColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticColumns_); - onChanged(); - return this; - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @return This builder for chaining. - */ - public Builder clearStaticColumns() { - staticColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
-     * 
- * - * repeated string static_columns = 8; - * - * @param value The bytes of the staticColumns to add. - * @return This builder for chaining. - */ - public Builder addStaticColumnsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureStaticColumnsIsMutable(); - staticColumns_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList timeVariantPastOnlyColumns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTimeVariantPastOnlyColumnsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - timeVariantPastOnlyColumns_ = - new com.google.protobuf.LazyStringArrayList(timeVariantPastOnlyColumns_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * 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; - * - * @return A list containing the timeVariantPastOnlyColumns. - */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastOnlyColumnsList() { - return timeVariantPastOnlyColumns_.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).
-     * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @return The count of timeVariantPastOnlyColumns. - */ - public int getTimeVariantPastOnlyColumnsCount() { - return timeVariantPastOnlyColumns_.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).
-     * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @param index The index of the element to return. - * @return The timeVariantPastOnlyColumns at the given index. - */ - public java.lang.String getTimeVariantPastOnlyColumns(int index) { - return timeVariantPastOnlyColumns_.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).
-     * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @param index The index of the value to return. - * @return The bytes of the timeVariantPastOnlyColumns at the given index. - */ - public com.google.protobuf.ByteString getTimeVariantPastOnlyColumnsBytes(int index) { - return timeVariantPastOnlyColumns_.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).
-     * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @param index The index to set the value at. - * @param value The timeVariantPastOnlyColumns to set. - * @return This builder for chaining. - */ - public Builder setTimeVariantPastOnlyColumns(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @param value The timeVariantPastOnlyColumns to add. - * @return This builder for chaining. - */ - public Builder addTimeVariantPastOnlyColumns(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @param values The timeVariantPastOnlyColumns to add. - * @return This builder for chaining. - */ - public Builder addAllTimeVariantPastOnlyColumns(java.lang.Iterable values) { - ensureTimeVariantPastOnlyColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeVariantPastOnlyColumns_); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @return This builder for chaining. - */ - public Builder clearTimeVariantPastOnlyColumns() { - timeVariantPastOnlyColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @param value The bytes of the timeVariantPastOnlyColumns to add. - * @return This builder for chaining. - */ - public Builder addTimeVariantPastOnlyColumnsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList timeVariantPastAndFutureColumns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTimeVariantPastAndFutureColumnsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - timeVariantPastAndFutureColumns_ = - new com.google.protobuf.LazyStringArrayList(timeVariantPastAndFutureColumns_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * 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; - * - * @return A list containing the timeVariantPastAndFutureColumns. - */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastAndFutureColumnsList() { - return timeVariantPastAndFutureColumns_.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
-     * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @return The count of timeVariantPastAndFutureColumns. - */ - public int getTimeVariantPastAndFutureColumnsCount() { - return timeVariantPastAndFutureColumns_.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
-     * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @param index The index of the element to return. - * @return The timeVariantPastAndFutureColumns at the given index. - */ - public java.lang.String getTimeVariantPastAndFutureColumns(int index) { - return timeVariantPastAndFutureColumns_.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
-     * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @param index The index of the value to return. - * @return The bytes of the timeVariantPastAndFutureColumns at the given index. - */ - public com.google.protobuf.ByteString getTimeVariantPastAndFutureColumnsBytes(int index) { - return timeVariantPastAndFutureColumns_.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
-     * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @param index The index to set the value at. - * @param value The timeVariantPastAndFutureColumns to set. - * @return This builder for chaining. - */ - public Builder setTimeVariantPastAndFutureColumns(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @param value The timeVariantPastAndFutureColumns to add. - * @return This builder for chaining. - */ - public Builder addTimeVariantPastAndFutureColumns(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @param values The timeVariantPastAndFutureColumns to add. - * @return This builder for chaining. - */ - public Builder addAllTimeVariantPastAndFutureColumns( - java.lang.Iterable values) { - ensureTimeVariantPastAndFutureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, timeVariantPastAndFutureColumns_); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @return This builder for chaining. - */ - public Builder clearTimeVariantPastAndFutureColumns() { - timeVariantPastAndFutureColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @param value The bytes of the timeVariantPastAndFutureColumns to add. - * @return This builder for chaining. - */ - public Builder addTimeVariantPastAndFutureColumnsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.add(value); - onChanged(); - return this; - } - - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - period_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.PeriodOrBuilder> - periodBuilder_; - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - * - * @return Whether the period field is set. - */ - public boolean hasPeriod() { - return periodBuilder_ != null || period_ != null; - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - * - * @return The period. - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - getPeriod() { - if (periodBuilder_ == null) { - return period_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance() - : period_; - } else { - return periodBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - public Builder setPeriod( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - value) { - if (periodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - period_ = value; - onChanged(); - } else { - periodBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - public Builder setPeriod( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period.Builder - builderForValue) { - if (periodBuilder_ == null) { - period_ = builderForValue.build(); - onChanged(); - } else { - periodBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - public Builder mergePeriod( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - value) { - if (periodBuilder_ == null) { - if (period_ != null) { - period_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.newBuilder(period_) - .mergeFrom(value) - .buildPartial(); - } else { - period_ = value; - } - onChanged(); - } else { - periodBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - public Builder clearPeriod() { - if (periodBuilder_ == null) { - period_ = null; - onChanged(); - } else { - period_ = null; - periodBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period.Builder - getPeriodBuilder() { - - onChanged(); - return getPeriodFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .PeriodOrBuilder - getPeriodOrBuilder() { - if (periodBuilder_ != null) { - return periodBuilder_.getMessageOrBuilder(); - } else { - return period_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance() - : period_; - } - } - /** - * - * - *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.PeriodOrBuilder> - getPeriodFieldBuilder() { - if (periodBuilder_ == null) { - periodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.PeriodOrBuilder>( - getPeriod(), getParentForChildren(), isClean()); - period_ = 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; - } - - private long forecastWindowEnd_; - /** - * - * - *
-     * 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; - * - * @return The forecastWindowEnd. - */ - @java.lang.Override - public long getForecastWindowEnd() { - return forecastWindowEnd_; - } - /** - * - * - *
-     * 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; - * - * @param value The forecastWindowEnd to set. - * @return This builder for chaining. - */ - public Builder setForecastWindowEnd(long value) { - - forecastWindowEnd_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @return This builder for chaining. - */ - public Builder clearForecastWindowEnd() { - - forecastWindowEnd_ = 0L; - onChanged(); - return this; - } - - private long pastHorizon_; - /** - * - * - *
-     * 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; - * - * @return The pastHorizon. - */ - @java.lang.Override - public long getPastHorizon() { - return pastHorizon_; - } - /** - * - * - *
-     * 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; - * - * @param value The pastHorizon to set. - * @return This builder for chaining. - */ - public Builder setPastHorizon(long value) { - - pastHorizon_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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; - * - * @return This builder for chaining. - */ - public Builder clearPastHorizon() { - - pastHorizon_ = 0L; - onChanged(); - return this; - } - - private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig - exportEvaluatedDataItemsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigOrBuilder> - exportEvaluatedDataItemsConfigBuilder_; - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - * - * @return Whether the exportEvaluatedDataItemsConfig field is set. - */ - public boolean hasExportEvaluatedDataItemsConfig() { - return exportEvaluatedDataItemsConfigBuilder_ != null - || exportEvaluatedDataItemsConfig_ != null; - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - * - * @return The exportEvaluatedDataItemsConfig. - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig - getExportEvaluatedDataItemsConfig() { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - return exportEvaluatedDataItemsConfig_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.getDefaultInstance() - : exportEvaluatedDataItemsConfig_; - } else { - return exportEvaluatedDataItemsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - public Builder setExportEvaluatedDataItemsConfig( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig - value) { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - exportEvaluatedDataItemsConfig_ = value; - onChanged(); - } else { - exportEvaluatedDataItemsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - public Builder setExportEvaluatedDataItemsConfig( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.Builder - builderForValue) { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = builderForValue.build(); - onChanged(); - } else { - exportEvaluatedDataItemsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - public Builder mergeExportEvaluatedDataItemsConfig( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig - value) { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - if (exportEvaluatedDataItemsConfig_ != null) { - exportEvaluatedDataItemsConfig_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.newBuilder(exportEvaluatedDataItemsConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - exportEvaluatedDataItemsConfig_ = value; - } - onChanged(); - } else { - exportEvaluatedDataItemsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - public Builder clearExportEvaluatedDataItemsConfig() { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - onChanged(); - } else { - exportEvaluatedDataItemsConfig_ = null; - exportEvaluatedDataItemsConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.Builder - getExportEvaluatedDataItemsConfigBuilder() { - - onChanged(); - return getExportEvaluatedDataItemsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigOrBuilder - getExportEvaluatedDataItemsConfigOrBuilder() { - if (exportEvaluatedDataItemsConfigBuilder_ != null) { - return exportEvaluatedDataItemsConfigBuilder_.getMessageOrBuilder(); - } else { - return exportEvaluatedDataItemsConfig_ == null - ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.getDefaultInstance() - : exportEvaluatedDataItemsConfig_; - } - } - /** - * - * - *
-     * Configuration for exporting test set predictions to a BigQuery table. If
-     * this configuration is absent, then the export is not performed.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigOrBuilder> - getExportEvaluatedDataItemsConfigFieldBuilder() { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigOrBuilder>( - getExportEvaluatedDataItemsConfig(), getParentForChildren(), isClean()); - exportEvaluatedDataItemsConfig_ = null; - } - return exportEvaluatedDataItemsConfigBuilder_; - } - - private com.google.protobuf.Internal.DoubleList quantiles_ = emptyDoubleList(); - - private void ensureQuantilesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - quantiles_ = mutableCopy(quantiles_); - bitField0_ |= 0x00000010; - } - } - /** - * - * - *
-     * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-     * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-     * the value of optimization_objective is minimize-quantile-loss. Represents
-     * the percent quantiles to use for that objective. Quantiles must be unique.
-     * 
- * - * repeated double quantiles = 16; - * - * @return A list containing the quantiles. - */ - public java.util.List getQuantilesList() { - return ((bitField0_ & 0x00000010) != 0) - ? java.util.Collections.unmodifiableList(quantiles_) - : quantiles_; - } - /** - * - * - *
-     * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-     * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-     * the value of optimization_objective is minimize-quantile-loss. Represents
-     * the percent quantiles to use for that objective. Quantiles must be unique.
-     * 
- * - * repeated double quantiles = 16; - * - * @return The count of quantiles. - */ - public int getQuantilesCount() { - return quantiles_.size(); - } - /** - * - * - *
-     * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-     * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-     * the value of optimization_objective is minimize-quantile-loss. Represents
-     * the percent quantiles to use for that objective. Quantiles must be unique.
-     * 
- * - * repeated double quantiles = 16; - * - * @param index The index of the element to return. - * @return The quantiles at the given index. - */ - public double getQuantiles(int index) { - return quantiles_.getDouble(index); - } - /** - * - * - *
-     * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-     * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-     * the value of optimization_objective is minimize-quantile-loss. Represents
-     * the percent quantiles to use for that objective. Quantiles must be unique.
-     * 
- * - * repeated double quantiles = 16; - * - * @param index The index to set the value at. - * @param value The quantiles to set. - * @return This builder for chaining. - */ - public Builder setQuantiles(int index, double value) { - ensureQuantilesIsMutable(); - quantiles_.setDouble(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-     * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-     * the value of optimization_objective is minimize-quantile-loss. Represents
-     * the percent quantiles to use for that objective. Quantiles must be unique.
-     * 
- * - * repeated double quantiles = 16; - * - * @param value The quantiles to add. - * @return This builder for chaining. - */ - public Builder addQuantiles(double value) { - ensureQuantilesIsMutable(); - quantiles_.addDouble(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-     * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-     * the value of optimization_objective is minimize-quantile-loss. Represents
-     * the percent quantiles to use for that objective. Quantiles must be unique.
-     * 
- * - * repeated double quantiles = 16; - * - * @param values The quantiles to add. - * @return This builder for chaining. - */ - public Builder addAllQuantiles(java.lang.Iterable values) { - ensureQuantilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quantiles_); - onChanged(); - return this; - } - /** - * - * - *
-     * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-     * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-     * the value of optimization_objective is minimize-quantile-loss. Represents
-     * the percent quantiles to use for that objective. Quantiles must be unique.
-     * 
- * - * repeated double quantiles = 16; - * - * @return This builder for chaining. - */ - public Builder clearQuantiles() { - quantiles_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - private java.lang.Object validationOptions_ = ""; - /** - * - * - *
-     * 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
-     * 
- * - * string validation_options = 17; - * - * @return The validationOptions. - */ - public java.lang.String getValidationOptions() { - java.lang.Object ref = validationOptions_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validationOptions_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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
-     * 
- * - * string validation_options = 17; - * - * @return The bytes for validationOptions. - */ - public com.google.protobuf.ByteString getValidationOptionsBytes() { - java.lang.Object ref = validationOptions_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - validationOptions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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
-     * 
- * - * string validation_options = 17; - * - * @param value The validationOptions to set. - * @return This builder for chaining. - */ - public Builder setValidationOptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validationOptions_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * string validation_options = 17; - * - * @return This builder for chaining. - */ - public Builder clearValidationOptions() { - - validationOptions_ = getDefaultInstance().getValidationOptions(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * string validation_options = 17; - * - * @param value The bytes for validationOptions to set. - * @return This builder for chaining. - */ - public Builder setValidationOptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validationOptions_ = 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) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoMlForecastingInputs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoMlForecastingInputs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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 - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} 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 deleted file mode 100644 index 9c459d2ab..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputsOrBuilder.java +++ /dev/null @@ -1,695 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: -// google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; - -public interface AutoMlForecastingInputsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of the column that the model is to predict.
-   * 
- * - * string target_column = 1; - * - * @return The targetColumn. - */ - java.lang.String getTargetColumn(); - /** - * - * - *
-   * The name of the column that the model is to predict.
-   * 
- * - * string target_column = 1; - * - * @return The bytes for targetColumn. - */ - com.google.protobuf.ByteString getTargetColumnBytes(); - - /** - * - * - *
-   * The name of the column that identifies the time series.
-   * 
- * - * string time_series_identifier_column = 2; - * - * @return The timeSeriesIdentifierColumn. - */ - java.lang.String getTimeSeriesIdentifierColumn(); - /** - * - * - *
-   * The name of the column that identifies the time series.
-   * 
- * - * string time_series_identifier_column = 2; - * - * @return The bytes for timeSeriesIdentifierColumn. - */ - com.google.protobuf.ByteString getTimeSeriesIdentifierColumnBytes(); - - /** - * - * - *
-   * The name of the column that identifies time order in the time series.
-   * 
- * - * string time_column = 3; - * - * @return The timeColumn. - */ - java.lang.String getTimeColumn(); - /** - * - * - *
-   * The name of the column that identifies time order in the time series.
-   * 
- * - * string time_column = 3; - * - * @return The bytes for timeColumn. - */ - com.google.protobuf.ByteString getTimeColumnBytes(); - - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - java.util.List< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation> - getTransformationsList(); - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - getTransformations(int index); - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - int getTransformationsCount(); - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - java.util.List< - ? extends - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.TransformationOrBuilder> - getTransformationsOrBuilderList(); - /** - * - * - *
-   * Each transformation will apply transform function to given input column.
-   * And the result will be used for training.
-   * When creating transformation for BigQuery Struct column, the column should
-   * be flattened using "." as the delimiter.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation transformations = 4; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .TransformationOrBuilder - getTransformationsOrBuilder(int index); - - /** - * - * - *
-   * Objective function the model is optimizing towards. The training process
-   * 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
-   *     percentage error (WAPE) and mean-absolute-error (MAE).
-   *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-   *     defined in `quantiles`.
-   * 
- * - * string optimization_objective = 5; - * - * @return The optimizationObjective. - */ - java.lang.String getOptimizationObjective(); - /** - * - * - *
-   * Objective function the model is optimizing towards. The training process
-   * 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
-   *     percentage error (WAPE) and mean-absolute-error (MAE).
-   *   "minimize-quantile-loss" - Minimize the quantile loss at the quantiles
-   *     defined in `quantiles`.
-   * 
- * - * string optimization_objective = 5; - * - * @return The bytes for optimizationObjective. - */ - com.google.protobuf.ByteString getOptimizationObjectiveBytes(); - - /** - * - * - *
-   * Required. The train budget of creating this model, expressed in milli node
-   * hours i.e. 1,000 value in this field means 1 node hour.
-   * The training cost of the model will not exceed this budget. The final cost
-   * will be attempted to be close to the budget, though may end up being (even)
-   * noticeably smaller - at the backend's discretion. This especially may
-   * happen when further model training ceases to provide any improvements.
-   * If the budget is set to a value known to be insufficient to train a
-   * model for the given dataset, the training won't be attempted and
-   * will error.
-   * The train budget must be between 1,000 and 72,000 milli node hours,
-   * inclusive.
-   * 
- * - * int64 train_budget_milli_node_hours = 6; - * - * @return The trainBudgetMilliNodeHours. - */ - long getTrainBudgetMilliNodeHours(); - - /** - * - * - *
-   * Column name that should be used as the weight column.
-   * Higher values in this column give more importance to the row
-   * during model training. The column must have numeric values between 0 and
-   * 10000 inclusively; 0 means the row is ignored for training. If weight
-   * column field is not set, then all rows are assumed to have equal weight
-   * of 1.
-   * 
- * - * string weight_column = 7; - * - * @return The weightColumn. - */ - java.lang.String getWeightColumn(); - /** - * - * - *
-   * Column name that should be used as the weight column.
-   * Higher values in this column give more importance to the row
-   * during model training. The column must have numeric values between 0 and
-   * 10000 inclusively; 0 means the row is ignored for training. If weight
-   * column field is not set, then all rows are assumed to have equal weight
-   * of 1.
-   * 
- * - * string weight_column = 7; - * - * @return The bytes for weightColumn. - */ - com.google.protobuf.ByteString getWeightColumnBytes(); - - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @return A list containing the staticColumns. - */ - java.util.List getStaticColumnsList(); - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @return The count of staticColumns. - */ - int getStaticColumnsCount(); - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @param index The index of the element to return. - * @return The staticColumns at the given index. - */ - java.lang.String getStaticColumns(int index); - /** - * - * - *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
-   * 
- * - * repeated string static_columns = 8; - * - * @param index The index of the value to return. - * @return The bytes of the staticColumns at the given index. - */ - com.google.protobuf.ByteString getStaticColumnsBytes(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).
-   * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @return A list containing the timeVariantPastOnlyColumns. - */ - java.util.List getTimeVariantPastOnlyColumnsList(); - /** - * - * - *
-   * 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; - * - * @return The count of timeVariantPastOnlyColumns. - */ - int getTimeVariantPastOnlyColumnsCount(); - /** - * - * - *
-   * 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; - * - * @param index The index of the element to return. - * @return The timeVariantPastOnlyColumns at the given index. - */ - java.lang.String getTimeVariantPastOnlyColumns(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).
-   * 
- * - * repeated string time_variant_past_only_columns = 9; - * - * @param index The index of the value to return. - * @return The bytes of the timeVariantPastOnlyColumns at the given index. - */ - com.google.protobuf.ByteString getTimeVariantPastOnlyColumnsBytes(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
-   * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @return A list containing the timeVariantPastAndFutureColumns. - */ - java.util.List getTimeVariantPastAndFutureColumnsList(); - /** - * - * - *
-   * 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; - * - * @return The count of timeVariantPastAndFutureColumns. - */ - int getTimeVariantPastAndFutureColumnsCount(); - /** - * - * - *
-   * 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; - * - * @param index The index of the element to return. - * @return The timeVariantPastAndFutureColumns at the given index. - */ - java.lang.String getTimeVariantPastAndFutureColumns(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
-   * 
- * - * repeated string time_variant_past_and_future_columns = 10; - * - * @param index The index of the value to return. - * @return The bytes of the timeVariantPastAndFutureColumns at the given index. - */ - com.google.protobuf.ByteString getTimeVariantPastAndFutureColumnsBytes(int index); - - /** - * - * - *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - * - * @return Whether the period field is set. - */ - boolean hasPeriod(); - /** - * - * - *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - * - * @return The period. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period - getPeriod(); - /** - * - * - *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; - * - */ - 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(); - - /** - * - * - *
-   * 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; - * - * @return The forecastWindowEnd. - */ - long getForecastWindowEnd(); - - /** - * - * - *
-   * 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; - * - * @return The pastHorizon. - */ - long getPastHorizon(); - - /** - * - * - *
-   * Configuration for exporting test set predictions to a BigQuery table. If
-   * this configuration is absent, then the export is not performed.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - * - * @return Whether the exportEvaluatedDataItemsConfig field is set. - */ - boolean hasExportEvaluatedDataItemsConfig(); - /** - * - * - *
-   * Configuration for exporting test set predictions to a BigQuery table. If
-   * this configuration is absent, then the export is not performed.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - * - * @return The exportEvaluatedDataItemsConfig. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig - getExportEvaluatedDataItemsConfig(); - /** - * - * - *
-   * Configuration for exporting test set predictions to a BigQuery table. If
-   * this configuration is absent, then the export is not performed.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfigOrBuilder - getExportEvaluatedDataItemsConfigOrBuilder(); - - /** - * - * - *
-   * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-   * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-   * the value of optimization_objective is minimize-quantile-loss. Represents
-   * the percent quantiles to use for that objective. Quantiles must be unique.
-   * 
- * - * repeated double quantiles = 16; - * - * @return A list containing the quantiles. - */ - java.util.List getQuantilesList(); - /** - * - * - *
-   * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-   * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-   * the value of optimization_objective is minimize-quantile-loss. Represents
-   * the percent quantiles to use for that objective. Quantiles must be unique.
-   * 
- * - * repeated double quantiles = 16; - * - * @return The count of quantiles. - */ - int getQuantilesCount(); - /** - * - * - *
-   * Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to
-   * 5 quantiles are allowed of values between 0 and 1, exclusive. Required if
-   * the value of optimization_objective is minimize-quantile-loss. Represents
-   * the percent quantiles to use for that objective. Quantiles must be unique.
-   * 
- * - * repeated double quantiles = 16; - * - * @param index The index of the element to return. - * @return The quantiles at the given index. - */ - 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
-   * 
- * - * string validation_options = 17; - * - * @return The validationOptions. - */ - 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
-   * 
- * - * string validation_options = 17; - * - * @return The bytes for validationOptions. - */ - com.google.protobuf.ByteString getValidationOptionsBytes(); -} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java deleted file mode 100644 index 9075b6c28..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: -// google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; - -/** - * - * - *
- * Model metadata specific to AutoML Forecasting.
- * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata} - */ -public final class AutoMlForecastingMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata) - AutoMlForecastingMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoMlForecastingMetadata.newBuilder() to construct. - private AutoMlForecastingMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoMlForecastingMetadata() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoMlForecastingMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoMlForecastingMetadata( - 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: - { - trainCostMilliNodeHours_ = 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.schema.trainingjob.definition.AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingMetadata_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_AutoMlForecastingMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.Builder.class); - } - - public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long trainCostMilliNodeHours_; - /** - * - * - *
-   * Output only. The actual training cost of the model, expressed in milli
-   * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
-   * to not exceed the train budget.
-   * 
- * - * int64 train_cost_milli_node_hours = 1; - * - * @return The trainCostMilliNodeHours. - */ - @java.lang.Override - public long getTrainCostMilliNodeHours() { - return trainCostMilliNodeHours_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (trainCostMilliNodeHours_ != 0L) { - output.writeInt64(1, trainCostMilliNodeHours_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (trainCostMilliNodeHours_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, trainCostMilliNodeHours_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @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 - .AutoMlForecastingMetadata)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata) - obj; - - if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; - if (!unknownFields.equals(other.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) + TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCostMilliNodeHours()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - parseFrom( - java.nio.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 - .AutoMlForecastingMetadata - 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 - .AutoMlForecastingMetadata - parseFrom( - com.google.protobuf.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 - .AutoMlForecastingMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - parseFrom(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 - .AutoMlForecastingMetadata - 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 - .AutoMlForecastingMetadata - parseFrom( - java.io.InputStream input, com.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 - .AutoMlForecastingMetadata - 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 - .AutoMlForecastingMetadata - parseDelimitedFrom( - java.io.InputStream input, com.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 - .AutoMlForecastingMetadata - parseFrom(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 - .AutoMlForecastingMetadata - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.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.AutoMlForecastingMetadata - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Model metadata specific to AutoML Forecasting.
-   * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadataOrBuilder { - 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_AutoMlForecastingMetadata_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_AutoMlForecastingMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.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(); - trainCostMilliNodeHours_ = 0L; - - 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_AutoMlForecastingMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata(this); - result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - 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 - .AutoMlForecastingMetadata) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.getDefaultInstance()) return this; - if (other.getTrainCostMilliNodeHours() != 0L) { - setTrainCostMilliNodeHours(other.getTrainCostMilliNodeHours()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.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.AutoMlForecastingMetadata - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long trainCostMilliNodeHours_; - /** - * - * - *
-     * Output only. The actual training cost of the model, expressed in milli
-     * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
-     * to not exceed the train budget.
-     * 
- * - * int64 train_cost_milli_node_hours = 1; - * - * @return The trainCostMilliNodeHours. - */ - @java.lang.Override - public long getTrainCostMilliNodeHours() { - return trainCostMilliNodeHours_; - } - /** - * - * - *
-     * Output only. The actual training cost of the model, expressed in milli
-     * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
-     * to not exceed the train budget.
-     * 
- * - * int64 train_cost_milli_node_hours = 1; - * - * @param value The trainCostMilliNodeHours to set. - * @return This builder for chaining. - */ - public Builder setTrainCostMilliNodeHours(long value) { - - trainCostMilliNodeHours_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The actual training cost of the model, expressed in milli
-     * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
-     * to not exceed the train budget.
-     * 
- * - * int64 train_cost_milli_node_hours = 1; - * - * @return This builder for chaining. - */ - public Builder clearTrainCostMilliNodeHours() { - - trainCostMilliNodeHours_ = 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.schema.trainingjob.definition.AutoMlForecastingMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoMlForecastingMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoMlForecastingMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.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.AutoMlForecastingMetadata - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadataOrBuilder.java deleted file mode 100644 index 9f67b746d..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadataOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: -// google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; - -public interface AutoMlForecastingMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The actual training cost of the model, expressed in milli
-   * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
-   * to not exceed the train budget.
-   * 
- * - * int64 train_cost_milli_node_hours = 1; - * - * @return The trainCostMilliNodeHours. - */ - long getTrainCostMilliNodeHours(); -} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingOrBuilder.java deleted file mode 100644 index 4d3293a57..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: -// google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto - -package com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; - -public interface AutoMlForecastingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The input parameters of this TrainingJob.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - * - * @return Whether the inputs field is set. - */ - boolean hasInputs(); - /** - * - * - *
-   * The input parameters of this TrainingJob.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - * - * @return The inputs. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - getInputs(); - /** - * - * - *
-   * The input parameters of this TrainingJob.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs inputs = 1; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputsOrBuilder - getInputsOrBuilder(); - - /** - * - * - *
-   * The metadata information.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * The metadata information.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - * - * @return The metadata. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata - getMetadata(); - /** - * - * - *
-   * The metadata information.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata metadata = 2; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadataOrBuilder - getMetadataOrBuilder(); -} 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/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 deleted file mode 100644 index e06417366..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.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.schema.predict.prediction; - -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; -option java_multiple_files = true; -option java_outer_classname = "TimeSeriesForecastingPredictionResultProto"; -option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; - -// Prediction output format for Time Series Forecasting. -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 deleted file mode 100644 index 8098d18f7..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.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.schema.trainingjob.definition; - -import "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; -option java_multiple_files = true; -option java_outer_classname = "AutoMLForecastingProto"; -option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; - -// A TrainingJob that trains and uploads an AutoML Forecasting Model. -message AutoMlForecasting { - // The input parameters of this TrainingJob. - AutoMlForecastingInputs inputs = 1; - - // The metadata information. - AutoMlForecastingMetadata metadata = 2; -} - -message AutoMlForecastingInputs { - message Transformation { - // Training pipeline will infer the proper transformation based on the - // statistic of dataset. - message AutoTransformation { - string column_name = 1; - } - - // 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. - // * 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. - message CategoricalTransformation { - string column_name = 1; - } - - // 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. - // * 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. - message TimestampTransformation { - string column_name = 1; - - // 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 - // 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. - 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 { - AutoTransformation auto = 1; - - NumericTransformation numeric = 2; - - CategoricalTransformation categorical = 3; - - 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 { - // The time granularity unit of this time period. - // The supported unit are: - // "minute" - // "hour" - // "day" - // "week" - // "month" - // "year" - string unit = 1; - - // The number of units per period, e.g. 3 weeks or 2 months. - int64 quantity = 2; - } - - // The name of the column that the model is to predict. - string target_column = 1; - - // The name of the column that identifies the time series. - string time_series_identifier_column = 2; - - // The name of the column that identifies time order in the time series. - string time_column = 3; - - // Each transformation will apply transform function to given input column. - // And the result will be used for training. - // When creating transformation for BigQuery Struct column, the column should - // be flattened using "." as the delimiter. - repeated Transformation transformations = 4; - - // Objective function the model is optimizing towards. The training process - // 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 - // percentage error (WAPE) and mean-absolute-error (MAE). - // "minimize-quantile-loss" - Minimize the quantile loss at the quantiles - // defined in `quantiles`. - string optimization_objective = 5; - - // Required. The train budget of creating this model, expressed in milli node - // hours i.e. 1,000 value in this field means 1 node hour. - // - // The training cost of the model will not exceed this budget. The final cost - // will be attempted to be close to the budget, though may end up being (even) - // noticeably smaller - at the backend's discretion. This especially may - // happen when further model training ceases to provide any improvements. - // - // If the budget is set to a value known to be insufficient to train a - // model for the given dataset, the training won't be attempted and - // will error. - // - // The train budget must be between 1,000 and 72,000 milli node hours, - // inclusive. - int64 train_budget_milli_node_hours = 6; - - // Column name that should be used as the weight column. - // Higher values in this column give more importance to the row - // during model training. The column must have numeric values between 0 and - // 10000 inclusively; 0 means the row is ignored for training. If weight - // column field is not set, then all rows are assumed to have equal weight - // 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; - - // Configuration for exporting test set predictions to a BigQuery table. If - // this configuration is absent, then the export is not performed. - ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; - - // Quantiles to use for minimize-quantile-loss `optimization_objective`. Up to - // 5 quantiles are allowed of values between 0 and 1, exclusive. Required if - // the value of optimization_objective is minimize-quantile-loss. Represents - // the percent quantiles to use for that objective. Quantiles must be unique. - repeated double quantiles = 16; - - // 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 - string validation_options = 17; -} - -// Model metadata specific to AutoML Forecasting. -message AutoMlForecastingMetadata { - // Output only. The actual training cost of the model, expressed in milli - // node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed - // to not exceed the train budget. - int64 train_cost_milli_node_hours = 1; -} 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/synth.metadata b/synth.metadata index f8e0fbb96..ead41be26 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,8 +19,16 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0", - "internalRef": "357800868" + "sha": "a389671476b5fe2b1c63bcc115515a76c273ceba", + "internalRef": "360248513" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "a389671476b5fe2b1c63bcc115515a76c273ceba", + "internalRef": "360248513" } }, { @@ -1304,9 +1312,6 @@ "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResultOrBuilder.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResultProto.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultOrBuilder.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResultOrBuilder.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java", @@ -1316,7 +1321,6 @@ "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResultOrBuilder.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageClassificationProto.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java", @@ -1327,12 +1331,6 @@ "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputsOrBuilder.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadataOrBuilder.java", - "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingOrBuilder.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java", "proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputsOrBuilder.java", @@ -1444,7 +1442,6 @@ "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", - "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", @@ -1455,7 +1452,6 @@ "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", - "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", From 609f5d2102a67196f3ad3c2d22afd3f43a453779 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 19 Apr 2021 14:20:53 -0700 Subject: [PATCH 07/54] samples: updates samples to v1 (2 of 8) (#212) * samples: datasets * samples: updates samples to v1 (2 of 10) --- .../aiplatform/CreateDatasetImageSample.java | 10 +++--- .../java/aiplatform/CreateDatasetSample.java | 10 +++--- .../CreateDatasetTabularBigquerySample.java | 12 +++---- .../CreateDatasetTabularGcsSample.java | 10 +++--- .../aiplatform/CreateDatasetTextSample.java | 10 +++--- .../aiplatform/CreateDatasetVideoSample.java | 10 +++--- .../java/aiplatform/CreateEndpointSample.java | 10 +++--- ...parameterTuningJobPythonPackageSample.java | 36 +++++++++---------- .../CreateHyperparameterTuningJobSample.java | 20 +++++------ .../CancelTrainingPipelineSampleTest.java | 2 +- ...meterTuningJobPythonPackageSampleTest.java | 3 +- ...eateHyperparameterTuningJobSampleTest.java | 3 +- ...ustomTrainingManagedDatasetSampleTest.java | 2 +- 13 files changed, 70 insertions(+), 68 deletions(-) diff --git a/samples/snippets/src/main/java/aiplatform/CreateDatasetImageSample.java b/samples/snippets/src/main/java/aiplatform/CreateDatasetImageSample.java index 0ce9767c4..6fcb27157 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDatasetImageSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDatasetImageSample.java @@ -19,11 +19,11 @@ // [START aiplatform_create_dataset_image_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.Dataset; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; +import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDatasetSample.java b/samples/snippets/src/main/java/aiplatform/CreateDatasetSample.java index 233a2e677..0b0817f69 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDatasetSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDatasetSample.java @@ -19,11 +19,11 @@ // [START aiplatform_create_dataset_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.Dataset; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; +import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularBigquerySample.java b/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularBigquerySample.java index bcaf5c94e..fd7628be2 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularBigquerySample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularBigquerySample.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. @@ -19,11 +19,11 @@ // [START aiplatform_create_dataset_tabular_bigquery_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.Dataset; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; +import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import com.google.protobuf.Value; import com.google.protobuf.util.JsonFormat; import java.io.IOException; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularGcsSample.java b/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularGcsSample.java index 2b2f17f41..87bb139c9 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularGcsSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDatasetTabularGcsSample.java @@ -19,11 +19,11 @@ // [START aiplatform_create_dataset_tabular_gcs_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.Dataset; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; +import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import com.google.protobuf.Value; import com.google.protobuf.util.JsonFormat; import java.io.IOException; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDatasetTextSample.java b/samples/snippets/src/main/java/aiplatform/CreateDatasetTextSample.java index ff3c93ee4..bb4fa16fe 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDatasetTextSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDatasetTextSample.java @@ -19,11 +19,11 @@ // [START aiplatform_create_dataset_text_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.Dataset; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; +import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/samples/snippets/src/main/java/aiplatform/CreateDatasetVideoSample.java b/samples/snippets/src/main/java/aiplatform/CreateDatasetVideoSample.java index 537525c81..65e96a7c8 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateDatasetVideoSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateDatasetVideoSample.java @@ -19,11 +19,11 @@ // [START aiplatform_create_dataset_video_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.Dataset; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; +import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/samples/snippets/src/main/java/aiplatform/CreateEndpointSample.java b/samples/snippets/src/main/java/aiplatform/CreateEndpointSample.java index 382ebe2b3..e0d921434 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateEndpointSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateEndpointSample.java @@ -19,11 +19,11 @@ // [START aiplatform_create_endpoint_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.Endpoint; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceClient; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata; +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.EndpointServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSample.java b/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSample.java index 9d1937f3d..0d86232e2 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSample.java @@ -17,24 +17,24 @@ package aiplatform; // [START aiplatform_create_hyperparameter_tuning_job_python_package_sample] -import com.google.cloud.aiplatform.v1beta1.AcceleratorType; -import com.google.cloud.aiplatform.v1beta1.CustomJobSpec; -import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.MachineSpec; -import com.google.cloud.aiplatform.v1beta1.PythonPackageSpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType; -import com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; -import com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType; -import com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec; +import com.google.cloud.aiplatform.v1.AcceleratorType; +import com.google.cloud.aiplatform.v1.CustomJobSpec; +import com.google.cloud.aiplatform.v1.HyperparameterTuningJob; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.MachineSpec; +import com.google.cloud.aiplatform.v1.PythonPackageSpec; +import com.google.cloud.aiplatform.v1.StudySpec; +import com.google.cloud.aiplatform.v1.StudySpec.MetricSpec; +import com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType; +import com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec; +import com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec; +import com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; +import com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec; +import com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec; +import com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType; +import com.google.cloud.aiplatform.v1.WorkerPoolSpec; import java.io.IOException; import java.util.Arrays; diff --git a/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobSample.java b/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobSample.java index 37e66d512..b2295270a 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobSample.java @@ -17,16 +17,16 @@ package aiplatform; // [START aiplatform_create_hyperparameter_tuning_job_sample] -import com.google.cloud.aiplatform.v1beta1.AcceleratorType; -import com.google.cloud.aiplatform.v1beta1.ContainerSpec; -import com.google.cloud.aiplatform.v1beta1.CustomJobSpec; -import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.MachineSpec; -import com.google.cloud.aiplatform.v1beta1.StudySpec; -import com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec; +import com.google.cloud.aiplatform.v1.AcceleratorType; +import com.google.cloud.aiplatform.v1.ContainerSpec; +import com.google.cloud.aiplatform.v1.CustomJobSpec; +import com.google.cloud.aiplatform.v1.HyperparameterTuningJob; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.MachineSpec; +import com.google.cloud.aiplatform.v1.StudySpec; +import com.google.cloud.aiplatform.v1.WorkerPoolSpec; import java.io.IOException; public class CreateHyperparameterTuningJobSample { diff --git a/samples/snippets/src/test/java/aiplatform/CancelTrainingPipelineSampleTest.java b/samples/snippets/src/test/java/aiplatform/CancelTrainingPipelineSampleTest.java index f3daec201..a95073f9d 100644 --- a/samples/snippets/src/test/java/aiplatform/CancelTrainingPipelineSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CancelTrainingPipelineSampleTest.java @@ -118,6 +118,6 @@ public void cancelTrainingPipeline() throws IOException, InterruptedException { // Get TrainingPipeline GetTrainingPipelineSample.getTrainingPipeline(PROJECT, TRAINING_PIPELINE_ID); String trainingPipelineResponse = bout.toString(); - assertThat(trainingPipelineResponse).contains("Message: CANCELLED"); + assertThat(trainingPipelineResponse).contains("Message: CANCELED"); } } diff --git a/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSampleTest.java index 486322ce4..041428624 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSampleTest.java @@ -39,7 +39,8 @@ public class CreateHyperparameterTuningJobPythonPackageSampleTest { private static final String EXECUTOR_IMAGE_URI = "us.gcr.io/cloud-aiplatform/training/tf-gpu.2-1:latest"; private static final String PACKAGE_URI = - "gs://ucaip-test-us-central1/training/pythonpackages/trainer.tar.bz2"; + "gs://cloud-samples-data-us-central1/ai-platform-unified/training/python-packages/" + + "trainer.tar.bz2"; private static final String PYTHON_MODULE = "trainer.hptuning_trainer"; private ByteArrayOutputStream bout; private PrintStream out; diff --git a/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java index be9273c6e..c5da6fc48 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java @@ -35,7 +35,8 @@ public class CreateHyperparameterTuningJobSampleTest { private static final String PROJECT = System.getenv("UCAIP_PROJECT_ID"); - private static final String CONTAINER_IMAGE_URI = "gcr.io/ucaip-test/ucaip-training-test:latest"; + private static final String CONTAINER_IMAGE_URI = "gcr.io/ucaip-sample-tests/ucaip-training-test:" + + "latest"; private ByteArrayOutputStream bout; private PrintStream out; private PrintStream originalPrintStream; diff --git a/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java index 9065f8191..ff1f16237 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java @@ -37,7 +37,7 @@ public class CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest { private static final String ANNOTATION_SCHEMA_URI = "gs://google-cloud-aiplatform/schema/dataset/annotation/image_classification_1.0.0.yaml"; private static final String TRAINING_CONTAINER_IMAGE_URI = - "gcr.io/ucaip-test/custom-container-managed-dataset:latest"; + "gcr.io/ucaip-sample-tests/custom-container-managed-dataset:latest"; private static final String MODEL_CONTAIN_SPEC_IMAGE_URI = "gcr.io/cloud-aiplatform/prediction/tf-gpu.1-15:latest"; private static final String GCS_OUTPUT_DIRECTORY = From f8e020f7750511bfc3358dd44d465c03d9becf62 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Apr 2021 17:30:24 +0200 Subject: [PATCH 08/54] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 (#253) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.0` -> `0.21.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/compatibility-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/confidence-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.21.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0211-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0210v0211-2021-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.0...v0.21.1)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b54a1d313..050ea1ab0 100644 --- a/pom.xml +++ b/pom.xml @@ -95,7 +95,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.0 + 0.21.1 pom import From 4520b3c7df747be6b487b6d814297c147c7013ee Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 20 Apr 2021 15:57:51 -0700 Subject: [PATCH 09/54] test(teardown): refactored teardown section of test (#254) --- ...ateTrainingPipelineCustomJobSampleTest.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomJobSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomJobSampleTest.java index ac4a97bd9..3762eb6bb 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomJobSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomJobSampleTest.java @@ -19,6 +19,7 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; +import io.grpc.StatusRuntimeException; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -75,7 +76,22 @@ public void tearDown() TimeUnit.MINUTES.sleep(2); // Delete the Training Pipeline - DeleteTrainingPipelineSample.deleteTrainingPipelineSample(PROJECT, trainingPipelineId); + int retryCount = 3; + while (retryCount > 0) { + retryCount--; + try { + DeleteTrainingPipelineSample.deleteTrainingPipelineSample(PROJECT, trainingPipelineId); + // if delete operation is successful, break out of the loop and continue + break; + } catch (StatusRuntimeException | ExecutionException ex) { + // wait for another 1 minute, then retry + System.out.println("Retrying (due to unfinished cancellation operation)..."); + TimeUnit.MINUTES.sleep(1); + } catch (Exception otherExceptions) { + // other exception, let them throw + throw otherExceptions; + } + } // Assert String deleteResponse = bout.toString(); From 8cfdab67f373cbd7aa3f139a82c1d63502a360fa Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 20 Apr 2021 15:58:12 -0700 Subject: [PATCH 10/54] test(env var): added missing requireEnv val (#255) --- ...teTrainingPipelineCustomTrainingManagedDatasetSampleTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java index ff1f16237..11cb9b8f1 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSampleTest.java @@ -56,6 +56,7 @@ private static void requireEnvVar(String varName) { @BeforeClass public static void checkRequirements() { requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("CUSTOM_MANAGED_DATASET"); requireEnvVar("UCAIP_PROJECT_ID"); } From 67e67dba2849608d500883f8a7b17771c830cf74 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 21 Apr 2021 09:06:15 -0700 Subject: [PATCH 11/54] samples: updates samples to v1 (3 of 8) (#215) * samples: updates the samples to v1 (3 of 10) * samples: more updates to v1 --- ...CreateTrainingPipelineCustomJobSample.java | 14 +- ...ineCustomTrainingManagedDatasetSample.java | 16 +- ...ningPipelineImageClassificationSample.java | 59 +- ...ingPipelineImageObjectDetectionSample.java | 55 +- .../CreateTrainingPipelineSample.java | 55 +- ...ngPipelineTabularClassificationSample.java | 521 +++++++------- ...ainingPipelineTabularRegressionSample.java | 665 +++++++++--------- ...iningPipelineTextClassificationSample.java | 55 +- ...ingPipelineTextEntityExtractionSample.java | 55 +- ...ngPipelineTextSentimentAnalysisSample.java | 57 +- ...gPipelineVideoActionRecognitionSample.java | 16 +- ...ningPipelineVideoClassificationSample.java | 20 +- ...ningPipelineVideoObjectTrackingSample.java | 24 +- ...eateHyperparameterTuningJobSampleTest.java | 4 +- 14 files changed, 716 insertions(+), 900 deletions(-) diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomJobSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomJobSample.java index 7b40d0e8d..53e9867a6 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomJobSample.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. @@ -17,12 +17,12 @@ package aiplatform; // [START aiplatform_create_training_pipeline_custom_job_sample] -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.protobuf.Value; diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java index ea624de5b..8fad23687 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineCustomTrainingManagedDatasetSample.java @@ -17,14 +17,14 @@ package aiplatform; // [START aiplatform_create_training_pipeline_custom_training_managed_dataset_sample] -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.protobuf.Value; diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageClassificationSample.java index 445707253..4f9c1e2c5 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageClassificationSample.java @@ -18,28 +18,24 @@ // [START aiplatform_create_training_pipeline_image_classification_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.Model.ExportFormat; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.Model.ExportFormat; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType; import com.google.rpc.Status; import java.io.IOException; @@ -204,25 +200,6 @@ static void createTrainingPipelineImageClassificationSample( System.out.format("Deployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); } - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("Explanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("Parameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("Sampled Shapley Attribution"); - System.out.format("Path Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("Metadata"); - System.out.format("Inputs: %s\n", explanationMetadata.getInputsMap()); - System.out.format("Outputs: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "Feature Attributions Schema_uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - Status status = trainingPipelineResponse.getError(); System.out.println("Error"); System.out.format("Code: %s\n", status.getCode()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java index 78181e448..65ade6ea4 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineImageObjectDetectionSample.java @@ -19,26 +19,22 @@ // [START aiplatform_create_training_pipeline_image_object_detection_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.Model.ExportFormat; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.Model.ExportFormat; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType; import com.google.rpc.Status; @@ -204,25 +200,6 @@ static void createTrainingPipelineImageObjectDetectionSample( System.out.format("Deployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); } - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("Explanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("Parameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("Sampled Shapley Attribution"); - System.out.format("Path Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("Metadata"); - System.out.format("Inputs: %s\n", explanationMetadata.getInputsMap()); - System.out.format("Outputs: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "Feature Attributions Schema_uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - Status status = trainingPipelineResponse.getError(); System.out.println("Error"); System.out.format("Code: %s\n", status.getCode()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineSample.java index 2dcb6e88c..33f94753e 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineSample.java @@ -18,26 +18,22 @@ // [START aiplatform_create_training_pipeline_sample] -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.Model.ExportFormat; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.Model.ExportFormat; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.protobuf.Value; import com.google.protobuf.util.JsonFormat; import com.google.rpc.Status; @@ -204,25 +200,6 @@ static void createTrainingPipelineSample( System.out.format("Deployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); } - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("Explanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("Parameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("Sampled Shapley Attribution"); - System.out.format("Path Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("Metadata"); - System.out.format("Inputs: %s\n", explanationMetadata.getInputsMap()); - System.out.format("Outputs: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "Feature Attributions Schema_uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - Status status = trainingPipelineResponse.getError(); System.out.println("Error"); System.out.format("Code: %s\n", status.getCode()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java index 0ee0392db..107e8c01a 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularClassificationSample.java @@ -1,272 +1,249 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.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. - */ - -package aiplatform; - -// [START aiplatform_create_training_pipeline_tabular_classification_sample] - -import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; -import com.google.rpc.Status; -import java.io.IOException; -import java.util.ArrayList; - -public class CreateTrainingPipelineTabularClassificationSample { - - public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. - String project = "YOUR_PROJECT_ID"; - String modelDisplayName = "YOUR_DATASET_DISPLAY_NAME"; - String datasetId = "YOUR_DATASET_ID"; - String targetColumn = "TARGET_COLUMN"; - createTrainingPipelineTableClassification(project, modelDisplayName, datasetId, targetColumn); - } - - static void createTrainingPipelineTableClassification( - String project, String modelDisplayName, String datasetId, String targetColumn) - throws IOException { - PipelineServiceSettings pipelineServiceSettings = - PipelineServiceSettings.newBuilder() - .setEndpoint("us-central1-aiplatform.googleapis.com:443") - .build(); - - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (PipelineServiceClient pipelineServiceClient = - PipelineServiceClient.create(pipelineServiceSettings)) { - String location = "us-central1"; - LocationName locationName = LocationName.of(project, location); - String trainingTaskDefinition = - "gs://google-cloud-aiplatform/schema/trainingjob/definition/automl_tables_1.0.0.yaml"; - - // Set the columns used for training and their data types - Transformation transformation1 = - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_width").build()) - .build(); - Transformation transformation2 = - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_length").build()) - .build(); - Transformation transformation3 = - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("petal_length").build()) - .build(); - Transformation transformation4 = - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("petal_width").build()) - .build(); - - ArrayList transformationArrayList = new ArrayList<>(); - transformationArrayList.add(transformation1); - transformationArrayList.add(transformation2); - transformationArrayList.add(transformation3); - transformationArrayList.add(transformation4); - - AutoMlTablesInputs autoMlTablesInputs = - AutoMlTablesInputs.newBuilder() - .setTargetColumn(targetColumn) - .setPredictionType("classification") - .addAllTransformations(transformationArrayList) - .setTrainBudgetMilliNodeHours(8000) - .build(); - - FractionSplit fractionSplit = - FractionSplit.newBuilder() - .setTrainingFraction(0.8) - .setValidationFraction(0.1) - .setTestFraction(0.1) - .build(); - - InputDataConfig inputDataConfig = - InputDataConfig.newBuilder() - .setDatasetId(datasetId) - .setFractionSplit(fractionSplit) - .build(); - Model modelToUpload = Model.newBuilder().setDisplayName(modelDisplayName).build(); - - TrainingPipeline trainingPipeline = - TrainingPipeline.newBuilder() - .setDisplayName(modelDisplayName) - .setTrainingTaskDefinition(trainingTaskDefinition) - .setTrainingTaskInputs(ValueConverter.toValue(autoMlTablesInputs)) - .setInputDataConfig(inputDataConfig) - .setModelToUpload(modelToUpload) - .build(); - - TrainingPipeline trainingPipelineResponse = - pipelineServiceClient.createTrainingPipeline(locationName, trainingPipeline); - - System.out.println("Create Training Pipeline Tabular Classification Response"); - System.out.format("\tName: %s\n", trainingPipelineResponse.getName()); - System.out.format("\tDisplay Name: %s\n", trainingPipelineResponse.getDisplayName()); - System.out.format( - "\tTraining Task Definition: %s\n", trainingPipelineResponse.getTrainingTaskDefinition()); - System.out.format( - "\tTraining Task Inputs: %s\n", trainingPipelineResponse.getTrainingTaskInputs()); - System.out.format( - "\tTraining Task Metadata: %s\n", trainingPipelineResponse.getTrainingTaskMetadata()); - - System.out.format("\tState: %s\n", trainingPipelineResponse.getState()); - System.out.format("\tCreate Time: %s\n", trainingPipelineResponse.getCreateTime()); - System.out.format("\tStart Time: %s\n", trainingPipelineResponse.getStartTime()); - System.out.format("\tEnd Time: %s\n", trainingPipelineResponse.getEndTime()); - System.out.format("\tUpdate Time: %s\n", trainingPipelineResponse.getUpdateTime()); - System.out.format("\tLabels: %s\n", trainingPipelineResponse.getLabelsMap()); - - InputDataConfig inputDataConfigResponse = trainingPipelineResponse.getInputDataConfig(); - System.out.println("\tInput Data Config"); - System.out.format("\t\tDataset Id: %s\n", inputDataConfigResponse.getDatasetId()); - System.out.format( - "\t\tAnnotations Filter: %s\n", inputDataConfigResponse.getAnnotationsFilter()); - - FractionSplit fractionSplitResponse = inputDataConfigResponse.getFractionSplit(); - System.out.println("\t\tFraction Split"); - System.out.format( - "\t\t\tTraining Fraction: %s\n", fractionSplitResponse.getTrainingFraction()); - System.out.format( - "\t\t\tValidation Fraction: %s\n", fractionSplitResponse.getValidationFraction()); - System.out.format("\t\t\tTest Fraction: %s\n", fractionSplitResponse.getTestFraction()); - - FilterSplit filterSplit = inputDataConfigResponse.getFilterSplit(); - System.out.println("\t\tFilter Split"); - System.out.format("\t\t\tTraining Fraction: %s\n", filterSplit.getTrainingFilter()); - System.out.format("\t\t\tValidation Fraction: %s\n", filterSplit.getValidationFilter()); - System.out.format("\t\t\tTest Fraction: %s\n", filterSplit.getTestFilter()); - - PredefinedSplit predefinedSplit = inputDataConfigResponse.getPredefinedSplit(); - System.out.println("\t\tPredefined Split"); - System.out.format("\t\t\tKey: %s\n", predefinedSplit.getKey()); - - TimestampSplit timestampSplit = inputDataConfigResponse.getTimestampSplit(); - System.out.println("\t\tTimestamp Split"); - System.out.format("\t\t\tTraining Fraction: %s\n", timestampSplit.getTrainingFraction()); - System.out.format("\t\t\tValidation Fraction: %s\n", timestampSplit.getValidationFraction()); - System.out.format("\t\t\tTest Fraction: %s\n", timestampSplit.getTestFraction()); - System.out.format("\t\t\tKey: %s\n", timestampSplit.getKey()); - - Model modelResponse = trainingPipelineResponse.getModelToUpload(); - System.out.println("\tModel To Upload"); - System.out.format("\t\tName: %s\n", modelResponse.getName()); - System.out.format("\t\tDisplay Name: %s\n", modelResponse.getDisplayName()); - System.out.format("\t\tDescription: %s\n", modelResponse.getDescription()); - System.out.format("\t\tMetadata Schema Uri: %s\n", modelResponse.getMetadataSchemaUri()); - System.out.format("\t\tMeta Data: %s\n", modelResponse.getMetadata()); - System.out.format("\t\tTraining Pipeline: %s\n", modelResponse.getTrainingPipeline()); - System.out.format("\t\tArtifact Uri: %s\n", modelResponse.getArtifactUri()); - - System.out.format( - "\t\tSupported Deployment Resources Types: %s\n", - modelResponse.getSupportedDeploymentResourcesTypesList().toString()); - System.out.format( - "\t\tSupported Input Storage Formats: %s\n", - modelResponse.getSupportedInputStorageFormatsList().toString()); - System.out.format( - "\t\tSupported Output Storage Formats: %s\n", - modelResponse.getSupportedOutputStorageFormatsList().toString()); - - System.out.format("\t\tCreate Time: %s\n", modelResponse.getCreateTime()); - System.out.format("\t\tUpdate Time: %s\n", modelResponse.getUpdateTime()); - System.out.format("\t\tLables: %s\n", modelResponse.getLabelsMap()); - PredictSchemata predictSchemata = modelResponse.getPredictSchemata(); - - System.out.println("\tPredict Schemata"); - System.out.format("\t\tInstance Schema Uri: %s\n", predictSchemata.getInstanceSchemaUri()); - System.out.format( - "\t\tParameters Schema Uri: %s\n", predictSchemata.getParametersSchemaUri()); - System.out.format( - "\t\tPrediction Schema Uri: %s\n", predictSchemata.getPredictionSchemaUri()); - - for (Model.ExportFormat supportedExportFormat : - modelResponse.getSupportedExportFormatsList()) { - System.out.println("\tSupported Export Format"); - System.out.format("\t\tId: %s\n", supportedExportFormat.getId()); - } - ModelContainerSpec containerSpec = modelResponse.getContainerSpec(); - - System.out.println("\tContainer Spec"); - System.out.format("\t\tImage Uri: %s\n", containerSpec.getImageUri()); - System.out.format("\t\tCommand: %s\n", containerSpec.getCommandList()); - System.out.format("\t\tArgs: %s\n", containerSpec.getArgsList()); - System.out.format("\t\tPredict Route: %s\n", containerSpec.getPredictRoute()); - System.out.format("\t\tHealth Route: %s\n", containerSpec.getHealthRoute()); - - for (EnvVar envVar : containerSpec.getEnvList()) { - System.out.println("\t\tEnv"); - System.out.format("\t\t\tName: %s\n", envVar.getName()); - System.out.format("\t\t\tValue: %s\n", envVar.getValue()); - } - - for (Port port : containerSpec.getPortsList()) { - System.out.println("\t\tPort"); - System.out.format("\t\t\tContainer Port: %s\n", port.getContainerPort()); - } - - for (DeployedModelRef deployedModelRef : modelResponse.getDeployedModelsList()) { - System.out.println("\tDeployed Model"); - System.out.format("\t\tEndpoint: %s\n", deployedModelRef.getEndpoint()); - System.out.format("\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); - } - - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("\tExplanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("\t\tParameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("\t\tSampled Shapley Attribution"); - System.out.format("\t\t\tPath Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("\t\tMetadata"); - System.out.format("\t\t\tInput: %s\n", explanationMetadata.getInputsMap()); - System.out.format("\t\t\tOutput: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "\t\t\tFeature Attributions Schema Uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - - Status status = trainingPipelineResponse.getError(); - System.out.println("\tError"); - System.out.format("\t\tCode: %s\n", status.getCode()); - System.out.format("\t\tMessage: %s\n", status.getMessage()); - } - } -} -// [END aiplatform_create_training_pipeline_tabular_classification_sample] +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package aiplatform; + +// [START aiplatform_create_training_pipeline_tabular_classification_sample] + +import com.google.cloud.aiplatform.util.ValueConverter; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; + +public class CreateTrainingPipelineTabularClassificationSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String modelDisplayName = "YOUR_DATASET_DISPLAY_NAME"; + String datasetId = "YOUR_DATASET_ID"; + String targetColumn = "TARGET_COLUMN"; + createTrainingPipelineTableClassification(project, modelDisplayName, datasetId, targetColumn); + } + + static void createTrainingPipelineTableClassification( + String project, String modelDisplayName, String datasetId, String targetColumn) + throws IOException { + PipelineServiceSettings pipelineServiceSettings = + PipelineServiceSettings.newBuilder() + .setEndpoint("us-central1-aiplatform.googleapis.com:443") + .build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (PipelineServiceClient pipelineServiceClient = + PipelineServiceClient.create(pipelineServiceSettings)) { + String location = "us-central1"; + LocationName locationName = LocationName.of(project, location); + String trainingTaskDefinition = + "gs://google-cloud-aiplatform/schema/trainingjob/definition/automl_tables_1.0.0.yaml"; + + // Set the columns used for training and their data types + Transformation transformation1 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_width").build()) + .build(); + Transformation transformation2 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("sepal_length").build()) + .build(); + Transformation transformation3 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("petal_length").build()) + .build(); + Transformation transformation4 = + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("petal_width").build()) + .build(); + + ArrayList transformationArrayList = new ArrayList<>(); + transformationArrayList.add(transformation1); + transformationArrayList.add(transformation2); + transformationArrayList.add(transformation3); + transformationArrayList.add(transformation4); + + AutoMlTablesInputs autoMlTablesInputs = + AutoMlTablesInputs.newBuilder() + .setTargetColumn(targetColumn) + .setPredictionType("classification") + .addAllTransformations(transformationArrayList) + .setTrainBudgetMilliNodeHours(8000) + .build(); + + FractionSplit fractionSplit = + FractionSplit.newBuilder() + .setTrainingFraction(0.8) + .setValidationFraction(0.1) + .setTestFraction(0.1) + .build(); + + InputDataConfig inputDataConfig = + InputDataConfig.newBuilder() + .setDatasetId(datasetId) + .setFractionSplit(fractionSplit) + .build(); + Model modelToUpload = Model.newBuilder().setDisplayName(modelDisplayName).build(); + + TrainingPipeline trainingPipeline = + TrainingPipeline.newBuilder() + .setDisplayName(modelDisplayName) + .setTrainingTaskDefinition(trainingTaskDefinition) + .setTrainingTaskInputs(ValueConverter.toValue(autoMlTablesInputs)) + .setInputDataConfig(inputDataConfig) + .setModelToUpload(modelToUpload) + .build(); + + TrainingPipeline trainingPipelineResponse = + pipelineServiceClient.createTrainingPipeline(locationName, trainingPipeline); + + System.out.println("Create Training Pipeline Tabular Classification Response"); + System.out.format("\tName: %s\n", trainingPipelineResponse.getName()); + System.out.format("\tDisplay Name: %s\n", trainingPipelineResponse.getDisplayName()); + System.out.format( + "\tTraining Task Definition: %s\n", trainingPipelineResponse.getTrainingTaskDefinition()); + System.out.format( + "\tTraining Task Inputs: %s\n", trainingPipelineResponse.getTrainingTaskInputs()); + System.out.format( + "\tTraining Task Metadata: %s\n", trainingPipelineResponse.getTrainingTaskMetadata()); + + System.out.format("\tState: %s\n", trainingPipelineResponse.getState()); + System.out.format("\tCreate Time: %s\n", trainingPipelineResponse.getCreateTime()); + System.out.format("\tStart Time: %s\n", trainingPipelineResponse.getStartTime()); + System.out.format("\tEnd Time: %s\n", trainingPipelineResponse.getEndTime()); + System.out.format("\tUpdate Time: %s\n", trainingPipelineResponse.getUpdateTime()); + System.out.format("\tLabels: %s\n", trainingPipelineResponse.getLabelsMap()); + + InputDataConfig inputDataConfigResponse = trainingPipelineResponse.getInputDataConfig(); + System.out.println("\tInput Data Config"); + System.out.format("\t\tDataset Id: %s\n", inputDataConfigResponse.getDatasetId()); + System.out.format( + "\t\tAnnotations Filter: %s\n", inputDataConfigResponse.getAnnotationsFilter()); + + FractionSplit fractionSplitResponse = inputDataConfigResponse.getFractionSplit(); + System.out.println("\t\tFraction Split"); + System.out.format( + "\t\t\tTraining Fraction: %s\n", fractionSplitResponse.getTrainingFraction()); + System.out.format( + "\t\t\tValidation Fraction: %s\n", fractionSplitResponse.getValidationFraction()); + System.out.format("\t\t\tTest Fraction: %s\n", fractionSplitResponse.getTestFraction()); + + FilterSplit filterSplit = inputDataConfigResponse.getFilterSplit(); + System.out.println("\t\tFilter Split"); + System.out.format("\t\t\tTraining Fraction: %s\n", filterSplit.getTrainingFilter()); + System.out.format("\t\t\tValidation Fraction: %s\n", filterSplit.getValidationFilter()); + System.out.format("\t\t\tTest Fraction: %s\n", filterSplit.getTestFilter()); + + PredefinedSplit predefinedSplit = inputDataConfigResponse.getPredefinedSplit(); + System.out.println("\t\tPredefined Split"); + System.out.format("\t\t\tKey: %s\n", predefinedSplit.getKey()); + + TimestampSplit timestampSplit = inputDataConfigResponse.getTimestampSplit(); + System.out.println("\t\tTimestamp Split"); + System.out.format("\t\t\tTraining Fraction: %s\n", timestampSplit.getTrainingFraction()); + System.out.format("\t\t\tValidation Fraction: %s\n", timestampSplit.getValidationFraction()); + System.out.format("\t\t\tTest Fraction: %s\n", timestampSplit.getTestFraction()); + System.out.format("\t\t\tKey: %s\n", timestampSplit.getKey()); + + Model modelResponse = trainingPipelineResponse.getModelToUpload(); + System.out.println("\tModel To Upload"); + System.out.format("\t\tName: %s\n", modelResponse.getName()); + System.out.format("\t\tDisplay Name: %s\n", modelResponse.getDisplayName()); + System.out.format("\t\tDescription: %s\n", modelResponse.getDescription()); + System.out.format("\t\tMetadata Schema Uri: %s\n", modelResponse.getMetadataSchemaUri()); + System.out.format("\t\tMeta Data: %s\n", modelResponse.getMetadata()); + System.out.format("\t\tTraining Pipeline: %s\n", modelResponse.getTrainingPipeline()); + System.out.format("\t\tArtifact Uri: %s\n", modelResponse.getArtifactUri()); + + System.out.format( + "\t\tSupported Deployment Resources Types: %s\n", + modelResponse.getSupportedDeploymentResourcesTypesList().toString()); + System.out.format( + "\t\tSupported Input Storage Formats: %s\n", + modelResponse.getSupportedInputStorageFormatsList().toString()); + System.out.format( + "\t\tSupported Output Storage Formats: %s\n", + modelResponse.getSupportedOutputStorageFormatsList().toString()); + + System.out.format("\t\tCreate Time: %s\n", modelResponse.getCreateTime()); + System.out.format("\t\tUpdate Time: %s\n", modelResponse.getUpdateTime()); + System.out.format("\t\tLables: %s\n", modelResponse.getLabelsMap()); + PredictSchemata predictSchemata = modelResponse.getPredictSchemata(); + + System.out.println("\tPredict Schemata"); + System.out.format("\t\tInstance Schema Uri: %s\n", predictSchemata.getInstanceSchemaUri()); + System.out.format( + "\t\tParameters Schema Uri: %s\n", predictSchemata.getParametersSchemaUri()); + System.out.format( + "\t\tPrediction Schema Uri: %s\n", predictSchemata.getPredictionSchemaUri()); + + for (Model.ExportFormat supportedExportFormat : + modelResponse.getSupportedExportFormatsList()) { + System.out.println("\tSupported Export Format"); + System.out.format("\t\tId: %s\n", supportedExportFormat.getId()); + } + ModelContainerSpec containerSpec = modelResponse.getContainerSpec(); + + System.out.println("\tContainer Spec"); + System.out.format("\t\tImage Uri: %s\n", containerSpec.getImageUri()); + System.out.format("\t\tCommand: %s\n", containerSpec.getCommandList()); + System.out.format("\t\tArgs: %s\n", containerSpec.getArgsList()); + System.out.format("\t\tPredict Route: %s\n", containerSpec.getPredictRoute()); + System.out.format("\t\tHealth Route: %s\n", containerSpec.getHealthRoute()); + + for (EnvVar envVar : containerSpec.getEnvList()) { + System.out.println("\t\tEnv"); + System.out.format("\t\t\tName: %s\n", envVar.getName()); + System.out.format("\t\t\tValue: %s\n", envVar.getValue()); + } + + for (Port port : containerSpec.getPortsList()) { + System.out.println("\t\tPort"); + System.out.format("\t\t\tContainer Port: %s\n", port.getContainerPort()); + } + + for (DeployedModelRef deployedModelRef : modelResponse.getDeployedModelsList()) { + System.out.println("\tDeployed Model"); + System.out.format("\t\tEndpoint: %s\n", deployedModelRef.getEndpoint()); + System.out.format("\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); + } + + Status status = trainingPipelineResponse.getError(); + System.out.println("\tError"); + System.out.format("\t\tCode: %s\n", status.getCode()); + System.out.format("\t\tMessage: %s\n", status.getMessage()); + } + } +} +// [END aiplatform_create_training_pipeline_tabular_classification_sample] diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java index f9f6ade39..427dae0c0 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTabularRegressionSample.java @@ -1,344 +1,321 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.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. - */ - -package aiplatform; - -// [START aiplatform_create_training_pipeline_tabular_regression_sample] - -import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; -import com.google.rpc.Status; -import java.io.IOException; -import java.util.ArrayList; - -public class CreateTrainingPipelineTabularRegressionSample { - - public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. - String project = "YOUR_PROJECT_ID"; - String modelDisplayName = "YOUR_DATASET_DISPLAY_NAME"; - String datasetId = "YOUR_DATASET_ID"; - String targetColumn = "TARGET_COLUMN"; - createTrainingPipelineTableRegression(project, modelDisplayName, datasetId, targetColumn); - } - - static void createTrainingPipelineTableRegression( - String project, String modelDisplayName, String datasetId, String targetColumn) - throws IOException { - PipelineServiceSettings pipelineServiceSettings = - PipelineServiceSettings.newBuilder() - .setEndpoint("us-central1-aiplatform.googleapis.com:443") - .build(); - - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (PipelineServiceClient pipelineServiceClient = - PipelineServiceClient.create(pipelineServiceSettings)) { - String location = "us-central1"; - LocationName locationName = LocationName.of(project, location); - String trainingTaskDefinition = - "gs://google-cloud-aiplatform/schema/trainingjob/definition/automl_tables_1.0.0.yaml"; - - // Set the columns used for training and their data types - ArrayList tranformations = new ArrayList<>(); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("STRING_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("INTEGER_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_REPEATED")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("NUMERIC_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("BOOLEAN_2unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setTimestamp( - TimestampTransformation.newBuilder() - .setColumnName("TIMESTAMP_1unique_NULLABLE") - .setInvalidValuesAllowed(true)) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("DATE_1unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto(AutoTransformation.newBuilder().setColumnName("TIME_1unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setTimestamp( - TimestampTransformation.newBuilder() - .setColumnName("DATETIME_1unique_NULLABLE") - .setInvalidValuesAllowed(true)) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto( - AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.STRING_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto( - AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.INTEGER_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto( - AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto( - AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REQUIRED")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto( - AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REPEATED")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto( - AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.NUMERIC_5000unique_NULLABLE")) - .build()); - tranformations.add( - Transformation.newBuilder() - .setAuto( - AutoTransformation.newBuilder() - .setColumnName("STRUCT_NULLABLE.TIMESTAMP_1unique_NULLABLE")) - .build()); - - AutoMlTablesInputs trainingTaskInputs = - AutoMlTablesInputs.newBuilder() - .addAllTransformations(tranformations) - .setTargetColumn(targetColumn) - .setPredictionType("regression") - .setTrainBudgetMilliNodeHours(8000) - .setDisableEarlyStopping(false) - // supported regression optimisation objectives: minimize-rmse, - // minimize-mae, minimize-rmsle - .setOptimizationObjective("minimize-rmse") - .build(); - - FractionSplit fractionSplit = - FractionSplit.newBuilder() - .setTrainingFraction(0.8) - .setValidationFraction(0.1) - .setTestFraction(0.1) - .build(); - - InputDataConfig inputDataConfig = - InputDataConfig.newBuilder() - .setDatasetId(datasetId) - .setFractionSplit(fractionSplit) - .build(); - Model modelToUpload = Model.newBuilder().setDisplayName(modelDisplayName).build(); - - TrainingPipeline trainingPipeline = - TrainingPipeline.newBuilder() - .setDisplayName(modelDisplayName) - .setTrainingTaskDefinition(trainingTaskDefinition) - .setTrainingTaskInputs(ValueConverter.toValue(trainingTaskInputs)) - .setInputDataConfig(inputDataConfig) - .setModelToUpload(modelToUpload) - .build(); - - TrainingPipeline trainingPipelineResponse = - pipelineServiceClient.createTrainingPipeline(locationName, trainingPipeline); - - System.out.println("Create Training Pipeline Tabular Regression Response"); - System.out.format("\tName: %s\n", trainingPipelineResponse.getName()); - System.out.format("\tDisplay Name: %s\n", trainingPipelineResponse.getDisplayName()); - System.out.format( - "\tTraining Task Definition: %s\n", trainingPipelineResponse.getTrainingTaskDefinition()); - System.out.format( - "\tTraining Task Inputs: %s\n", trainingPipelineResponse.getTrainingTaskInputs()); - System.out.format( - "\tTraining Task Metadata: %s\n", trainingPipelineResponse.getTrainingTaskMetadata()); - - System.out.format("\tState: %s\n", trainingPipelineResponse.getState()); - System.out.format("\tCreate Time: %s\n", trainingPipelineResponse.getCreateTime()); - System.out.format("\tStart Time: %s\n", trainingPipelineResponse.getStartTime()); - System.out.format("\tEnd Time: %s\n", trainingPipelineResponse.getEndTime()); - System.out.format("\tUpdate Time: %s\n", trainingPipelineResponse.getUpdateTime()); - System.out.format("\tLabels: %s\n", trainingPipelineResponse.getLabelsMap()); - - InputDataConfig inputDataConfigResponse = trainingPipelineResponse.getInputDataConfig(); - System.out.println("\tInput Data Config"); - System.out.format("\t\tDataset Id: %s\n", inputDataConfigResponse.getDatasetId()); - System.out.format( - "\t\tAnnotations Filter: %s\n", inputDataConfigResponse.getAnnotationsFilter()); - - FractionSplit fractionSplitResponse = inputDataConfigResponse.getFractionSplit(); - System.out.println("\t\tFraction Split"); - System.out.format( - "\t\t\tTraining Fraction: %s\n", fractionSplitResponse.getTrainingFraction()); - System.out.format( - "\t\t\tValidation Fraction: %s\n", fractionSplitResponse.getValidationFraction()); - System.out.format("\t\t\tTest Fraction: %s\n", fractionSplitResponse.getTestFraction()); - - FilterSplit filterSplit = inputDataConfigResponse.getFilterSplit(); - System.out.println("\t\tFilter Split"); - System.out.format("\t\t\tTraining Fraction: %s\n", filterSplit.getTrainingFilter()); - System.out.format("\t\t\tValidation Fraction: %s\n", filterSplit.getValidationFilter()); - System.out.format("\t\t\tTest Fraction: %s\n", filterSplit.getTestFilter()); - - PredefinedSplit predefinedSplit = inputDataConfigResponse.getPredefinedSplit(); - System.out.println("\t\tPredefined Split"); - System.out.format("\t\t\tKey: %s\n", predefinedSplit.getKey()); - - TimestampSplit timestampSplit = inputDataConfigResponse.getTimestampSplit(); - System.out.println("\t\tTimestamp Split"); - System.out.format("\t\t\tTraining Fraction: %s\n", timestampSplit.getTrainingFraction()); - System.out.format("\t\t\tValidation Fraction: %s\n", timestampSplit.getValidationFraction()); - System.out.format("\t\t\tTest Fraction: %s\n", timestampSplit.getTestFraction()); - System.out.format("\t\t\tKey: %s\n", timestampSplit.getKey()); - - Model modelResponse = trainingPipelineResponse.getModelToUpload(); - System.out.println("\tModel To Upload"); - System.out.format("\t\tName: %s\n", modelResponse.getName()); - System.out.format("\t\tDisplay Name: %s\n", modelResponse.getDisplayName()); - System.out.format("\t\tDescription: %s\n", modelResponse.getDescription()); - System.out.format("\t\tMetadata Schema Uri: %s\n", modelResponse.getMetadataSchemaUri()); - System.out.format("\t\tMeta Data: %s\n", modelResponse.getMetadata()); - System.out.format("\t\tTraining Pipeline: %s\n", modelResponse.getTrainingPipeline()); - System.out.format("\t\tArtifact Uri: %s\n", modelResponse.getArtifactUri()); - - System.out.format( - "\t\tSupported Deployment Resources Types: %s\n", - modelResponse.getSupportedDeploymentResourcesTypesList().toString()); - System.out.format( - "\t\tSupported Input Storage Formats: %s\n", - modelResponse.getSupportedInputStorageFormatsList().toString()); - System.out.format( - "\t\tSupported Output Storage Formats: %s\n", - modelResponse.getSupportedOutputStorageFormatsList().toString()); - - System.out.format("\t\tCreate Time: %s\n", modelResponse.getCreateTime()); - System.out.format("\t\tUpdate Time: %s\n", modelResponse.getUpdateTime()); - System.out.format("\t\tLables: %s\n", modelResponse.getLabelsMap()); - PredictSchemata predictSchemata = modelResponse.getPredictSchemata(); - - System.out.println("\tPredict Schemata"); - System.out.format("\t\tInstance Schema Uri: %s\n", predictSchemata.getInstanceSchemaUri()); - System.out.format( - "\t\tParameters Schema Uri: %s\n", predictSchemata.getParametersSchemaUri()); - System.out.format( - "\t\tPrediction Schema Uri: %s\n", predictSchemata.getPredictionSchemaUri()); - - for (Model.ExportFormat supportedExportFormat : - modelResponse.getSupportedExportFormatsList()) { - System.out.println("\tSupported Export Format"); - System.out.format("\t\tId: %s\n", supportedExportFormat.getId()); - } - ModelContainerSpec containerSpec = modelResponse.getContainerSpec(); - - System.out.println("\tContainer Spec"); - System.out.format("\t\tImage Uri: %s\n", containerSpec.getImageUri()); - System.out.format("\t\tCommand: %s\n", containerSpec.getCommandList()); - System.out.format("\t\tArgs: %s\n", containerSpec.getArgsList()); - System.out.format("\t\tPredict Route: %s\n", containerSpec.getPredictRoute()); - System.out.format("\t\tHealth Route: %s\n", containerSpec.getHealthRoute()); - - for (EnvVar envVar : containerSpec.getEnvList()) { - System.out.println("\t\tEnv"); - System.out.format("\t\t\tName: %s\n", envVar.getName()); - System.out.format("\t\t\tValue: %s\n", envVar.getValue()); - } - - for (Port port : containerSpec.getPortsList()) { - System.out.println("\t\tPort"); - System.out.format("\t\t\tContainer Port: %s\n", port.getContainerPort()); - } - - for (DeployedModelRef deployedModelRef : modelResponse.getDeployedModelsList()) { - System.out.println("\tDeployed Model"); - System.out.format("\t\tEndpoint: %s\n", deployedModelRef.getEndpoint()); - System.out.format("\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); - } - - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("\tExplanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("\t\tParameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("\t\tSampled Shapley Attribution"); - System.out.format("\t\t\tPath Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("\t\tMetadata"); - System.out.format("\t\t\tInput: %s\n", explanationMetadata.getInputsMap()); - System.out.format("\t\t\tOutput: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "\t\t\tFeature Attributions Schema Uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - - Status status = trainingPipelineResponse.getError(); - System.out.println("\tError"); - System.out.format("\t\tCode: %s\n", status.getCode()); - System.out.format("\t\tMessage: %s\n", status.getMessage()); - } - } -} -// [END aiplatform_create_training_pipeline_tabular_regression_sample] +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package aiplatform; + +// [START aiplatform_create_training_pipeline_tabular_regression_sample] + +import com.google.cloud.aiplatform.util.ValueConverter; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; +import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; +import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; +import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; +import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; + +public class CreateTrainingPipelineTabularRegressionSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String modelDisplayName = "YOUR_DATASET_DISPLAY_NAME"; + String datasetId = "YOUR_DATASET_ID"; + String targetColumn = "TARGET_COLUMN"; + createTrainingPipelineTableRegression(project, modelDisplayName, datasetId, targetColumn); + } + + static void createTrainingPipelineTableRegression( + String project, String modelDisplayName, String datasetId, String targetColumn) + throws IOException { + PipelineServiceSettings pipelineServiceSettings = + PipelineServiceSettings.newBuilder() + .setEndpoint("us-central1-aiplatform.googleapis.com:443") + .build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (PipelineServiceClient pipelineServiceClient = + PipelineServiceClient.create(pipelineServiceSettings)) { + String location = "us-central1"; + LocationName locationName = LocationName.of(project, location); + String trainingTaskDefinition = + "gs://google-cloud-aiplatform/schema/trainingjob/definition/automl_tables_1.0.0.yaml"; + + // Set the columns used for training and their data types + ArrayList tranformations = new ArrayList<>(); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("STRING_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("INTEGER_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("FLOAT_5000unique_REPEATED")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("NUMERIC_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("BOOLEAN_2unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setTimestamp( + TimestampTransformation.newBuilder() + .setColumnName("TIMESTAMP_1unique_NULLABLE") + .setInvalidValuesAllowed(true)) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("DATE_1unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto(AutoTransformation.newBuilder().setColumnName("TIME_1unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setTimestamp( + TimestampTransformation.newBuilder() + .setColumnName("DATETIME_1unique_NULLABLE") + .setInvalidValuesAllowed(true)) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.STRING_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.INTEGER_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REQUIRED")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.FLOAT_5000unique_REPEATED")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.NUMERIC_5000unique_NULLABLE")) + .build()); + tranformations.add( + Transformation.newBuilder() + .setAuto( + AutoTransformation.newBuilder() + .setColumnName("STRUCT_NULLABLE.TIMESTAMP_1unique_NULLABLE")) + .build()); + + AutoMlTablesInputs trainingTaskInputs = + AutoMlTablesInputs.newBuilder() + .addAllTransformations(tranformations) + .setTargetColumn(targetColumn) + .setPredictionType("regression") + .setTrainBudgetMilliNodeHours(8000) + .setDisableEarlyStopping(false) + // supported regression optimisation objectives: minimize-rmse, + // minimize-mae, minimize-rmsle + .setOptimizationObjective("minimize-rmse") + .build(); + + FractionSplit fractionSplit = + FractionSplit.newBuilder() + .setTrainingFraction(0.8) + .setValidationFraction(0.1) + .setTestFraction(0.1) + .build(); + + InputDataConfig inputDataConfig = + InputDataConfig.newBuilder() + .setDatasetId(datasetId) + .setFractionSplit(fractionSplit) + .build(); + Model modelToUpload = Model.newBuilder().setDisplayName(modelDisplayName).build(); + + TrainingPipeline trainingPipeline = + TrainingPipeline.newBuilder() + .setDisplayName(modelDisplayName) + .setTrainingTaskDefinition(trainingTaskDefinition) + .setTrainingTaskInputs(ValueConverter.toValue(trainingTaskInputs)) + .setInputDataConfig(inputDataConfig) + .setModelToUpload(modelToUpload) + .build(); + + TrainingPipeline trainingPipelineResponse = + pipelineServiceClient.createTrainingPipeline(locationName, trainingPipeline); + + System.out.println("Create Training Pipeline Tabular Regression Response"); + System.out.format("\tName: %s\n", trainingPipelineResponse.getName()); + System.out.format("\tDisplay Name: %s\n", trainingPipelineResponse.getDisplayName()); + System.out.format( + "\tTraining Task Definition: %s\n", trainingPipelineResponse.getTrainingTaskDefinition()); + System.out.format( + "\tTraining Task Inputs: %s\n", trainingPipelineResponse.getTrainingTaskInputs()); + System.out.format( + "\tTraining Task Metadata: %s\n", trainingPipelineResponse.getTrainingTaskMetadata()); + + System.out.format("\tState: %s\n", trainingPipelineResponse.getState()); + System.out.format("\tCreate Time: %s\n", trainingPipelineResponse.getCreateTime()); + System.out.format("\tStart Time: %s\n", trainingPipelineResponse.getStartTime()); + System.out.format("\tEnd Time: %s\n", trainingPipelineResponse.getEndTime()); + System.out.format("\tUpdate Time: %s\n", trainingPipelineResponse.getUpdateTime()); + System.out.format("\tLabels: %s\n", trainingPipelineResponse.getLabelsMap()); + + InputDataConfig inputDataConfigResponse = trainingPipelineResponse.getInputDataConfig(); + System.out.println("\tInput Data Config"); + System.out.format("\t\tDataset Id: %s\n", inputDataConfigResponse.getDatasetId()); + System.out.format( + "\t\tAnnotations Filter: %s\n", inputDataConfigResponse.getAnnotationsFilter()); + + FractionSplit fractionSplitResponse = inputDataConfigResponse.getFractionSplit(); + System.out.println("\t\tFraction Split"); + System.out.format( + "\t\t\tTraining Fraction: %s\n", fractionSplitResponse.getTrainingFraction()); + System.out.format( + "\t\t\tValidation Fraction: %s\n", fractionSplitResponse.getValidationFraction()); + System.out.format("\t\t\tTest Fraction: %s\n", fractionSplitResponse.getTestFraction()); + + FilterSplit filterSplit = inputDataConfigResponse.getFilterSplit(); + System.out.println("\t\tFilter Split"); + System.out.format("\t\t\tTraining Fraction: %s\n", filterSplit.getTrainingFilter()); + System.out.format("\t\t\tValidation Fraction: %s\n", filterSplit.getValidationFilter()); + System.out.format("\t\t\tTest Fraction: %s\n", filterSplit.getTestFilter()); + + PredefinedSplit predefinedSplit = inputDataConfigResponse.getPredefinedSplit(); + System.out.println("\t\tPredefined Split"); + System.out.format("\t\t\tKey: %s\n", predefinedSplit.getKey()); + + TimestampSplit timestampSplit = inputDataConfigResponse.getTimestampSplit(); + System.out.println("\t\tTimestamp Split"); + System.out.format("\t\t\tTraining Fraction: %s\n", timestampSplit.getTrainingFraction()); + System.out.format("\t\t\tValidation Fraction: %s\n", timestampSplit.getValidationFraction()); + System.out.format("\t\t\tTest Fraction: %s\n", timestampSplit.getTestFraction()); + System.out.format("\t\t\tKey: %s\n", timestampSplit.getKey()); + + Model modelResponse = trainingPipelineResponse.getModelToUpload(); + System.out.println("\tModel To Upload"); + System.out.format("\t\tName: %s\n", modelResponse.getName()); + System.out.format("\t\tDisplay Name: %s\n", modelResponse.getDisplayName()); + System.out.format("\t\tDescription: %s\n", modelResponse.getDescription()); + System.out.format("\t\tMetadata Schema Uri: %s\n", modelResponse.getMetadataSchemaUri()); + System.out.format("\t\tMeta Data: %s\n", modelResponse.getMetadata()); + System.out.format("\t\tTraining Pipeline: %s\n", modelResponse.getTrainingPipeline()); + System.out.format("\t\tArtifact Uri: %s\n", modelResponse.getArtifactUri()); + + System.out.format( + "\t\tSupported Deployment Resources Types: %s\n", + modelResponse.getSupportedDeploymentResourcesTypesList().toString()); + System.out.format( + "\t\tSupported Input Storage Formats: %s\n", + modelResponse.getSupportedInputStorageFormatsList().toString()); + System.out.format( + "\t\tSupported Output Storage Formats: %s\n", + modelResponse.getSupportedOutputStorageFormatsList().toString()); + + System.out.format("\t\tCreate Time: %s\n", modelResponse.getCreateTime()); + System.out.format("\t\tUpdate Time: %s\n", modelResponse.getUpdateTime()); + System.out.format("\t\tLables: %s\n", modelResponse.getLabelsMap()); + PredictSchemata predictSchemata = modelResponse.getPredictSchemata(); + + System.out.println("\tPredict Schemata"); + System.out.format("\t\tInstance Schema Uri: %s\n", predictSchemata.getInstanceSchemaUri()); + System.out.format( + "\t\tParameters Schema Uri: %s\n", predictSchemata.getParametersSchemaUri()); + System.out.format( + "\t\tPrediction Schema Uri: %s\n", predictSchemata.getPredictionSchemaUri()); + + for (Model.ExportFormat supportedExportFormat : + modelResponse.getSupportedExportFormatsList()) { + System.out.println("\tSupported Export Format"); + System.out.format("\t\tId: %s\n", supportedExportFormat.getId()); + } + ModelContainerSpec containerSpec = modelResponse.getContainerSpec(); + + System.out.println("\tContainer Spec"); + System.out.format("\t\tImage Uri: %s\n", containerSpec.getImageUri()); + System.out.format("\t\tCommand: %s\n", containerSpec.getCommandList()); + System.out.format("\t\tArgs: %s\n", containerSpec.getArgsList()); + System.out.format("\t\tPredict Route: %s\n", containerSpec.getPredictRoute()); + System.out.format("\t\tHealth Route: %s\n", containerSpec.getHealthRoute()); + + for (EnvVar envVar : containerSpec.getEnvList()) { + System.out.println("\t\tEnv"); + System.out.format("\t\t\tName: %s\n", envVar.getName()); + System.out.format("\t\t\tValue: %s\n", envVar.getValue()); + } + + for (Port port : containerSpec.getPortsList()) { + System.out.println("\t\tPort"); + System.out.format("\t\t\tContainer Port: %s\n", port.getContainerPort()); + } + + for (DeployedModelRef deployedModelRef : modelResponse.getDeployedModelsList()) { + System.out.println("\tDeployed Model"); + System.out.format("\t\tEndpoint: %s\n", deployedModelRef.getEndpoint()); + System.out.format("\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); + } + + Status status = trainingPipelineResponse.getError(); + System.out.println("\tError"); + System.out.format("\t\tCode: %s\n", status.getCode()); + System.out.format("\t\tMessage: %s\n", status.getMessage()); + } + } +} +// [END aiplatform_create_training_pipeline_tabular_regression_sample] diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java index dadd642c2..ac338beb3 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextClassificationSample.java @@ -19,26 +19,22 @@ // [START aiplatform_create_training_pipeline_text_classification_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.Model.ExportFormat; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.Model.ExportFormat; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs; import com.google.rpc.Status; import java.io.IOException; @@ -203,25 +199,6 @@ static void createTrainingPipelineTextClassificationSample( System.out.format("\t\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); } - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("\t\tExplanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("\t\t\tParameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("\t\t\t\tSampled Shapley Attribution"); - System.out.format("\t\t\t\t\tPath Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("\t\t\tMetadata"); - System.out.format("\t\t\t\tInputs: %s\n", explanationMetadata.getInputsMap()); - System.out.format("\t\t\t\tOutputs: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "\t\t\t\tFeature Attributions Schema_uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - Status status = trainingPipelineResponse.getError(); System.out.println("\tError"); System.out.format("\t\tCode: %s\n", status.getCode()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java index c62606c98..63dc13484 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextEntityExtractionSample.java @@ -19,26 +19,22 @@ // [START aiplatform_create_training_pipeline_text_entity_extraction_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.Model.ExportFormat; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.Model.ExportFormat; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.rpc.Status; import java.io.IOException; @@ -199,25 +195,6 @@ static void createTrainingPipelineTextEntityExtractionSample( System.out.format("\t\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); } - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("\t\tExplanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("\t\t\tParameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("\t\t\t\tSampled Shapley Attribution"); - System.out.format("\t\t\t\t\tPath Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("\t\t\tMetadata"); - System.out.format("\t\t\t\tInputs: %s\n", explanationMetadata.getInputsMap()); - System.out.format("\t\t\t\tOutputs: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "\t\t\t\tFeature Attributions Schema_uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - Status status = trainingPipelineResponse.getError(); System.out.println("\tError"); System.out.format("\t\tCode: %s\n", status.getCode()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextSentimentAnalysisSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextSentimentAnalysisSample.java index 0a5903ae2..ef87a9bfd 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextSentimentAnalysisSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineTextSentimentAnalysisSample.java @@ -19,27 +19,23 @@ // [START aiplatform_create_training_pipeline_text_sentiment_analysis_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.Model.ExportFormat; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.Model.ExportFormat; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; import com.google.rpc.Status; import java.io.IOException; @@ -207,25 +203,6 @@ static void createTrainingPipelineTextSentimentAnalysisSample( System.out.format("\t\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); } - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("\t\tExplanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("\t\t\tParameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("\t\t\t\tSampled Shapley Attribution"); - System.out.format("\t\t\t\t\tPath Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("\t\t\tMetadata"); - System.out.format("\t\t\t\tInputs: %s\n", explanationMetadata.getInputsMap()); - System.out.format("\t\t\t\tOutputs: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "\t\t\t\tFeature Attributions Schema_uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - Status status = trainingPipelineResponse.getError(); System.out.println("\tError"); System.out.format("\t\tCode: %s\n", status.getCode()); diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java index 9b3d83e77..02e15fb5d 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoActionRecognitionSample.java @@ -18,14 +18,14 @@ // [START aiplatform_create_training_pipeline_video_action_recognition_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType; import java.io.IOException; public class CreateTrainingPipelineVideoActionRecognitionSample { diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoClassificationSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoClassificationSample.java index 7bb27c5ae..403476b24 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoClassificationSample.java @@ -19,16 +19,16 @@ // [START aiplatform_create_training_pipeline_video_classification_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.rpc.Status; import java.io.IOException; diff --git a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java index 03cf2a522..3bd30b4b9 100644 --- a/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java +++ b/samples/snippets/src/main/java/aiplatform/CreateTrainingPipelineVideoObjectTrackingSample.java @@ -19,18 +19,18 @@ // [START aiplatform_create_training_pipeline_video_object_tracking_sample] import com.google.cloud.aiplatform.util.ValueConverter; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.LocationName; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; -import com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; +import com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType; import com.google.rpc.Status; import java.io.IOException; diff --git a/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java b/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java index c5da6fc48..48343412a 100644 --- a/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java +++ b/samples/snippets/src/test/java/aiplatform/CreateHyperparameterTuningJobSampleTest.java @@ -35,8 +35,8 @@ public class CreateHyperparameterTuningJobSampleTest { private static final String PROJECT = System.getenv("UCAIP_PROJECT_ID"); - private static final String CONTAINER_IMAGE_URI = "gcr.io/ucaip-sample-tests/ucaip-training-test:" - + "latest"; + private static final String CONTAINER_IMAGE_URI = + "gcr.io/ucaip-sample-tests/ucaip-training-test:latest"; private ByteArrayOutputStream bout; private PrintStream out; private PrintStream originalPrintStream; From f459058c86b8a6029a028ec0591afd6e235cdddc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Apr 2021 03:32:11 +0200 Subject: [PATCH 12/54] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.2 (#328) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.1` -> `0.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/compatibility-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/confidence-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.11.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0112-httpswwwgithubcomgoogleapisjava-shared-configcomparev0111v0112-2021-04-22) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.1...v0.11.2)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- google-cloud-aiplatform-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index 59e1527ed..bcab7a1ac 100644 --- a/google-cloud-aiplatform-bom/pom.xml +++ b/google-cloud-aiplatform-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 Google AI Platform BOM diff --git a/pom.xml b/pom.xml index 050ea1ab0..992a00d80 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 From 591c274ff3ffca5e0d964148eaeebaca5551ecaa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 24 Apr 2021 00:56:37 +0200 Subject: [PATCH 13/54] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1 (#329) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.1` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/compatibility-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/confidence-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0211v100-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.1...v1.0.0) ##### Features - promote to 1.0.0 ([#​341](https://www.github.com/googleapis/java-shared-dependencies/issues/341)) ([eddce7b](https://www.github.com/googleapis/java-shared-dependencies/commit/eddce7bda196d757c0bb93a05574cc742e3d7ff6)) ##### Dependencies - update dependency com.google.api:api-common to v1.10.3 ([#​340](https://www.github.com/googleapis/java-shared-dependencies/issues/340)) ([6a7fc33](https://www.github.com/googleapis/java-shared-dependencies/commit/6a7fc33548c199d5f310b3ee5024907882d22726)) - update dependency com.google.auth:google-auth-library-bom to v0.25.4 ([#​334](https://www.github.com/googleapis/java-shared-dependencies/issues/334)) ([e5c747d](https://www.github.com/googleapis/java-shared-dependencies/commit/e5c747d245194effc258ae706e7764153010cd53)) - update dependency com.google.auth:google-auth-library-bom to v0.25.5 ([#​338](https://www.github.com/googleapis/java-shared-dependencies/issues/338)) ([ffa1df5](https://www.github.com/googleapis/java-shared-dependencies/commit/ffa1df5497b5365f520b665a202b8caf6521fc9d)) - update dependency org.threeten:threetenbp to v1.5.1 ([#​335](https://www.github.com/googleapis/java-shared-dependencies/issues/335)) ([c8c6df4](https://www.github.com/googleapis/java-shared-dependencies/commit/c8c6df48e7f80944544939e502f4f08543af2631)) - update google.core.version to v1.94.8 ([#​342](https://www.github.com/googleapis/java-shared-dependencies/issues/342)) ([d946dd2](https://www.github.com/googleapis/java-shared-dependencies/commit/d946dd2299aac32f969a2226a1391e1e73f00e62)) ##### [0.21.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.21.0...v0.21.1) (2021-04-19) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​332](https://www.github.com/googleapis/java-shared-dependencies/issues/332)) ([e289825](https://www.github.com/googleapis/java-shared-dependencies/commit/e289825a3bc45b4796db7ce4347f8d9d9251a410)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.3 ([#​329](https://www.github.com/googleapis/java-shared-dependencies/issues/329)) ([a77b4fc](https://www.github.com/googleapis/java-shared-dependencies/commit/a77b4fcc2ea5caf366c76a4698bac6d4c9abc92e)) - update dependency com.google.api-client:google-api-client-bom to v1.31.4 ([#​326](https://www.github.com/googleapis/java-shared-dependencies/issues/326)) ([409d24f](https://www.github.com/googleapis/java-shared-dependencies/commit/409d24f8a0cac30e41ca45eb2711aecb335d70dd)) - update dependency com.google.auth:google-auth-library-bom to v0.25.3 ([#​328](https://www.github.com/googleapis/java-shared-dependencies/issues/328)) ([88cfc08](https://www.github.com/googleapis/java-shared-dependencies/commit/88cfc08952881200e23ed95cfa2eebad85ec7ab3)) - update google.core.version to v1.94.7 ([#​324](https://www.github.com/googleapis/java-shared-dependencies/issues/324)) ([0412c88](https://www.github.com/googleapis/java-shared-dependencies/commit/0412c88468940c1182bc0761bfe269a6688fe7b7)) - update iam.version to v1.0.12 ([#​327](https://www.github.com/googleapis/java-shared-dependencies/issues/327)) ([548d5f5](https://www.github.com/googleapis/java-shared-dependencies/commit/548d5f53c4f264f1cbb9ca72fdfe4608ab16b480))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 992a00d80..03dd61b03 100644 --- a/pom.xml +++ b/pom.xml @@ -95,7 +95,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.1 + 1.0.0 pom import From 90ab253bc2382c08d76cf320642021695d2d8637 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 26 Apr 2021 10:33:07 -0700 Subject: [PATCH 14/54] samples: updates samples to v1 (5 of 10) (#235) --- .../java/aiplatform/ExportModelSample.java | 14 ++--- ...xportModelTabularClassificationSample.java | 14 ++--- ...portModelVideoActionRecognitionSample.java | 14 ++--- .../GetBatchPredictionJobSample.java | 28 +++++----- .../GetHyperparameterTuningJobSample.java | 8 +-- .../main/java/aiplatform/GetModelSample.java | 20 +++---- .../aiplatform/GetTrainingPipelineSample.java | 53 ++++++------------- 7 files changed, 63 insertions(+), 88 deletions(-) diff --git a/samples/snippets/src/main/java/aiplatform/ExportModelSample.java b/samples/snippets/src/main/java/aiplatform/ExportModelSample.java index 5bf4746fe..1979c7ce1 100644 --- a/samples/snippets/src/main/java/aiplatform/ExportModelSample.java +++ b/samples/snippets/src/main/java/aiplatform/ExportModelSample.java @@ -19,13 +19,13 @@ // [START aiplatform_export_model_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExportModelRequest; -import com.google.cloud.aiplatform.v1beta1.ExportModelResponse; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; -import com.google.cloud.aiplatform.v1beta1.ModelServiceSettings; +import com.google.cloud.aiplatform.v1.ExportModelOperationMetadata; +import com.google.cloud.aiplatform.v1.ExportModelRequest; +import com.google.cloud.aiplatform.v1.ExportModelResponse; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelServiceSettings; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/samples/snippets/src/main/java/aiplatform/ExportModelTabularClassificationSample.java b/samples/snippets/src/main/java/aiplatform/ExportModelTabularClassificationSample.java index f3fedf710..9a722790e 100644 --- a/samples/snippets/src/main/java/aiplatform/ExportModelTabularClassificationSample.java +++ b/samples/snippets/src/main/java/aiplatform/ExportModelTabularClassificationSample.java @@ -19,13 +19,13 @@ // [START aiplatform_export_model_tabular_classification_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExportModelRequest; -import com.google.cloud.aiplatform.v1beta1.ExportModelResponse; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; -import com.google.cloud.aiplatform.v1beta1.ModelServiceSettings; +import com.google.cloud.aiplatform.v1.ExportModelOperationMetadata; +import com.google.cloud.aiplatform.v1.ExportModelRequest; +import com.google.cloud.aiplatform.v1.ExportModelResponse; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelServiceSettings; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java b/samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java index 1d70cd0d8..54e590085 100644 --- a/samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java +++ b/samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java @@ -18,13 +18,13 @@ // [START aiplatform_export_model_video_action_recognition_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExportModelRequest; -import com.google.cloud.aiplatform.v1beta1.ExportModelResponse; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; -import com.google.cloud.aiplatform.v1beta1.ModelServiceSettings; +import com.google.cloud.aiplatform.v1.ExportModelOperationMetadata; +import com.google.cloud.aiplatform.v1.ExportModelRequest; +import com.google.cloud.aiplatform.v1.ExportModelResponse; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelServiceSettings; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/samples/snippets/src/main/java/aiplatform/GetBatchPredictionJobSample.java b/samples/snippets/src/main/java/aiplatform/GetBatchPredictionJobSample.java index d4d04690b..4e4ba6b3e 100644 --- a/samples/snippets/src/main/java/aiplatform/GetBatchPredictionJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/GetBatchPredictionJobSample.java @@ -18,19 +18,19 @@ // [START aiplatform_get_batch_prediction_job_sample] -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJobName; -import com.google.cloud.aiplatform.v1beta1.BigQueryDestination; -import com.google.cloud.aiplatform.v1beta1.BigQuerySource; -import com.google.cloud.aiplatform.v1beta1.CompletionStats; -import com.google.cloud.aiplatform.v1beta1.GcsDestination; -import com.google.cloud.aiplatform.v1beta1.GcsSource; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; -import com.google.cloud.aiplatform.v1beta1.ResourcesConsumed; +import com.google.cloud.aiplatform.v1.BatchPredictionJob; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig; +import com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo; +import com.google.cloud.aiplatform.v1.BatchPredictionJobName; +import com.google.cloud.aiplatform.v1.BigQueryDestination; +import com.google.cloud.aiplatform.v1.BigQuerySource; +import com.google.cloud.aiplatform.v1.CompletionStats; +import com.google.cloud.aiplatform.v1.GcsDestination; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.ResourcesConsumed; import com.google.protobuf.Any; import com.google.rpc.Status; import java.io.IOException; @@ -69,8 +69,6 @@ static void getBatchPredictionJobSample(String project, String batchPredictionJo System.out.format("\tModel: %s\n", batchPredictionJob.getModel()); System.out.format("\tModel Parameters: %s\n", batchPredictionJob.getModelParameters()); - System.out.format( - "\tGenerate Explanation: %s\n", batchPredictionJob.getGenerateExplanation()); System.out.format("\tState: %s\n", batchPredictionJob.getState()); System.out.format("\tCreate Time: %s\n", batchPredictionJob.getCreateTime()); diff --git a/samples/snippets/src/main/java/aiplatform/GetHyperparameterTuningJobSample.java b/samples/snippets/src/main/java/aiplatform/GetHyperparameterTuningJobSample.java index b4d100c3c..f886bc332 100644 --- a/samples/snippets/src/main/java/aiplatform/GetHyperparameterTuningJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/GetHyperparameterTuningJobSample.java @@ -17,10 +17,10 @@ package aiplatform; // [START aiplatform_get_hyperparameter_tuning_job_sample] -import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; -import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobName; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.HyperparameterTuningJob; +import com.google.cloud.aiplatform.v1.HyperparameterTuningJobName; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; import java.io.IOException; public class GetHyperparameterTuningJobSample { diff --git a/samples/snippets/src/main/java/aiplatform/GetModelSample.java b/samples/snippets/src/main/java/aiplatform/GetModelSample.java index 66cc4fdd0..5222db4b8 100644 --- a/samples/snippets/src/main/java/aiplatform/GetModelSample.java +++ b/samples/snippets/src/main/java/aiplatform/GetModelSample.java @@ -18,16 +18,16 @@ // [START aiplatform_get_model_sample] -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.Model.ExportFormat; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; -import com.google.cloud.aiplatform.v1beta1.ModelServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.Model.ExportFormat; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredictSchemata; import java.io.IOException; public class GetModelSample { diff --git a/samples/snippets/src/main/java/aiplatform/GetTrainingPipelineSample.java b/samples/snippets/src/main/java/aiplatform/GetTrainingPipelineSample.java index c144212a8..11850291b 100644 --- a/samples/snippets/src/main/java/aiplatform/GetTrainingPipelineSample.java +++ b/samples/snippets/src/main/java/aiplatform/GetTrainingPipelineSample.java @@ -18,25 +18,21 @@ // [START aiplatform_get_training_pipeline_sample] -import com.google.cloud.aiplatform.v1beta1.DeployedModelRef; -import com.google.cloud.aiplatform.v1beta1.EnvVar; -import com.google.cloud.aiplatform.v1beta1.ExplanationMetadata; -import com.google.cloud.aiplatform.v1beta1.ExplanationParameters; -import com.google.cloud.aiplatform.v1beta1.ExplanationSpec; -import com.google.cloud.aiplatform.v1beta1.FilterSplit; -import com.google.cloud.aiplatform.v1beta1.FractionSplit; -import com.google.cloud.aiplatform.v1beta1.InputDataConfig; -import com.google.cloud.aiplatform.v1beta1.Model; -import com.google.cloud.aiplatform.v1beta1.ModelContainerSpec; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.Port; -import com.google.cloud.aiplatform.v1beta1.PredefinedSplit; -import com.google.cloud.aiplatform.v1beta1.PredictSchemata; -import com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; -import com.google.cloud.aiplatform.v1beta1.TimestampSplit; -import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; -import com.google.cloud.aiplatform.v1beta1.TrainingPipelineName; +import com.google.cloud.aiplatform.v1.DeployedModelRef; +import com.google.cloud.aiplatform.v1.EnvVar; +import com.google.cloud.aiplatform.v1.FilterSplit; +import com.google.cloud.aiplatform.v1.FractionSplit; +import com.google.cloud.aiplatform.v1.InputDataConfig; +import com.google.cloud.aiplatform.v1.Model; +import com.google.cloud.aiplatform.v1.ModelContainerSpec; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.Port; +import com.google.cloud.aiplatform.v1.PredefinedSplit; +import com.google.cloud.aiplatform.v1.PredictSchemata; +import com.google.cloud.aiplatform.v1.TimestampSplit; +import com.google.cloud.aiplatform.v1.TrainingPipeline; +import com.google.cloud.aiplatform.v1.TrainingPipelineName; import com.google.rpc.Status; import java.io.IOException; @@ -171,25 +167,6 @@ static void getTrainingPipeline(String project, String trainingPipelineId) throw System.out.format("\t\tDeployed Model Id: %s\n", deployedModelRef.getDeployedModelId()); } - ExplanationSpec explanationSpec = modelResponse.getExplanationSpec(); - System.out.println("\tExplanation Spec"); - - ExplanationParameters explanationParameters = explanationSpec.getParameters(); - System.out.println("\t\tParameters"); - - SampledShapleyAttribution sampledShapleyAttribution = - explanationParameters.getSampledShapleyAttribution(); - System.out.println("\t\tSampled Shapley Attribution"); - System.out.format("\t\t\tPath Count: %s\n", sampledShapleyAttribution.getPathCount()); - - ExplanationMetadata explanationMetadata = explanationSpec.getMetadata(); - System.out.println("\t\tMetadata"); - System.out.format("\t\t\tInput: %s\n", explanationMetadata.getInputsMap()); - System.out.format("\t\t\tOutput: %s\n", explanationMetadata.getOutputsMap()); - System.out.format( - "\t\t\tFeature Attributions Schema Uri: %s\n", - explanationMetadata.getFeatureAttributionsSchemaUri()); - Status status = trainingPipelineResponse.getError(); System.out.println("\tError"); System.out.format("\t\tCode: %s\n", status.getCode()); From e696c7a2ade91f1f9c3d81e4976312d377667b82 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 26 Apr 2021 10:48:46 -0700 Subject: [PATCH 15/54] samples: updates samples to v1 (4 of 10) (#233) --- .../DeleteBatchPredictionJobSample.java | 8 ++++---- .../DeleteDataLabelingJobSample.java | 8 ++++---- .../java/aiplatform/DeleteDatasetSample.java | 8 ++++---- .../java/aiplatform/DeleteEndpointSample.java | 8 ++++---- .../java/aiplatform/DeleteModelSample.java | 8 ++++---- .../DeleteTrainingPipelineSample.java | 8 ++++---- .../DeployModelCustomTrainedModelSample.java | 18 ++++++++--------- .../java/aiplatform/DeployModelSample.java | 20 +++++++++---------- 8 files changed, 43 insertions(+), 43 deletions(-) diff --git a/samples/snippets/src/main/java/aiplatform/DeleteBatchPredictionJobSample.java b/samples/snippets/src/main/java/aiplatform/DeleteBatchPredictionJobSample.java index c128689d7..e0675190d 100644 --- a/samples/snippets/src/main/java/aiplatform/DeleteBatchPredictionJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeleteBatchPredictionJobSample.java @@ -19,10 +19,10 @@ // [START aiplatform_delete_batch_prediction_job_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.BatchPredictionJobName; -import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.BatchPredictionJobName; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; import com.google.protobuf.Empty; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/samples/snippets/src/main/java/aiplatform/DeleteDataLabelingJobSample.java b/samples/snippets/src/main/java/aiplatform/DeleteDataLabelingJobSample.java index e9b27ccdd..b8c6b969b 100644 --- a/samples/snippets/src/main/java/aiplatform/DeleteDataLabelingJobSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeleteDataLabelingJobSample.java @@ -19,10 +19,10 @@ // [START aiplatform_delete_data_labeling_job_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.DataLabelingJobName; -import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.JobServiceClient; -import com.google.cloud.aiplatform.v1beta1.JobServiceSettings; +import com.google.cloud.aiplatform.v1.DataLabelingJobName; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.JobServiceClient; +import com.google.cloud.aiplatform.v1.JobServiceSettings; import com.google.protobuf.Empty; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/samples/snippets/src/main/java/aiplatform/DeleteDatasetSample.java b/samples/snippets/src/main/java/aiplatform/DeleteDatasetSample.java index 39ad52d0f..30af542d3 100644 --- a/samples/snippets/src/main/java/aiplatform/DeleteDatasetSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeleteDatasetSample.java @@ -19,10 +19,10 @@ // [START aiplatform_delete_dataset_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.DatasetName; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; -import com.google.cloud.aiplatform.v1beta1.DatasetServiceSettings; -import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetServiceSettings; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; import com.google.protobuf.Empty; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/samples/snippets/src/main/java/aiplatform/DeleteEndpointSample.java b/samples/snippets/src/main/java/aiplatform/DeleteEndpointSample.java index 1676b6439..5767b5888 100644 --- a/samples/snippets/src/main/java/aiplatform/DeleteEndpointSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeleteEndpointSample.java @@ -19,10 +19,10 @@ // [START aiplatform_delete_endpoint_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.EndpointName; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceClient; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceSettings; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.EndpointServiceSettings; import com.google.protobuf.Empty; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/samples/snippets/src/main/java/aiplatform/DeleteModelSample.java b/samples/snippets/src/main/java/aiplatform/DeleteModelSample.java index 0a65dabfc..f3ee72260 100644 --- a/samples/snippets/src/main/java/aiplatform/DeleteModelSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeleteModelSample.java @@ -19,10 +19,10 @@ // [START aiplatform_delete_model_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.ModelName; -import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; -import com.google.cloud.aiplatform.v1beta1.ModelServiceSettings; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelServiceSettings; import com.google.protobuf.Empty; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java b/samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java index d3819cd03..e6256c6b6 100644 --- a/samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java @@ -19,10 +19,10 @@ // [START aiplatform_delete_training_pipeline_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceClient; -import com.google.cloud.aiplatform.v1beta1.PipelineServiceSettings; -import com.google.cloud.aiplatform.v1beta1.TrainingPipelineName; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.cloud.aiplatform.v1.PipelineServiceSettings; +import com.google.cloud.aiplatform.v1.TrainingPipelineName; import com.google.protobuf.Empty; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/samples/snippets/src/main/java/aiplatform/DeployModelCustomTrainedModelSample.java b/samples/snippets/src/main/java/aiplatform/DeployModelCustomTrainedModelSample.java index 471961b69..254863763 100644 --- a/samples/snippets/src/main/java/aiplatform/DeployModelCustomTrainedModelSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeployModelCustomTrainedModelSample.java @@ -18,15 +18,15 @@ // [START aiplatform_deploy_model_custom_trained_model_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.DedicatedResources; -import com.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.DeployModelResponse; -import com.google.cloud.aiplatform.v1beta1.DeployedModel; -import com.google.cloud.aiplatform.v1beta1.EndpointName; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceClient; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceSettings; -import com.google.cloud.aiplatform.v1beta1.MachineSpec; -import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1.DedicatedResources; +import com.google.cloud.aiplatform.v1.DeployModelOperationMetadata; +import com.google.cloud.aiplatform.v1.DeployModelResponse; +import com.google.cloud.aiplatform.v1.DeployedModel; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.EndpointServiceSettings; +import com.google.cloud.aiplatform.v1.MachineSpec; +import com.google.cloud.aiplatform.v1.ModelName; import java.io.IOException; import java.util.HashMap; import java.util.Map; diff --git a/samples/snippets/src/main/java/aiplatform/DeployModelSample.java b/samples/snippets/src/main/java/aiplatform/DeployModelSample.java index d14d4b7d5..f950afd96 100644 --- a/samples/snippets/src/main/java/aiplatform/DeployModelSample.java +++ b/samples/snippets/src/main/java/aiplatform/DeployModelSample.java @@ -19,16 +19,16 @@ // [START aiplatform_deploy_model_sample] import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.aiplatform.v1beta1.AutomaticResources; -import com.google.cloud.aiplatform.v1beta1.DedicatedResources; -import com.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; -import com.google.cloud.aiplatform.v1beta1.DeployModelResponse; -import com.google.cloud.aiplatform.v1beta1.DeployedModel; -import com.google.cloud.aiplatform.v1beta1.EndpointName; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceClient; -import com.google.cloud.aiplatform.v1beta1.EndpointServiceSettings; -import com.google.cloud.aiplatform.v1beta1.MachineSpec; -import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1.AutomaticResources; +import com.google.cloud.aiplatform.v1.DedicatedResources; +import com.google.cloud.aiplatform.v1.DeployModelOperationMetadata; +import com.google.cloud.aiplatform.v1.DeployModelResponse; +import com.google.cloud.aiplatform.v1.DeployedModel; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.EndpointServiceSettings; +import com.google.cloud.aiplatform.v1.MachineSpec; +import com.google.cloud.aiplatform.v1.ModelName; import java.io.IOException; import java.util.HashMap; import java.util.Map; From 5659cebd87fd1ccd730a817049c05865b8ce240c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Apr 2021 01:26:39 +0200 Subject: [PATCH 16/54] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.16 (#334) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `1.113.15` -> `1.113.16` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/compatibility-slim/1.113.15)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/confidence-slim/1.113.15)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v1.113.16`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​111316-httpswwwgithubcomgoogleapisjava-storagecomparev111315v111316-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.113.15...v1.113.16)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f7041c042..9ab945686 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.15 + 1.113.16 com.google.protobuf diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9d0524d32..5a92e6637 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.15 + 1.113.16 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 33f6e4a4b..e4aadf3bc 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -33,7 +33,7 @@ com.google.cloud google-cloud-storage - 1.113.15 + 1.113.16 com.google.protobuf From fee522f6184de7ae89c1cc471142fbab44116aff Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Apr 2021 07:54:04 -0700 Subject: [PATCH 17/54] chore: update gax-java dependency to 1.62 (#332) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0aaef842-1931-4de0-9c62-bc70db996d0d/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 368532697 Source-Link: https://github.com/googleapis/googleapis/commit/a8615e2e76d55d5774b9b504de625edc8a820fea PiperOrigin-RevId: 363921711 Source-Link: https://github.com/googleapis/googleapis/commit/4ea5a2764a08f86676d0e853dbb01c4e9868a22b PiperOrigin-RevId: 362856902 Source-Link: https://github.com/googleapis/googleapis/commit/1305ca41d554eb0725237561e34129373bb8cbc1 PiperOrigin-RevId: 361377784 Source-Link: https://github.com/googleapis/googleapis/commit/0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 PiperOrigin-RevId: 360805639 Source-Link: https://github.com/googleapis/googleapis/commit/3befd26ca55723d3e8111909331eac1249837987 PiperOrigin-RevId: 360248513 Source-Link: https://github.com/googleapis/googleapis/commit/a389671476b5fe2b1c63bcc115515a76c273ceba PiperOrigin-RevId: 360235141 Source-Link: https://github.com/googleapis/googleapis/commit/d1ec8a4330fdc131e49637ed34bb031695a89060 PiperOrigin-RevId: 359781040 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 PiperOrigin-RevId: 358516065 Source-Link: https://github.com/googleapis/googleapis/commit/af8f71dae961ee036a0ac52a1965270149a6b2c9 feat: remove unsupported accelerator types feat: add aiplatform API Vizier service fix: configuring timeouts for aiplatform v1 methods --- .../aiplatform/v1/DatasetServiceClient.java | 30 +- .../aiplatform/v1/DatasetServiceSettings.java | 2 +- .../aiplatform/v1/EndpointServiceClient.java | 11 +- .../v1/EndpointServiceSettings.java | 2 +- .../cloud/aiplatform/v1/JobServiceClient.java | 35 +- .../aiplatform/v1/JobServiceSettings.java | 2 +- .../aiplatform/v1/MigrationServiceClient.java | 9 +- .../v1/MigrationServiceSettings.java | 2 +- .../aiplatform/v1/ModelServiceClient.java | 29 +- .../aiplatform/v1/ModelServiceSettings.java | 2 +- .../aiplatform/v1/PipelineServiceClient.java | 10 +- .../v1/PipelineServiceSettings.java | 2 +- .../v1/PredictionServiceClient.java | 2 +- .../v1/PredictionServiceSettings.java | 2 +- .../v1/SpecialistPoolServiceClient.java | 9 +- .../v1/SpecialistPoolServiceSettings.java | 2 +- .../cloud/aiplatform/v1/gapic_metadata.json | 261 + .../cloud/aiplatform/v1/package-info.java | 2 +- .../v1/stub/DatasetServiceStub.java | 2 +- .../v1/stub/DatasetServiceStubSettings.java | 71 +- .../v1/stub/EndpointServiceStub.java | 2 +- .../v1/stub/EndpointServiceStubSettings.java | 59 +- .../GrpcDatasetServiceCallableFactory.java | 2 +- .../v1/stub/GrpcDatasetServiceStub.java | 2 +- .../GrpcEndpointServiceCallableFactory.java | 2 +- .../v1/stub/GrpcEndpointServiceStub.java | 2 +- .../stub/GrpcJobServiceCallableFactory.java | 2 +- .../v1/stub/GrpcJobServiceStub.java | 2 +- .../GrpcMigrationServiceCallableFactory.java | 2 +- .../v1/stub/GrpcMigrationServiceStub.java | 2 +- .../stub/GrpcModelServiceCallableFactory.java | 2 +- .../v1/stub/GrpcModelServiceStub.java | 2 +- .../GrpcPipelineServiceCallableFactory.java | 2 +- .../v1/stub/GrpcPipelineServiceStub.java | 2 +- .../GrpcPredictionServiceCallableFactory.java | 2 +- .../v1/stub/GrpcPredictionServiceStub.java | 2 +- ...cSpecialistPoolServiceCallableFactory.java | 2 +- .../stub/GrpcSpecialistPoolServiceStub.java | 2 +- .../aiplatform/v1/stub/JobServiceStub.java | 2 +- .../v1/stub/JobServiceStubSettings.java | 111 +- .../v1/stub/MigrationServiceStub.java | 2 +- .../v1/stub/MigrationServiceStubSettings.java | 2 +- .../aiplatform/v1/stub/ModelServiceStub.java | 2 +- .../v1/stub/ModelServiceStubSettings.java | 67 +- .../v1/stub/PipelineServiceStub.java | 2 +- .../v1/stub/PipelineServiceStubSettings.java | 39 +- .../v1/stub/PredictionServiceStub.java | 2 +- .../stub/PredictionServiceStubSettings.java | 20 +- .../v1/stub/SpecialistPoolServiceStub.java | 2 +- .../SpecialistPoolServiceStubSettings.java | 47 +- .../v1beta1/DatasetServiceClient.java | 38 +- .../v1beta1/DatasetServiceSettings.java | 2 +- .../v1beta1/EndpointServiceClient.java | 10 +- .../v1beta1/EndpointServiceSettings.java | 2 +- .../aiplatform/v1beta1/JobServiceClient.java | 71 +- .../v1beta1/JobServiceSettings.java | 2 +- .../v1beta1/MigrationServiceClient.java | 9 +- .../v1beta1/MigrationServiceSettings.java | 2 +- .../v1beta1/ModelServiceClient.java | 40 +- .../v1beta1/ModelServiceSettings.java | 2 +- .../v1beta1/PipelineServiceClient.java | 22 +- .../v1beta1/PipelineServiceSettings.java | 2 +- .../v1beta1/PredictionServiceClient.java | 2 +- .../v1beta1/PredictionServiceSettings.java | 2 +- .../v1beta1/SpecialistPoolServiceClient.java | 13 +- .../SpecialistPoolServiceSettings.java | 2 +- .../v1beta1/VizierServiceClient.java | 1714 +++++++ .../v1beta1/VizierServiceSettings.java | 371 ++ .../aiplatform/v1beta1/gapic_metadata.json | 318 ++ .../aiplatform/v1beta1/package-info.java | 19 +- .../v1beta1/stub/DatasetServiceStub.java | 2 +- .../stub/DatasetServiceStubSettings.java | 2 +- .../v1beta1/stub/EndpointServiceStub.java | 2 +- .../stub/EndpointServiceStubSettings.java | 2 +- .../GrpcDatasetServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcDatasetServiceStub.java | 2 +- .../GrpcEndpointServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcEndpointServiceStub.java | 2 +- .../stub/GrpcJobServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcJobServiceStub.java | 2 +- .../GrpcMigrationServiceCallableFactory.java | 2 +- .../stub/GrpcMigrationServiceStub.java | 2 +- .../stub/GrpcModelServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcModelServiceStub.java | 2 +- .../GrpcPipelineServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcPipelineServiceStub.java | 2 +- .../GrpcPredictionServiceCallableFactory.java | 2 +- .../stub/GrpcPredictionServiceStub.java | 2 +- ...cSpecialistPoolServiceCallableFactory.java | 2 +- .../stub/GrpcSpecialistPoolServiceStub.java | 2 +- .../GrpcVizierServiceCallableFactory.java | 115 + .../v1beta1/stub/GrpcVizierServiceStub.java | 688 +++ .../v1beta1/stub/JobServiceStub.java | 2 +- .../v1beta1/stub/JobServiceStubSettings.java | 2 +- .../v1beta1/stub/MigrationServiceStub.java | 2 +- .../stub/MigrationServiceStubSettings.java | 2 +- .../v1beta1/stub/ModelServiceStub.java | 2 +- .../stub/ModelServiceStubSettings.java | 2 +- .../v1beta1/stub/PipelineServiceStub.java | 2 +- .../stub/PipelineServiceStubSettings.java | 2 +- .../v1beta1/stub/PredictionServiceStub.java | 2 +- .../stub/PredictionServiceStubSettings.java | 2 +- .../stub/SpecialistPoolServiceStub.java | 2 +- .../SpecialistPoolServiceStubSettings.java | 2 +- .../v1beta1/stub/VizierServiceStub.java | 156 + .../stub/VizierServiceStubSettings.java | 850 ++++ .../v1/DatasetServiceClientTest.java | 2 +- .../v1/EndpointServiceClientTest.java | 2 +- .../aiplatform/v1/JobServiceClientTest.java | 2 +- .../v1/MigrationServiceClientTest.java | 2 +- .../aiplatform/v1/MockDatasetService.java | 2 +- .../aiplatform/v1/MockDatasetServiceImpl.java | 42 +- .../aiplatform/v1/MockEndpointService.java | 2 +- .../v1/MockEndpointServiceImpl.java | 30 +- .../cloud/aiplatform/v1/MockJobService.java | 2 +- .../aiplatform/v1/MockJobServiceImpl.java | 82 +- .../aiplatform/v1/MockMigrationService.java | 2 +- .../v1/MockMigrationServiceImpl.java | 10 +- .../cloud/aiplatform/v1/MockModelService.java | 2 +- .../aiplatform/v1/MockModelServiceImpl.java | 42 +- .../aiplatform/v1/MockPipelineService.java | 2 +- .../v1/MockPipelineServiceImpl.java | 22 +- .../aiplatform/v1/MockPredictionService.java | 2 +- .../v1/MockPredictionServiceImpl.java | 6 +- .../v1/MockSpecialistPoolService.java | 2 +- .../v1/MockSpecialistPoolServiceImpl.java | 22 +- .../aiplatform/v1/ModelServiceClientTest.java | 2 +- .../v1/PipelineServiceClientTest.java | 2 +- .../v1/PredictionServiceClientTest.java | 2 +- .../v1/SpecialistPoolServiceClientTest.java | 2 +- .../v1beta1/DatasetServiceClientTest.java | 2 +- .../v1beta1/EndpointServiceClientTest.java | 2 +- .../v1beta1/JobServiceClientTest.java | 2 +- .../v1beta1/MigrationServiceClientTest.java | 2 +- .../v1beta1/MockDatasetService.java | 2 +- .../v1beta1/MockDatasetServiceImpl.java | 42 +- .../v1beta1/MockEndpointService.java | 2 +- .../v1beta1/MockEndpointServiceImpl.java | 30 +- .../aiplatform/v1beta1/MockJobService.java | 2 +- .../v1beta1/MockJobServiceImpl.java | 82 +- .../v1beta1/MockMigrationService.java | 2 +- .../v1beta1/MockMigrationServiceImpl.java | 10 +- .../aiplatform/v1beta1/MockModelService.java | 2 +- .../v1beta1/MockModelServiceImpl.java | 42 +- .../v1beta1/MockPipelineService.java | 2 +- .../v1beta1/MockPipelineServiceImpl.java | 22 +- .../v1beta1/MockPredictionService.java | 2 +- .../v1beta1/MockPredictionServiceImpl.java | 10 +- .../v1beta1/MockSpecialistPoolService.java | 2 +- .../MockSpecialistPoolServiceImpl.java | 22 +- .../aiplatform/v1beta1/MockVizierService.java | 59 + .../v1beta1/MockVizierServiceImpl.java | 369 ++ .../v1beta1/ModelServiceClientTest.java | 2 +- .../v1beta1/PipelineServiceClientTest.java | 2 +- .../v1beta1/PredictionServiceClientTest.java | 2 +- .../SpecialistPoolServiceClientTest.java | 2 +- .../v1beta1/VizierServiceClientTest.java | 1188 +++++ .../aiplatform/v1/DatasetServiceGrpc.java | 121 +- .../aiplatform/v1/EndpointServiceGrpc.java | 89 +- .../cloud/aiplatform/v1/JobServiceGrpc.java | 230 +- .../aiplatform/v1/MigrationServiceGrpc.java | 27 +- .../cloud/aiplatform/v1/ModelServiceGrpc.java | 120 +- .../aiplatform/v1/PipelineServiceGrpc.java | 60 +- .../aiplatform/v1/PredictionServiceGrpc.java | 17 +- .../v1/SpecialistPoolServiceGrpc.java | 60 +- .../v1beta1/DatasetServiceGrpc.java | 121 +- .../v1beta1/EndpointServiceGrpc.java | 89 +- .../aiplatform/v1beta1/JobServiceGrpc.java | 230 +- .../v1beta1/MigrationServiceGrpc.java | 27 +- .../aiplatform/v1beta1/ModelServiceGrpc.java | 120 +- .../v1beta1/PipelineServiceGrpc.java | 60 +- .../v1beta1/PredictionServiceGrpc.java | 29 +- .../v1beta1/SpecialistPoolServiceGrpc.java | 60 +- .../aiplatform/v1beta1/VizierServiceGrpc.java | 2051 ++++++++ .../aiplatform/v1/AnnotatedDatasetName.java | 2 +- .../cloud/aiplatform/v1/AnnotationName.java | 2 +- .../aiplatform/v1/AnnotationSpecName.java | 2 +- .../aiplatform/v1/BatchPredictionJobName.java | 2 +- .../cloud/aiplatform/v1/CustomJobName.java | 2 +- .../cloud/aiplatform/v1/DataItemName.java | 2 +- .../aiplatform/v1/DataLabelingJobName.java | 2 +- .../cloud/aiplatform/v1/DatasetName.java | 2 +- .../cloud/aiplatform/v1/EndpointName.java | 2 +- .../v1/HyperparameterTuningJobName.java | 2 +- .../cloud/aiplatform/v1/LocationName.java | 2 +- .../aiplatform/v1/ModelEvaluationName.java | 2 +- .../v1/ModelEvaluationSliceName.java | 2 +- .../google/cloud/aiplatform/v1/ModelName.java | 2 +- .../aiplatform/v1/SpecialistPoolName.java | 2 +- .../aiplatform/v1/TrainingPipelineName.java | 2 +- .../google/cloud/aiplatform/v1/TrialName.java | 2 +- .../cloud/aiplatform/v1/VersionName.java | 2 +- .../clirr-ignored-differences.xml | 10 + .../aiplatform/v1beta1/AcceleratorType.java | 44 - .../v1beta1/AcceleratorTypeProto.java | 11 +- .../v1beta1/ActiveLearningConfig.java | 4 +- .../v1beta1/AddTrialMeasurementRequest.java | 973 ++++ .../AddTrialMeasurementRequestOrBuilder.java | 99 + .../v1beta1/AnnotatedDatasetName.java | 2 +- .../cloud/aiplatform/v1beta1/Annotation.java | 36 +- .../aiplatform/v1beta1/AnnotationName.java | 2 +- .../v1beta1/AnnotationOrBuilder.java | 14 +- .../aiplatform/v1beta1/AnnotationSpec.java | 14 +- .../v1beta1/AnnotationSpecName.java | 2 +- .../v1beta1/AnnotationSpecOrBuilder.java | 4 +- .../v1beta1/AutomaticResources.java | 16 +- .../v1beta1/AutomaticResourcesOrBuilder.java | 4 +- .../v1beta1/AutoscalingMetricSpec.java | 771 +++ .../AutoscalingMetricSpecOrBuilder.java | 74 + ...atchMigrateResourcesOperationMetadata.java | 50 +- ...teResourcesOperationMetadataOrBuilder.java | 10 +- .../v1beta1/BatchPredictionJob.java | 16 +- .../v1beta1/BatchPredictionJobName.java | 2 +- .../v1beta1/BatchPredictionJobOrBuilder.java | 4 +- .../v1beta1/BigQueryDestination.java | 42 +- .../v1beta1/BigQueryDestinationOrBuilder.java | 12 +- ...CheckTrialEarlyStoppingStateMetatdata.java | 1127 +++++ ...lEarlyStoppingStateMetatdataOrBuilder.java | 111 + .../CheckTrialEarlyStoppingStateRequest.java | 682 +++ ...ialEarlyStoppingStateRequestOrBuilder.java | 58 + .../CheckTrialEarlyStoppingStateResponse.java | 565 +++ ...alEarlyStoppingStateResponseOrBuilder.java | 38 + .../v1beta1/CompleteTrialRequest.java | 1271 +++++ .../CompleteTrialRequestOrBuilder.java | 146 + .../v1beta1/ContainerRegistryDestination.java | 4 +- .../v1beta1/CreateStudyRequest.java | 957 ++++ .../v1beta1/CreateStudyRequestOrBuilder.java | 97 + .../v1beta1/CreateTrialRequest.java | 957 ++++ .../v1beta1/CreateTrialRequestOrBuilder.java | 97 + .../aiplatform/v1beta1/CustomJobName.java | 2 +- .../aiplatform/v1beta1/CustomJobSpec.java | 46 + .../v1beta1/CustomJobSpecOrBuilder.java | 10 + .../cloud/aiplatform/v1beta1/DataItem.java | 14 +- .../aiplatform/v1beta1/DataItemName.java | 2 +- .../aiplatform/v1beta1/DataItemOrBuilder.java | 4 +- .../aiplatform/v1beta1/DataLabelingJob.java | 72 +- .../v1beta1/DataLabelingJobName.java | 2 +- .../v1beta1/DataLabelingJobOrBuilder.java | 18 +- .../cloud/aiplatform/v1beta1/DatasetName.java | 2 +- .../v1beta1/DedicatedResources.java | 952 +++- .../v1beta1/DedicatedResourcesOrBuilder.java | 146 +- .../v1beta1/DeleteStudyRequest.java | 658 +++ .../v1beta1/DeleteStudyRequestOrBuilder.java | 56 + .../v1beta1/DeleteTrialRequest.java | 665 +++ .../v1beta1/DeleteTrialRequestOrBuilder.java | 58 + .../aiplatform/v1beta1/DeployedModel.java | 86 +- .../v1beta1/DeployedModelOrBuilder.java | 22 +- .../aiplatform/v1beta1/EndpointName.java | 2 +- .../v1beta1/ExplanationMetadata.java | 74 +- .../v1beta1/ExplanationMetadataOrBuilder.java | 20 +- .../aiplatform/v1beta1/ExplanationProto.java | 125 +- .../aiplatform/v1beta1/GetStudyRequest.java | 657 +++ .../v1beta1/GetStudyRequestOrBuilder.java | 56 + .../aiplatform/v1beta1/GetTrialRequest.java | 664 +++ .../v1beta1/GetTrialRequestOrBuilder.java | 58 + .../v1beta1/HyperparameterTuningJobName.java | 2 +- .../aiplatform/v1beta1/ImportDataConfig.java | 22 +- .../v1beta1/ImportDataConfigOrBuilder.java | 10 +- .../cloud/aiplatform/v1beta1/JobState.java | 22 + .../aiplatform/v1beta1/JobStateProto.java | 11 +- .../ListBatchPredictionJobsRequest.java | 7 + ...stBatchPredictionJobsRequestOrBuilder.java | 2 + .../ListBatchPredictionJobsResponse.java | 14 +- ...tBatchPredictionJobsResponseOrBuilder.java | 4 +- .../v1beta1/ListCustomJobsResponse.java | 14 +- .../ListCustomJobsResponseOrBuilder.java | 4 +- .../v1beta1/ListEndpointsResponse.java | 14 +- .../ListEndpointsResponseOrBuilder.java | 4 +- .../ListHyperparameterTuningJobsResponse.java | 14 +- ...rparameterTuningJobsResponseOrBuilder.java | 4 +- .../v1beta1/ListOptimalTrialsRequest.java | 654 +++ .../ListOptimalTrialsRequestOrBuilder.java | 54 + .../v1beta1/ListOptimalTrialsResponse.java | 1029 ++++ .../ListOptimalTrialsResponseOrBuilder.java | 92 + .../v1beta1/ListStudiesRequest.java | 938 ++++ .../v1beta1/ListStudiesRequestOrBuilder.java | 97 + .../v1beta1/ListStudiesResponse.java | 1143 +++++ .../v1beta1/ListStudiesResponseOrBuilder.java | 106 + .../ListTrainingPipelinesResponse.java | 14 +- ...istTrainingPipelinesResponseOrBuilder.java | 4 +- .../aiplatform/v1beta1/ListTrialsRequest.java | 938 ++++ .../v1beta1/ListTrialsRequestOrBuilder.java | 97 + .../v1beta1/ListTrialsResponse.java | 1143 +++++ .../v1beta1/ListTrialsResponseOrBuilder.java | 106 + .../aiplatform/v1beta1/LocationName.java | 2 +- .../v1beta1/LookupStudyRequest.java | 837 ++++ .../v1beta1/LookupStudyRequestOrBuilder.java | 81 + .../v1beta1/MachineResourcesProto.java | 48 +- .../v1beta1/MigratableResource.java | 60 +- .../v1beta1/MigratableResourceOrBuilder.java | 15 +- .../cloud/aiplatform/v1beta1/Model.java | 162 +- .../v1beta1/ModelContainerSpec.java | 35 +- .../v1beta1/ModelContainerSpecOrBuilder.java | 10 +- .../v1beta1/ModelEvaluationName.java | 2 +- .../v1beta1/ModelEvaluationSliceName.java | 2 +- .../cloud/aiplatform/v1beta1/ModelName.java | 2 +- .../aiplatform/v1beta1/ModelOrBuilder.java | 40 +- .../aiplatform/v1beta1/PredictSchemata.java | 14 +- .../v1beta1/PredictSchemataOrBuilder.java | 4 +- .../aiplatform/v1beta1/PythonPackageSpec.java | 70 +- .../v1beta1/PythonPackageSpecOrBuilder.java | 20 +- .../aiplatform/v1beta1/SampleConfig.java | 14 +- .../v1beta1/SampleConfigOrBuilder.java | 4 +- .../SearchMigratableResourcesRequest.java | 14 +- ...chMigratableResourcesRequestOrBuilder.java | 4 +- .../v1beta1/SpecialistPoolName.java | 2 +- .../aiplatform/v1beta1/StopTrialRequest.java | 664 +++ .../v1beta1/StopTrialRequestOrBuilder.java | 58 + .../cloud/aiplatform/v1beta1/Study.java | 1946 ++++++++ .../cloud/aiplatform/v1beta1/StudyName.java | 223 + .../aiplatform/v1beta1/StudyOrBuilder.java | 212 + .../cloud/aiplatform/v1beta1/StudyProto.java | 292 +- .../cloud/aiplatform/v1beta1/StudySpec.java | 4331 +++++++++++++++-- .../v1beta1/StudySpecOrBuilder.java | 128 + .../v1beta1/SuggestTrialsMetadata.java | 944 ++++ .../SuggestTrialsMetadataOrBuilder.java | 92 + .../v1beta1/SuggestTrialsRequest.java | 948 ++++ .../SuggestTrialsRequestOrBuilder.java | 100 + .../v1beta1/SuggestTrialsResponse.java | 1638 +++++++ .../SuggestTrialsResponseOrBuilder.java | 172 + .../v1beta1/TrainingPipelineName.java | 2 +- .../cloud/aiplatform/v1beta1/Trial.java | 179 + .../cloud/aiplatform/v1beta1/TrialName.java | 2 +- .../aiplatform/v1beta1/TrialOrBuilder.java | 25 + .../cloud/aiplatform/v1beta1/VersionName.java | 2 +- .../v1beta1/VizierServiceProto.java | 498 ++ .../aiplatform/v1beta1/accelerator_type.proto | 8 +- .../cloud/aiplatform/v1beta1/annotation.proto | 7 +- .../aiplatform/v1beta1/annotation_spec.proto | 4 +- .../v1beta1/batch_prediction_job.proto | 7 +- .../aiplatform/v1beta1/completion_stats.proto | 2 +- .../cloud/aiplatform/v1beta1/custom_job.proto | 14 +- .../cloud/aiplatform/v1beta1/data_item.proto | 5 +- .../v1beta1/data_labeling_job.proto | 12 +- .../cloud/aiplatform/v1beta1/dataset.proto | 4 +- .../aiplatform/v1beta1/dataset_service.proto | 4 +- .../v1beta1/deployed_model_ref.proto | 2 +- .../aiplatform/v1beta1/encryption_spec.proto | 2 +- .../cloud/aiplatform/v1beta1/endpoint.proto | 10 +- .../aiplatform/v1beta1/endpoint_service.proto | 4 +- .../cloud/aiplatform/v1beta1/env_var.proto | 2 +- .../aiplatform/v1beta1/explanation.proto | 3 +- .../v1beta1/explanation_metadata.proto | 8 +- .../v1beta1/hyperparameter_tuning_job.proto | 2 +- .../google/cloud/aiplatform/v1beta1/io.proto | 10 +- .../aiplatform/v1beta1/job_service.proto | 19 +- .../cloud/aiplatform/v1beta1/job_state.proto | 5 +- .../v1beta1/machine_resources.proto | 49 +- .../manual_batch_tuning_parameters.proto | 2 +- .../v1beta1/migratable_resource.proto | 8 +- .../v1beta1/migration_service.proto | 9 +- .../cloud/aiplatform/v1beta1/model.proto | 27 +- .../aiplatform/v1beta1/model_evaluation.proto | 2 +- .../v1beta1/model_evaluation_slice.proto | 2 +- .../aiplatform/v1beta1/model_service.proto | 5 +- .../cloud/aiplatform/v1beta1/operation.proto | 2 +- .../aiplatform/v1beta1/pipeline_service.proto | 7 +- .../aiplatform/v1beta1/pipeline_state.proto | 2 +- .../v1beta1/prediction_service.proto | 2 +- .../aiplatform/v1beta1/specialist_pool.proto | 2 +- .../v1beta1/specialist_pool_service.proto | 4 +- .../cloud/aiplatform/v1beta1/study.proto | 122 +- .../v1beta1/training_pipeline.proto | 7 +- .../v1beta1/user_action_reference.proto | 3 +- .../aiplatform/v1beta1/vizier_service.proto | 502 ++ synth.metadata | 81 +- 366 files changed, 42808 insertions(+), 2559 deletions(-) create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java create mode 100644 google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java create mode 100644 google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java create mode 100644 google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java create mode 100644 grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpecOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdataOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponseOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponseOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponseOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponseOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadataOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponseOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vizier_service.proto 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..d67aaf114 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. @@ -575,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()) {
@@ -1089,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()) {
@@ -1333,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/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..4da852c9b 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);
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..a30ab7741 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.
@@ -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()) {
@@ -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);
@@ -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);
@@ -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);
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..6fb885d8c 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.
@@ -299,6 +299,13 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    *
    * 
{@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);
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..58b5196b1 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.
@@ -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()) {
@@ -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);
@@ -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..6a9d35944 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.
@@ -501,6 +501,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);
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..d63328049 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.
@@ -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..48b58c7ae 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.
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..e4fe59a54 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.
@@ -576,6 +576,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 +1099,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 +1142,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 +1169,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 +1245,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 +1273,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 +1352,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..4f29636c3 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);
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/JobServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java
index 3512c29cc..71fb7e578 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.
@@ -471,6 +471,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 +855,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 +881,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 +1063,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 +1108,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 +1135,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 +1238,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 +1264,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 +1450,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 +1478,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 +1667,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 +1712,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 +1740,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 +1858,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 +1896,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 +2109,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 +2135,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 +2318,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 +2362,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 +2389,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 +2501,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 +2536,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/v1beta1/JobServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java index 643c8a2db..57d3aa490 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. 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..822b39310 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. @@ -300,6 +300,13 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( * *

{@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);
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..71ad9a1c6 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.
@@ -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()) {
@@ -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..661568cb8 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.
@@ -293,7 +293,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 +319,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 +502,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 +546,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 +573,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 +686,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 +722,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/v1beta1/PipelineServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java index 4f1e9d135..65019b2b9 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. 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/VizierServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java
new file mode 100644
index 000000000..42918fa17
--- /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: Cloud AI Platform 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 AI Platform 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 AI Platform 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 AI Platform 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..372599b86 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -0,0 +1,318 @@ +{ + "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"] + } + } + } + } + }, + "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": { + "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"] + } + } + } + } + }, + "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..0a38b79f5 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. @@ -131,6 +131,23 @@ * SpecialistPool response = specialistPoolServiceClient.getSpecialistPool(name); * } * }

+ * + *

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

Service Description: Cloud AI Platform 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/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/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..dd9da51db 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. 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..a389043c5 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. 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/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/JobServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java index 35779a161..2ac81c091 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. 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..b7a1acf9d 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. 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..f382a2748 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. 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..43cc6bbbf 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. 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..0d1e1c35a 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. 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..27f9ca1fb 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. diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java index 3a30e42df..204d16d02 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/stub/SpecialistPoolServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java index 5dbb99c4b..de8ec4051 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java @@ -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/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..31594d363 --- /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_7_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_7_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_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .getStudySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .listStudiesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .deleteStudySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .lookupStudySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .suggestTrialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .createTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .getTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .listTrialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .addTrialMeasurementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .completeTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .deleteTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .checkTrialEarlyStoppingStateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .stopTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .listOptimalTrialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .suggestTrialsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_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_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_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/JobServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java index 223e8d0b2..43c73e659 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. 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/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..ce0ae71a9 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,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/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..ff55c10c1 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,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/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/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..82a8cf656 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. 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/VizierServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java new file mode 100644 index 000000000..4aae693f6 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java @@ -0,0 +1,1188 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .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()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .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()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .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()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .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()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .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()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .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()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .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/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..61c1cfee4 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,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; /** * @@ -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))) @@ -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); @@ -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); } } @@ -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..2f2c725f7 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,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; /** * @@ -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); } /** @@ -220,7 +216,8 @@ public void searchMigratableResources( 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))) @@ -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); @@ -293,7 +290,7 @@ public void searchMigratableResources( 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); @@ -332,7 +329,7 @@ protected MigrationServiceBlockingStub build( 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); } @@ -346,7 +343,7 @@ protected MigrationServiceBlockingStub build( */ 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); } } @@ -384,7 +381,7 @@ protected MigrationServiceFutureStub build( 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); } @@ -398,7 +395,7 @@ protected MigrationServiceFutureStub build( */ 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..66b55e5ec 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,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; /** * @@ -550,7 +545,8 @@ public abstract static class ModelServiceImplBase implements io.grpc.BindableSer 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>( @@ -780,7 +783,7 @@ protected ModelServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions ca 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); @@ -965,7 +968,8 @@ protected ModelServiceBlockingStub build( */ 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); } } @@ -1114,7 +1123,7 @@ protected ModelServiceFutureStub build( */ 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..4867ac532 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,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; /** * @@ -343,7 +338,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 +353,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 +368,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 +382,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 +405,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 +414,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))) @@ -479,7 +479,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 +496,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 +513,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 +529,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 +554,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); @@ -590,7 +590,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 +603,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 +616,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 +629,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 +651,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); } } @@ -687,7 +687,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 +701,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 +715,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 +729,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 +752,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/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/JobServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java index cce7bc8da..227f465db 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,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; /** * @@ -1071,7 +1066,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 +1081,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 +1096,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 +1110,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 +1133,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 +1148,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 +1163,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 +1179,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 +1193,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 +1207,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 +1222,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 +1237,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 +1253,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 +1267,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 +1290,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 +1306,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 +1321,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 +1337,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 +1352,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 +1374,8 @@ 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); } @java.lang.Override @@ -1368,135 +1383,135 @@ 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))) @@ -1533,7 +1548,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 +1565,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 +1582,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 +1598,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 +1623,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 +1640,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 +1657,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 +1675,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 +1691,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 +1707,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 +1724,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); @@ -1726,7 +1741,7 @@ public void getHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1744,7 +1759,7 @@ public void listHyperparameterTuningJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListHyperparameterTuningJobsMethod(), getCallOptions()), request, responseObserver); @@ -1760,7 +1775,7 @@ public void listHyperparameterTuningJobs( public void deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1785,7 +1800,7 @@ public void deleteHyperparameterTuningJob( public void cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1803,7 +1818,7 @@ public void createBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1820,7 +1835,7 @@ public void getBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1838,7 +1853,7 @@ public void listBatchPredictionJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListBatchPredictionJobsMethod(), getCallOptions()), request, responseObserver); @@ -1855,7 +1870,7 @@ public void listBatchPredictionJobs( public void deleteBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1879,7 +1894,7 @@ public void deleteBatchPredictionJob( public void cancelBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1915,7 +1930,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 +1943,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 +1956,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 +1969,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 +1991,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 +2004,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 +2017,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 +2030,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 +2043,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 +2056,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 +2070,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 +2083,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 +2097,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 +2110,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 +2132,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 +2146,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 +2159,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 +2173,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 +2187,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,7 +2208,7 @@ 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); } } @@ -2222,7 +2242,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 +2256,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 +2270,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 +2283,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 +2305,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 +2320,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 +2334,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 +2349,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 +2363,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 +2377,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 +2392,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 +2408,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 +2423,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 +2437,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 +2461,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 +2478,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 +2493,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 +2508,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 +2523,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,7 +2545,7 @@ 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); } } 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..7067a4fa2 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,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; /** * @@ -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); } /** @@ -220,7 +216,8 @@ public void searchMigratableResources( 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))) @@ -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); @@ -293,7 +290,7 @@ public void searchMigratableResources( 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); @@ -332,7 +329,7 @@ protected MigrationServiceBlockingStub build( 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); } @@ -346,7 +343,7 @@ protected MigrationServiceBlockingStub build( */ 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); } } @@ -384,7 +381,7 @@ protected MigrationServiceFutureStub build( 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); } @@ -399,7 +396,7 @@ protected MigrationServiceFutureStub build( 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..1d68d4fcc 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,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; /** * @@ -561,7 +556,8 @@ public abstract static class ModelServiceImplBase implements io.grpc.BindableSer 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>( @@ -792,7 +795,7 @@ protected ModelServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions ca 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); @@ -978,7 +981,8 @@ protected ModelServiceBlockingStub build( */ 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); } } @@ -1127,7 +1136,7 @@ protected ModelServiceFutureStub build( */ 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..d0b5e6fa8 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,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; /** * @@ -348,7 +343,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 +358,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 +374,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 +388,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 +411,8 @@ 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); } @java.lang.Override @@ -420,34 +420,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.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))) @@ -485,7 +485,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 +502,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 +520,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 +536,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,7 +561,7 @@ 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); @@ -597,7 +597,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 +610,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 +623,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 +636,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,7 +658,7 @@ 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); } } @@ -694,7 +694,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 +709,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 +724,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 +738,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,7 +761,7 @@ 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); } } 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/VizierServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java new file mode 100644 index 000000000..ee322ec2a --- /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; + +/** + * + * + *
+ * Cloud AI Platform 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); + } + + /** + * + * + *
+   * Cloud AI Platform 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 AI Platform 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(); + } + } + + /** + * + * + *
+   * Cloud AI Platform 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 AI Platform 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); + } + } + + /** + * + * + *
+   * Cloud AI Platform 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 AI Platform 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); + } + } + + /** + * + * + *
+   * Cloud AI Platform 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 AI Platform 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml index 96edc75e4..a584328cc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml @@ -125,4 +125,14 @@ 7012 * has*() + + com/google/cloud/aiplatform/v1beta1/AcceleratorType + 6011 + *VALUE + + + com/google/cloud/aiplatform/v1beta1/AcceleratorType + 6001 + TPU* + diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java index 09fa7bfd1..34cc89605 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java @@ -88,26 +88,6 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_TESLA_T4 = 5; */ NVIDIA_TESLA_T4(5), - /** - * - * - *
-   * TPU v2.
-   * 
- * - * TPU_V2 = 6; - */ - TPU_V2(6), - /** - * - * - *
-   * TPU v3.
-   * 
- * - * TPU_V3 = 7; - */ - TPU_V3(7), UNRECOGNIZED(-1), ; @@ -171,26 +151,6 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_TESLA_T4 = 5; */ public static final int NVIDIA_TESLA_T4_VALUE = 5; - /** - * - * - *
-   * TPU v2.
-   * 
- * - * TPU_V2 = 6; - */ - public static final int TPU_V2_VALUE = 6; - /** - * - * - *
-   * TPU v3.
-   * 
- * - * TPU_V3 = 7; - */ - public static final int TPU_V3_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -228,10 +188,6 @@ public static AcceleratorType forNumber(int value) { return NVIDIA_TESLA_P4; case 5: return NVIDIA_TESLA_T4; - case 6: - return TPU_V2; - case 7: - return TPU_V3; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java index 85094dbc4..1cfacff98 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java @@ -38,15 +38,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n6google/cloud/aiplatform/v1beta1/accele" + "rator_type.proto\022\037google.cloud.aiplatfor" + "m.v1beta1\032\034google/api/annotations.proto*" - + "\271\001\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_" + + "\241\001\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_" + "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N" + "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020" + "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T" - + "4\020\005\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007B\210\001\n#com.goog" - + "le.cloud.aiplatform.v1beta1B\024Accelerator" - + "TypeProtoP\001ZIgoogle.golang.org/genproto/" - + "googleapis/cloud/aiplatform/v1beta1;aipl" - + "atformb\006proto3" + + "4\020\005B\210\001\n#com.google.cloud.aiplatform.v1be" + + "ta1B\024AcceleratorTypeProtoP\001ZIgoogle.gola" + + "ng.org/genproto/googleapis/cloud/aiplatf" + + "orm/v1beta1;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/ActiveLearningConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java index df861a327..eb49ed211 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java @@ -22,7 +22,7 @@ * * *
- * 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.
  * 
@@ -593,7 +593,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * 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.
    * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java new file mode 100644 index 000000000..7dd9541b9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java @@ -0,0 +1,973 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.AddTrialMeasurement][google.cloud.aiplatform.v1beta1.VizierService.AddTrialMeasurement].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest} + */ +public final class AddTrialMeasurementRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) + AddTrialMeasurementRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddTrialMeasurementRequest.newBuilder() to construct. + private AddTrialMeasurementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddTrialMeasurementRequest() { + trialName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddTrialMeasurementRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AddTrialMeasurementRequest( + 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; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.Measurement.Builder subBuilder = null; + if (measurement_ != null) { + subBuilder = measurement_.toBuilder(); + } + measurement_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Measurement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(measurement_); + measurement_ = 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_AddTrialMeasurementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.class, + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.Builder.class); + } + + public static final int TRIAL_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object trialName_; + /** + * + * + *
+   * Required. The name of the trial to add measurement.
+   * 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 name of the trial to add measurement.
+   * 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; + } + } + + public static final int MEASUREMENT_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.Measurement measurement_; + /** + * + * + *
+   * Required. The measurement to be added to a Trial.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurement field is set. + */ + @java.lang.Override + public boolean hasMeasurement() { + return measurement_ != null; + } + /** + * + * + *
+   * Required. The measurement to be added to a Trial.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurement. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Measurement getMeasurement() { + return measurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : measurement_; + } + /** + * + * + *
+   * Required. The measurement to be added to a Trial.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getMeasurementOrBuilder() { + return getMeasurement(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + if (measurement_ != null) { + output.writeMessage(3, getMeasurement()); + } + 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_); + } + if (measurement_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMeasurement()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest other = + (com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) obj; + + if (!getTrialName().equals(other.getTrialName())) return false; + if (hasMeasurement() != other.hasMeasurement()) return false; + if (hasMeasurement()) { + if (!getMeasurement().equals(other.getMeasurement())) return false; + } + if (!unknownFields.equals(other.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(); + if (hasMeasurement()) { + hash = (37 * hash) + MEASUREMENT_FIELD_NUMBER; + hash = (53 * hash) + getMeasurement().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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.AddTrialMeasurement][google.cloud.aiplatform.v1beta1.VizierService.AddTrialMeasurement].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.class, + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.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_ = ""; + + if (measurementBuilder_ == null) { + measurement_ = null; + } else { + measurement_ = null; + measurementBuilder_ = 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_AddTrialMeasurementRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest build() { + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest result = + new com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest(this); + result.trialName_ = trialName_; + if (measurementBuilder_ == null) { + result.measurement_ = measurement_; + } else { + result.measurement_ = measurementBuilder_.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.AddTrialMeasurementRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.getDefaultInstance()) + return this; + if (!other.getTrialName().isEmpty()) { + trialName_ = other.trialName_; + onChanged(); + } + if (other.hasMeasurement()) { + mergeMeasurement(other.getMeasurement()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object trialName_ = ""; + /** + * + * + *
+     * Required. The name of the trial to add measurement.
+     * 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 name of the trial to add measurement.
+     * 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 name of the trial to add measurement.
+     * 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 name of the trial to add measurement.
+     * 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 name of the trial to add measurement.
+     * 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; + } + + private com.google.cloud.aiplatform.v1beta1.Measurement measurement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder> + measurementBuilder_; + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurement field is set. + */ + public boolean hasMeasurement() { + return measurementBuilder_ != null || measurement_ != null; + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurement. + */ + public com.google.cloud.aiplatform.v1beta1.Measurement getMeasurement() { + if (measurementBuilder_ == null) { + return measurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : measurement_; + } else { + return measurementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement value) { + if (measurementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurement_ = value; + onChanged(); + } else { + measurementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurement( + com.google.cloud.aiplatform.v1beta1.Measurement.Builder builderForValue) { + if (measurementBuilder_ == null) { + measurement_ = builderForValue.build(); + onChanged(); + } else { + measurementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement value) { + if (measurementBuilder_ == null) { + if (measurement_ != null) { + measurement_ = + com.google.cloud.aiplatform.v1beta1.Measurement.newBuilder(measurement_) + .mergeFrom(value) + .buildPartial(); + } else { + measurement_ = value; + } + onChanged(); + } else { + measurementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurement() { + if (measurementBuilder_ == null) { + measurement_ = null; + onChanged(); + } else { + measurement_ = null; + measurementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Measurement.Builder getMeasurementBuilder() { + + onChanged(); + return getMeasurementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getMeasurementOrBuilder() { + if (measurementBuilder_ != null) { + return measurementBuilder_.getMessageOrBuilder(); + } else { + return measurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : measurement_; + } + } + /** + * + * + *
+     * Required. The measurement to be added to a Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder> + getMeasurementFieldBuilder() { + if (measurementBuilder_ == null) { + measurementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder>( + getMeasurement(), getParentForChildren(), isClean()); + measurement_ = null; + } + return measurementBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) + private static final com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddTrialMeasurementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddTrialMeasurementRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequestOrBuilder.java new file mode 100644 index 000000000..5248fbb48 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequestOrBuilder.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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface AddTrialMeasurementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the trial to add measurement.
+   * 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 name of the trial to add measurement.
+   * 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(); + + /** + * + * + *
+   * Required. The measurement to be added to a Trial.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurement field is set. + */ + boolean hasMeasurement(); + /** + * + * + *
+   * Required. The measurement to be added to a Trial.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurement. + */ + com.google.cloud.aiplatform.v1beta1.Measurement getMeasurement(); + /** + * + * + *
+   * Required. The measurement to be added to a Trial.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getMeasurementOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotatedDatasetName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotatedDatasetName.java index cea6f79b3..0dbe776da 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotatedDatasetName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotatedDatasetName.java @@ -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/Annotation.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Annotation.java index 92454a4aa..0bee5b6df 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Annotation.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Annotation.java @@ -477,7 +477,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * 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.
    * 
* @@ -501,7 +501,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.
    * 
* @@ -617,7 +617,7 @@ public int getLabelsCount() { * and are immutable. Following system labels exist for each 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] * title. @@ -653,7 +653,7 @@ public java.util.Map getLabels() { * and are immutable. Following system labels exist for each 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] * title. @@ -680,7 +680,7 @@ public java.util.Map getLabelsMap() { * and are immutable. Following system labels exist for each 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] * title. @@ -711,7 +711,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * and are immutable. Following system labels exist for each 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] * title. @@ -2072,7 +2072,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * 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.
      * 
* @@ -2095,7 +2095,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.
      * 
* @@ -2118,7 +2118,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.
      * 
* @@ -2140,7 +2140,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.
      * 
* @@ -2158,7 +2158,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.
      * 
* @@ -2426,7 +2426,7 @@ public int getLabelsCount() { * and are immutable. Following system labels exist for each 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] * title. @@ -2462,7 +2462,7 @@ public java.util.Map getLabels() { * and are immutable. Following system labels exist for each 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] * title. @@ -2489,7 +2489,7 @@ public java.util.Map getLabelsMap() { * and are immutable. Following system labels exist for each 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] * title. @@ -2521,7 +2521,7 @@ public java.lang.String getLabelsOrDefault( * and are immutable. Following system labels exist for each 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] * title. @@ -2560,7 +2560,7 @@ public Builder clearLabels() { * and are immutable. Following system labels exist for each 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] * title. @@ -2595,7 +2595,7 @@ public java.util.Map getMutableLabels() { * and are immutable. Following system labels exist for each 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] * title. @@ -2628,7 +2628,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * and are immutable. Following system labels exist for each 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] * title. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationName.java index 9d28c9719..9bf7a5dea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationName.java @@ -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/AnnotationOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationOrBuilder.java index 52e24579e..7d1ca3c58 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationOrBuilder.java @@ -203,7 +203,7 @@ public interface AnnotationOrBuilder * * *
-   * 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.
    * 
* @@ -216,7 +216,7 @@ public interface AnnotationOrBuilder * * *
-   * 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.
    * 
* @@ -282,7 +282,7 @@ public interface AnnotationOrBuilder * and are immutable. Following system labels exist for each 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] * title. @@ -306,7 +306,7 @@ public interface AnnotationOrBuilder * and are immutable. Following system labels exist for each 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] * title. @@ -333,7 +333,7 @@ public interface AnnotationOrBuilder * and are immutable. Following system labels exist for each 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] * title. @@ -357,7 +357,7 @@ public interface AnnotationOrBuilder * and are immutable. Following system labels exist for each 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] * title. @@ -381,7 +381,7 @@ public interface AnnotationOrBuilder * and are immutable. Following system labels exist for each 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] * title. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java index eb204b054..0dbefa8ea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java @@ -363,7 +363,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * 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.
    * 
* @@ -387,7 +387,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.
    * 
* @@ -1443,7 +1443,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * 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.
      * 
* @@ -1466,7 +1466,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.
      * 
* @@ -1489,7 +1489,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.
      * 
* @@ -1511,7 +1511,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.
      * 
* @@ -1529,7 +1529,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/AnnotationSpecName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java index 35929d3c4..5c487df8a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java index a60f7232b..3370fef74 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java @@ -157,7 +157,7 @@ public interface AnnotationSpecOrBuilder * * *
-   * 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.
    * 
* @@ -170,7 +170,7 @@ public interface AnnotationSpecOrBuilder * * *
-   * 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/AutomaticResources.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java index 3461e657b..5365db978 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java @@ -124,7 +124,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * 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]; @@ -143,7 +143,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
@@ -506,7 +506,7 @@ public Builder mergeFrom(
      * 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]; @@ -525,7 +525,7 @@ public int getMinReplicaCount() { * 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]; @@ -547,7 +547,7 @@ public Builder setMinReplicaCount(int value) { * 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]; @@ -567,7 +567,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
@@ -590,7 +590,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
@@ -616,7 +616,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
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java
index 1ddafca09..a731fa0d2 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java
@@ -31,7 +31,7 @@ public interface AutomaticResourcesOrBuilder
    * 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]; @@ -45,7 +45,7 @@ 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
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/BatchMigrateResourcesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java index 5e35fd92e..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 @@ -305,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].
    * 
* @@ -973,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].
      * 
* @@ -2003,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.
    * 
* * @@ -2020,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.
    * 
* * @@ -2039,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.
    * 
* * @@ -2054,7 +2054,7 @@ public int getPartialResultsCount() { * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -2070,7 +2070,7 @@ public int getPartialResultsCount() { * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -2711,7 +2711,7 @@ private void ensurePartialResultsIsMutable() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2732,7 +2732,7 @@ private void ensurePartialResultsIsMutable() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2750,7 +2750,7 @@ public int getPartialResultsCount() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2769,7 +2769,7 @@ public int getPartialResultsCount() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2796,7 +2796,7 @@ public Builder setPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2821,7 +2821,7 @@ public Builder setPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2847,7 +2847,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2874,7 +2874,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2898,7 +2898,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2923,7 +2923,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2949,7 +2949,7 @@ public Builder addAllPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2970,7 +2970,7 @@ public Builder clearPartialResults() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2991,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.
      * 
* * @@ -3007,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.
      * 
* * @@ -3027,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.
      * 
* * @@ -3049,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.
      * 
* * @@ -3068,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.
      * 
* * @@ -3088,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 66030fb3e..d22fc853a 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 @@ -5582,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; @@ -8853,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; @@ -8879,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; @@ -8908,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..b25646b39 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 @@ -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/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/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/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/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/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/CustomJobSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java index b0c020694..cec5e2daf 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 @@ -177,6 +177,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 +195,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 +213,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 +230,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 +247,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.
    * 
* * @@ -984,6 +994,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 +1015,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 +1035,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 +1055,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 +1082,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 +1106,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 +1132,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 +1159,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 +1183,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 +1207,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 +1231,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 +1254,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 +1277,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 +1294,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 +1315,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 +1336,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 +1353,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 +1372,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.
      * 
* * 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..11d04494e 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.
    * 
* * 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/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/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/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/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/ExplanationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java index 149120646..0ccc7537c 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 @@ -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]. * @@ -9095,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]. * @@ -9119,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]. * @@ -9146,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]. * @@ -9728,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]. * @@ -9752,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]. * @@ -9786,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]. * @@ -9817,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]. * @@ -9845,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]. * @@ -9885,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]. * @@ -9919,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]. * @@ -9940,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]. * @@ -9969,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]. * @@ -10534,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 AI Platform 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.
@@ -10565,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 AI Platform 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.
@@ -10587,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 AI Platform 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.
@@ -10616,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 AI Platform 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.
@@ -11410,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 AI Platform 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 +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 AI Platform 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.
@@ -11465,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 AI Platform 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.
@@ -11495,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 AI Platform 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.
@@ -11531,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 AI Platform 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.
@@ -11562,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 AI Platform 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.
@@ -11590,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 AI Platform 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.
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..e73f76041 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
@@ -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 AI Platform 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 AI Platform 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 AI Platform 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 AI Platform 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 AI Platform 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.
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/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/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/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/ImportDataConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java index 186870096..fa266011d 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; @@ -1119,7 +1119,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 +1151,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 +1174,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 +1202,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 +1237,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 +1268,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 +1297,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; 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..cddb841dd 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; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobState.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobState.java index 8e51aac68..fb2cd7cfc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobState.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobState.java @@ -119,6 +119,16 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_PAUSED = 8; */ JOB_STATE_PAUSED(8), + /** + * + * + *
+   * The job has expired.
+   * 
+ * + * JOB_STATE_EXPIRED = 9; + */ + JOB_STATE_EXPIRED(9), UNRECOGNIZED(-1), ; @@ -213,6 +223,16 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_PAUSED = 8; */ public static final int JOB_STATE_PAUSED_VALUE = 8; + /** + * + * + *
+   * The job has expired.
+   * 
+ * + * JOB_STATE_EXPIRED = 9; + */ + public static final int JOB_STATE_EXPIRED_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -256,6 +276,8 @@ public static JobState forNumber(int value) { return JOB_STATE_CANCELLED; case 8: return JOB_STATE_PAUSED; + case 9: + return JOB_STATE_EXPIRED; default: return null; } diff --git a/proto-google-cloud-aiplatform-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/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/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/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/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/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/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/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/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/Model.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java index e7fcfc7af..e83078974 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 @@ -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.
      * 
* @@ -2247,7 +2247,7 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata getPredictSchemata() * 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. + * 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. @@ -2279,7 +2279,7 @@ public java.lang.String getMetadataSchemaUri() { * 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. + * 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. @@ -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; @@ -5033,7 +5057,7 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSch * 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. + * 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. @@ -5064,7 +5088,7 @@ public java.lang.String getMetadataSchemaUri() { * 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. + * 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. @@ -5095,7 +5119,7 @@ public com.google.protobuf.ByteString getMetadataSchemaUriBytes() { * 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. + * 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. @@ -5125,7 +5149,7 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * 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. + * 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. @@ -5151,7 +5175,7 @@ public Builder clearMetadataSchemaUri() { * 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. + * 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. @@ -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..2bf84ecb5 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 @@ -204,6 +204,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * 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). + * You can use the URI to one of AI Platform's [pre-built container images for + * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + * in this field. * * * @@ -238,6 +241,9 @@ public java.lang.String getImageUri() { * 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). + * You can use the URI to one of AI Platform's [pre-built container images for + * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + * in this field. * * * @@ -1069,7 +1075,7 @@ 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. AI Platform
    * 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
@@ -1114,7 +1120,7 @@ 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. AI Platform
    * 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
@@ -1702,6 +1708,9 @@ public Builder mergeFrom(
      * 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).
+     * You can use the URI to one of AI Platform's [pre-built container images for
+     * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1735,6 +1744,9 @@ public java.lang.String getImageUri() { * 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). + * You can use the URI to one of AI Platform's [pre-built container images for + * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + * in this field. *
* * @@ -1768,6 +1780,9 @@ public com.google.protobuf.ByteString getImageUriBytes() { * 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). + * You can use the URI to one of AI Platform's [pre-built container images for + * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + * in this field. * * * @@ -1800,6 +1815,9 @@ public Builder setImageUri(java.lang.String value) { * 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). + * You can use the URI to one of AI Platform's [pre-built container images for + * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + * in this field. * * * @@ -1828,6 +1846,9 @@ public Builder clearImageUri() { * 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). + * You can use the URI to one of AI Platform's [pre-built container images for + * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + * in this field. * * * @@ -4393,7 +4414,7 @@ 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. AI Platform
      * 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
@@ -4437,7 +4458,7 @@ 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. AI Platform
      * 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
@@ -4481,7 +4502,7 @@ 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. AI Platform
      * 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
@@ -4524,7 +4545,7 @@ 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. AI Platform
      * 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
@@ -4563,7 +4584,7 @@ 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. AI Platform
      * 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
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..5ece07342 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
@@ -37,6 +37,9 @@ public interface ModelContainerSpecOrBuilder
    * 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).
+   * You can use the URI to one of AI Platform's [pre-built container images for
+   * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -60,6 +63,9 @@ public interface ModelContainerSpecOrBuilder * 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). + * You can use the URI to one of AI Platform's [pre-built container images for + * prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + * in this field. *
* * @@ -800,7 +806,7 @@ 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. AI Platform
    * 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
@@ -834,7 +840,7 @@ 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. AI Platform
    * 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
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/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/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..681610719 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
@@ -153,7 +153,7 @@ public interface ModelOrBuilder
    * 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.
+   * 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.
@@ -174,7 +174,7 @@ public interface ModelOrBuilder
    * 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.
+   * 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.
@@ -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/PredictSchemata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java index 35794b0ff..5484de12f 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 @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { * 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. + * 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. @@ -242,7 +242,7 @@ public java.lang.String getParametersSchemaUri() { * 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. + * 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. @@ -847,7 +847,7 @@ public Builder setInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { * 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. + * 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. @@ -879,7 +879,7 @@ public java.lang.String getParametersSchemaUri() { * 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. + * 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. @@ -911,7 +911,7 @@ public com.google.protobuf.ByteString getParametersSchemaUriBytes() { * 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. + * 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. @@ -942,7 +942,7 @@ public Builder setParametersSchemaUri(java.lang.String value) { * 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. + * 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. @@ -969,7 +969,7 @@ public Builder clearParametersSchemaUri() { * 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. + * 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. 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..a051421af 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 @@ -77,7 +77,7 @@ public interface PredictSchemataOrBuilder * 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. + * 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. @@ -99,7 +99,7 @@ public interface PredictSchemataOrBuilder * 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. + * 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. 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..6022d8e03 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. AI Platform 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/ai-platform-unified/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. AI Platform 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/ai-platform-unified/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. AI Platform 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/ai-platform-unified/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. AI Platform 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/ai-platform-unified/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. AI Platform 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/ai-platform-unified/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. AI Platform 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/ai-platform-unified/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. AI Platform 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/ai-platform-unified/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..fde3dc8d7 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. AI Platform 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/ai-platform-unified/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. AI Platform 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/ai-platform-unified/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/SampleConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java index 1d18cc9bb..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 @@ -426,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.
    * 
* @@ -442,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.
    * 
* @@ -1044,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.
      * 
* @@ -1061,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.
      * 
* @@ -1081,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.
      * 
* @@ -1103,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.
      * 
* @@ -1127,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 741c8b81f..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 @@ -79,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.
    * 
* @@ -92,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/SearchMigratableResourcesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java index 281e54cbc..b60b9a915 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 @@ -276,7 +276,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. *
* * string filter = 4; @@ -307,7 +307,7 @@ public java.lang.String getFilter() { * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. *
* * string filter = 4; @@ -1011,7 +1011,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. * * * string filter = 4; @@ -1041,7 +1041,7 @@ public java.lang.String getFilter() { * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. * * * string filter = 4; @@ -1071,7 +1071,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. * * * string filter = 4; @@ -1100,7 +1100,7 @@ public Builder setFilter(java.lang.String value) { * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. * * * string filter = 4; @@ -1125,7 +1125,7 @@ public Builder clearFilter() { * * `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. + * * `NOT last_migrate_time:*` will filter 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..a82d3d1d2 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 @@ -111,7 +111,7 @@ public interface SearchMigratableResourcesRequestOrBuilder * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. * * * string filter = 4; @@ -131,7 +131,7 @@ public interface SearchMigratableResourcesRequestOrBuilder * * `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. + * * `NOT last_migrate_time:*` will filter not yet migrated resources. * * * string filter = 4; 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/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..8dd56dffd 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,125 @@ 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" - + "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." + + "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}\"\331\005\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\0223\n\nstart_time\030\007 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022?\n\ncustom_jo" + + "b\030\013 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.c" + + "om/CustomJob\032R\n\tParameter\022\031\n\014parameter_i" + + "d\030\001 \001(\tB\003\340A\003\022*\n\005value\030\002 \001(\0132\026.google.pro" + + "tobuf.ValueB\003\340A\003\"f\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\r\n\tREQUESTED\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010S" + + "TOPPING\020\003\022\r\n\tSUCCEEDED\020\004\022\016\n\nINFEASIBLE\020\005" + + ":l\352Ai\n\037aiplatform.googleapis.com/Trial\022F" + + "projects/{project}/locations/{location}/" + + "studies/{study}/trials/{trial}\"\272\031\n\tStudy" + + "Spec\022o\n\031decay_curve_stopping_spec\030\004 \001(\0132" + + "J.google.cloud.aiplatform.v1beta1.StudyS" + + "pec.DecayCurveAutomatedStoppingSpecH\000\022p\n" + + "\036median_automated_stopping_spec\030\005 \001(\0132F." + "google.cloud.aiplatform.v1beta1.StudySpe" - + "c.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" + + "c.MedianAutomatedStoppingSpecH\000\022Y\n\022conve" + + "x_stop_config\030\010 \001(\0132;.google.cloud.aipla" + + "tform.v1beta1.StudySpec.ConvexStopConfig" + + "H\000\022K\n\007metrics\030\001 \003(\01325.google.cloud.aipla" + + "tform.v1beta1.StudySpec.MetricSpecB\003\340A\002\022" + + "Q\n\nparameters\030\002 \003(\01328.google.cloud.aipla" + + "tform.v1beta1.StudySpec.ParameterSpecB\003\340" + + "A\002\022G\n\talgorithm\030\003 \001(\01624.google.cloud.aip" + + "latform.v1beta1.StudySpec.Algorithm\022V\n\021o" + + "bservation_noise\030\006 \001(\0162;.google.cloud.ai" + + "platform.v1beta1.StudySpec.ObservationNo" + + "ise\022g\n\032measurement_selection_type\030\007 \001(\0162" + + "C.google.cloud.aiplatform.v1beta1.StudyS" + + "pec.MeasurementSelectionType\032\272\001\n\nMetricS" + + "pec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022Q\n\004goal\030\002 \001(" + + "\0162>.google.cloud.aiplatform.v1beta1.Stud" + + "ySpec.MetricSpec.GoalTypeB\003\340A\002\"A\n\010GoalTy" + + "pe\022\031\n\025GOAL_TYPE_UNSPECIFIED\020\000\022\014\n\010MAXIMIZ" + + "E\020\001\022\014\n\010MINIMIZE\020\002\032\310\r\n\rParameterSpec\022e\n\021d" + + "ouble_value_spec\030\002 \001(\0132H.google.cloud.ai" + + "platform.v1beta1.StudySpec.ParameterSpec" + + ".DoubleValueSpecH\000\022g\n\022integer_value_spec" + + "\030\003 \001(\0132I.google.cloud.aiplatform.v1beta1" + + ".StudySpec.ParameterSpec.IntegerValueSpe" + + "cH\000\022o\n\026categorical_value_spec\030\004 \001(\0132M.go" + + "ogle.cloud.aiplatform.v1beta1.StudySpec." + + "ParameterSpec.CategoricalValueSpecH\000\022i\n\023" + + "discrete_value_spec\030\005 \001(\0132J.google.cloud" + + ".aiplatform.v1beta1.StudySpec.ParameterS" + + "pec.DiscreteValueSpecH\000\022\031\n\014parameter_id\030" + + "\001 \001(\tB\003\340A\002\022V\n\nscale_type\030\006 \001(\0162B.google." + + "cloud.aiplatform.v1beta1.StudySpec.Param" + + "eterSpec.ScaleType\022v\n\033conditional_parame" + + "ter_specs\030\n \003(\0132Q.google.cloud.aiplatfor" + + "m.v1beta1.StudySpec.ParameterSpec.Condit" + + "ionalParameterSpec\032A\n\017DoubleValueSpec\022\026\n" + + "\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\tmax_value\030\002 \001(\001" + + "B\003\340A\002\032B\n\020IntegerValueSpec\022\026\n\tmin_value\030\001" + + " \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 \001(\003B\003\340A\002\032+\n\024Cat" + + "egoricalValueSpec\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.ai" + + "platform.v1beta1.StudySpec.ParameterSpec" + + ".ConditionalParameterSpec.DiscreteValueC" + + "onditionH\000\022\200\001\n\021parent_int_values\030\003 \001(\0132c" + + ".google.cloud.aiplatform.v1beta1.StudySp" + + "ec.ParameterSpec.ConditionalParameterSpe" + + "c.IntValueConditionH\000\022\220\001\n\031parent_categor" + + "ical_values\030\004 \001(\0132k.google.cloud.aiplatf" + + "orm.v1beta1.StudySpec.ParameterSpec.Cond" + + "itionalParameterSpec.CategoricalValueCon" + + "ditionH\000\022U\n\016parameter_spec\030\001 \001(\01328.googl" + + "e.cloud.aiplatform.v1beta1.StudySpec.Par" + + "ameterSpecB\003\340A\002\032-\n\026DiscreteValueConditio" + + "n\022\023\n\006values\030\001 \003(\001B\003\340A\002\032(\n\021IntValueCondit" + + "ion\022\023\n\006values\030\001 \003(\003B\003\340A\002\0320\n\031CategoricalV" + + "alueCondition\022\023\n\006values\030\001 \003(\tB\003\340A\002B\030\n\026pa" + + "rent_value_condition\"n\n\tScaleType\022\032\n\026SCA" + + "LE_TYPE_UNSPECIFIED\020\000\022\025\n\021UNIT_LINEAR_SCA" + + "LE\020\001\022\022\n\016UNIT_LOG_SCALE\020\002\022\032\n\026UNIT_REVERSE" + + "_LOG_SCALE\020\003B\026\n\024parameter_value_spec\032?\n\037" + + "DecayCurveAutomatedStoppingSpec\022\034\n\024use_e" + + "lapsed_duration\030\001 \001(\010\032;\n\033MedianAutomated" + + "StoppingSpec\022\034\n\024use_elapsed_duration\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\024autoreg" + + "ressive_order\030\003 \001(\003\022$\n\034learning_rate_par" + + "ameter_name\030\004 \001(\t\022\023\n\013use_seconds\030\005 \001(\010\"J" + + "\n\tAlgorithm\022\031\n\025ALGORITHM_UNSPECIFIED\020\000\022\017" + + "\n\013GRID_SEARCH\020\002\022\021\n\rRANDOM_SEARCH\020\003\"H\n\020Ob" + + "servationNoise\022!\n\035OBSERVATION_NOISE_UNSP" + + "ECIFIED\020\000\022\007\n\003LOW\020\001\022\010\n\004HIGH\020\002\"r\n\030Measurem" + + "entSelectionType\022*\n&MEASUREMENT_SELECTIO" + + "N_TYPE_UNSPECIFIED\020\000\022\024\n\020LAST_MEASUREMENT" + + "\020\001\022\024\n\020BEST_MEASUREMENT\020\002B\031\n\027automated_st" + + "opping_spec\"\247\001\n\013Measurement\022\027\n\nstep_coun" + + "t\030\002 \001(\003B\003\340A\003\022I\n\007metrics\030\003 \003(\01323.google.c" + + "loud.aiplatform.v1beta1.Measurement.Metr" + + "icB\003\340A\003\0324\n\006Metric\022\026\n\tmetric_id\030\001 \001(\tB\003\340A" + + "\003\022\022\n\005value\030\002 \001(\001B\003\340A\003B~\n#com.google.clou" + + "d.aiplatform.v1beta1B\nStudyProtoP\001ZIgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "aiplatform/v1beta1;aiplatformb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -208,13 +251,28 @@ 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", + "StartTime", + "EndTime", + "CustomJob", }); internal_static_google_cloud_aiplatform_v1beta1_Trial_Parameter_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor.getNestedTypes().get(0); @@ -225,12 +283,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,8 +409,42 @@ 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, 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..58d20a737 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)) { @@ -13134,241 +13205,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 +16129,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 +16153,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 +16178,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 +16204,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 +16232,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 +16272,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 +16416,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/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/Trial.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java index c91173241..4da55e66c 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,6 +40,7 @@ private Trial(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Trial() { + name_ = ""; id_ = ""; state_ = 0; parameters_ = java.util.Collections.emptyList(); @@ -76,6 +77,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(); @@ -1445,6 +1453,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_; /** @@ -1835,6 +1892,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_); } @@ -1865,6 +1925,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_); } @@ -1902,6 +1965,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; @@ -1929,6 +1993,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; @@ -2100,6 +2166,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + name_ = ""; + id_ = ""; state_ = 0; @@ -2158,6 +2226,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) { @@ -2234,6 +2303,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(); @@ -2312,6 +2385,112 @@ public Builder mergeFrom( private int bitField0_; + private 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. + */ + 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 the Trial assigned by the service.
+     * 
+ * + * 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 the Trial assigned by the service.
+     * 
+ * + * 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 the Trial assigned by the service.
+     * 
+ * + * 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 the Trial assigned by the service.
+     * 
+ * + * 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 id_ = ""; /** * 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..bbdf769e8 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(); + /** * * 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/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..0865b6281 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. @@ -42,10 +42,4 @@ enum AcceleratorType { // Nvidia Tesla T4 GPU. NVIDIA_TESLA_T4 = 5; - - // TPU v2. - TPU_V2 = 6; - - // TPU v3. - TPU_V3 = 7; } 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..5924eab20 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"; @@ -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/batch_prediction_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index f763df636..29bfc16ec 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. @@ -120,7 +120,6 @@ message BatchPredictionJob { // Required. The format in which AI Platform 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]; } @@ -206,8 +205,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/custom_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index f50e56ed7..686a0e3c1 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. @@ -180,10 +182,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. AI Platform 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/ai-platform-unified/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..95f7e5ce2 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,7 +104,7 @@ 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 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..1be8c7900 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. @@ -358,7 +358,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 +374,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_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..7d8fd7281 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. @@ -108,7 +108,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 +130,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..d4ec027b2 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; } 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/explanation.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto index a75ee628f..68357502e 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"; 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..1ac86b28b 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. @@ -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; @@ -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 AI Platform 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. 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..b203b743a 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. 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..4870344e9 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. @@ -53,9 +53,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 +64,7 @@ message BigQueryDestination { string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } -// The Container Regsitry location for the container image. +// 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..a9e7e141c 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. @@ -331,7 +331,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; } @@ -381,7 +381,6 @@ message CreateDataLabelingJobRequest { 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, @@ -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, @@ -467,7 +465,6 @@ message DeleteDataLabelingJobRequest { 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, @@ -555,7 +551,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 +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"` @@ -666,7 +661,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 +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-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/machine_resources.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto index 3cb131c24..034813c53 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. @@ -67,7 +67,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,6 +75,28 @@ 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, @@ -85,11 +107,11 @@ 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 @@ -137,3 +159,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/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..d7cc6f3d3 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. @@ -93,7 +93,7 @@ message SearchMigratableResourcesRequest { // * `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. + // * `NOT last_migrate_time:*` will filter not yet migrated resources. string filter = 4; } @@ -201,7 +201,6 @@ message MigrateResourceRequest { 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, @@ -277,7 +276,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 +305,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..4710d4fe3 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. @@ -121,7 +121,7 @@ message Model { // 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. + // 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. @@ -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 @@ -309,7 +318,7 @@ message PredictSchemata { // 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. + // 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. @@ -344,6 +353,10 @@ message ModelContainerSpec { // // To learn about the requirements for the Docker image itself, see // [Custom container requirements](https://tinyurl.com/cust-cont-reqs). + // + // You can use the URI to one of AI Platform's [pre-built container images for + // prediction](https://cloud.google.com/ai-platform-unified/docs/predictions/pre-built-containers) + // in this field. string image_uri = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -502,7 +515,7 @@ message ModelContainerSpec { // variable](https://tinyurl.com/cust-cont-reqs#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. AI Platform // 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 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..5a4e52851 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. 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..f562272eb 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. 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..4f7464470 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. @@ -325,7 +325,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 +375,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 +388,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_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 31b7e3875..81597a0a4 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. @@ -111,7 +111,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 +167,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 +176,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 +189,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-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..ae0c4d396 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. 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/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..6f116fc53 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]; @@ -258,6 +305,68 @@ 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. @@ -313,6 +422,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]; 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..182bb7cb8 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. @@ -188,15 +188,12 @@ message InputDataConfig { // // * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data // * AIP_TRAINING_DATA_URI = - // // "gcs_destination/dataset---