diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f60d77493..a79f06271 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 -# created: 2022-04-06T16:30:03.627422514Z + digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 +# created: 2022-05-19T15:12:45.278246753Z diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg new file mode 100644 index 000000000..a3f7fb9d4 --- /dev/null +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm17" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e0e042b9a..775c3c039 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # Changelog +## [2.9.0](https://github.com/googleapis/java-aiplatform/compare/v2.8.9...v2.9.0) (2022-05-24) + + +### Features + +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-aiplatform/issues/1440)) ([#894](https://github.com/googleapis/java-aiplatform/issues/894)) ([4d7349e](https://github.com/googleapis/java-aiplatform/commit/4d7349eae73cf2ed918ffd7188560bfed6ccf039)) +* add ConvexAutomatedStoppingSpec to StudySpec in aiplatform v1 study.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add ConvexAutomatedStoppingSpec to StudySpec in aiplatform v1beta1 study.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add JOB_STATE_UPDATING to JobState in aiplatform v1 job_state.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add JOB_STATE_UPDATING to JobState in aiplatform v1beta1 job_state.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add LatestMonitoringPipelineMetadata to ModelDeploymentMonitoringJob in aiplatform v1beta1 model_deployment_monitoring_job.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add ListModelVersion, DeleteModelVersion, and MergeVersionAliases rpcs to aiplatform v1beta1 model_service.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add MfsMount in aiplatform v1 machine_resources.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add MfsMount in aiplatform v1beta1 machine_resources.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add model_id and parent_model to TrainingPipeline in aiplatform v1beta1 training_pipeline.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add model_version_id to DeployedModel in aiplatform v1beta1 endpoint.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add model_version_id to PredictResponse in aiplatform v1beta1 prediction_service.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add model_version_id to UploadModelRequest and UploadModelResponse in aiplatform v1beta1 model_service.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add nfs_mounts to WorkPoolSpec in aiplatform v1 custom_job.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add nfs_mounts to WorkPoolSpec in aiplatform v1beta1 custom_job.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add PredictRequestResponseLoggingConfig to aiplatform v1beta1 endpoint.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add reserved_ip_ranges to CustomJobSpec in aiplatform v1 custom_job.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add reserved_ip_ranges to CustomJobSpec in aiplatform v1beta1 custom_job.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* add version_id to Model in aiplatform v1beta1 model.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* remove several `REQUIRED` field annotations in featurestore.proto, metadata.proto, and pipeline_job.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* remove several `REQUIRED` field annotations in featurestore.proto, metadata.proto, and pipeline_job.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) +* rename Similarity to Examples, and similarity to examples in ExplanationParameters in aiplatform v1beta1 explanation.proto ([78bcdac](https://github.com/googleapis/java-aiplatform/commit/78bcdacf91ec1a80dfe237190bbf173d4279c5a6)) + + +### Dependencies + +* update dependency com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1 to v0.14.9 ([#890](https://github.com/googleapis/java-aiplatform/issues/890)) ([bedf5d9](https://github.com/googleapis/java-aiplatform/commit/bedf5d91b42a68983504115b4e7c64eab641c769)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#893](https://github.com/googleapis/java-aiplatform/issues/893)) ([fd5d001](https://github.com/googleapis/java-aiplatform/commit/fd5d001202adb240114bb27b147cdb0c519331b6)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#912](https://github.com/googleapis/java-aiplatform/issues/912)) ([32c47cc](https://github.com/googleapis/java-aiplatform/commit/32c47cca36f365f33158bd16e91ea54a6682a913)) + ### [2.8.9](https://github.com/googleapis/java-aiplatform/compare/v2.8.8...v2.8.9) (2022-04-29) diff --git a/README.md b/README.md index ac38ddc62..4188f0938 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud google-cloud-aiplatform - 2.8.8 + 2.8.9 ``` @@ -30,7 +30,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 2.8.8 + 2.8.9 ``` @@ -38,20 +38,20 @@ 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:25.2.0') +implementation platform('com.google.cloud:libraries-bom:25.3.0') implementation 'com.google.cloud:google-cloud-aiplatform' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:2.8.8' +implementation 'com.google.cloud:google-cloud-aiplatform:2.8.9' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "2.8.8" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "2.8.9" ``` ## Authentication diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index 85759d2f4..759bf7ffc 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 - 2.8.9 + 2.9.0 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.cloud google-cloud-aiplatform - 2.8.9 + 2.9.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 2.8.9 + 2.9.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.14.9 + 0.15.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 2.8.9 + 2.9.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.14.9 + 0.15.0 diff --git a/google-cloud-aiplatform/pom.xml b/google-cloud-aiplatform/pom.xml index d9660710c..0712b10a6 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 - 2.8.9 + 2.9.0 jar Google Cloud Vertex AI https://github.com/googleapis/java-aiplatform @@ -11,7 +11,7 @@ com.google.cloud google-cloud-aiplatform-parent - 2.8.9 + 2.9.0 google-cloud-aiplatform diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java index fd9a6cde9..a54153763 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java @@ -1083,7 +1083,7 @@ public final UnaryCallable listArti * [Artifact.name][google.cloud.aiplatform.v1.Artifact.name] field is used to identify the * Artifact to be updated. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @param updateMask Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1788,7 +1788,7 @@ public final UnaryCallable listContex * [Context.name][google.cloud.aiplatform.v1.Context.name] field is used to identify the * Context to be updated. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @param updateMask Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2880,7 +2880,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * [Execution.name][google.cloud.aiplatform.v1.Execution.name] field is used to identify the * Execution to be updated. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @param updateMask Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ 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 b354d31b4..9d1cc5a7b 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 @@ -539,7 +539,18 @@ public final UnaryCallable listModelsCall * } * } * - * @param model Required. The Model which replaces the resource on the server. + * @param model Required. The Model which replaces the resource on the server. When Model + * Versioning is enabled, the model.name will be used to determine whether to update the model + * or model version. 1. model.name with the {@literal @} value, e.g. models/123{@literal @}1, + * refers to a version specific update. 2. model.name without the {@literal @} value, e.g. + * models/123, refers to a model update. 3. model.name with {@literal @}-, e.g. + * models/123{@literal @}-, refers to a model update. 4. Supported model fields: display_name, + * description; supported version-specific fields: version_description. Labels are supported + * in both scenarios. Both the model labels and the version labels are merged when a model is + * returned. When updating labels, if the request is for model-specific update, model label + * gets updated. Otherwise, version labels get updated. 5. A model name or model version name + * fields update mismatch will cause a precondition error. 6. One request cannot update both + * the model and the version fields. You must update them separately. * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` * definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java index 2344f3730..dfe952c9d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java @@ -1084,7 +1084,7 @@ public final UnaryCallable listArti * [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify * the Artifact to be updated. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @param updateMask Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1789,7 +1789,7 @@ public final UnaryCallable listContex * [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the * Context to be updated. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @param updateMask Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2881,7 +2881,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify * the Execution to be updated. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @param updateMask Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ 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 3764b7b65..5be91961e 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 @@ -229,6 +229,8 @@ public final OperationFuture * UploadModelRequest request = * UploadModelRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParentModel("parentModel998431903") + * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) * .build(); * UploadModelResponse response = modelServiceClient.uploadModelAsync(request).get(); @@ -254,6 +256,8 @@ public final OperationFuture * UploadModelRequest request = * UploadModelRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParentModel("parentModel998431903") + * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) * .build(); * OperationFuture future = @@ -280,6 +284,8 @@ public final OperationFuture * UploadModelRequest request = * UploadModelRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParentModel("parentModel998431903") + * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) * .build(); * ApiFuture future = modelServiceClient.uploadModelCallable().futureCall(request); @@ -523,6 +529,151 @@ public final UnaryCallable listModelsCall return stub.listModelsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists versions of the specified model. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionsRequest request =
+   *       ListModelVersionsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.listModelVersionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Model element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listModelVersionsPagedCallable() { + return stub.listModelVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists versions of the specified model. + * + *

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionsRequest request =
+   *       ListModelVersionsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListModelVersionsResponse response =
+   *         modelServiceClient.listModelVersionsCallable().call(request);
+   *     for (Model element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listModelVersionsCallable() { + return stub.listModelVersionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a Model. @@ -537,7 +688,18 @@ public final UnaryCallable listModelsCall * } * } * - * @param model Required. The Model which replaces the resource on the server. + * @param model Required. The Model which replaces the resource on the server. When Model + * Versioning is enabled, the model.name will be used to determine whether to update the model + * or model version. 1. model.name with the {@literal @} value, e.g. models/123{@literal @}1, + * refers to a version specific update. 2. model.name without the {@literal @} value, e.g. + * models/123, refers to a model update. 3. model.name with {@literal @}-, e.g. + * models/123{@literal @}-, refers to a model update. 4. Supported model fields: display_name, + * description; supported version-specific fields: version_description. Labels are supported + * in both scenarios. Both the model labels and the version labels are merged when a model is + * returned. When updating labels, if the request is for model-specific update, model label + * gets updated. Otherwise, version labels get updated. 5. A model name or model version name + * fields update mismatch will cause a precondition error. 6. One request cannot update both + * the model and the version fields. You must update them separately. * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` * definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -730,6 +892,274 @@ public final UnaryCallable deleteModelCallable() return stub.deleteModelCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Model version. + * + *

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   modelServiceClient.deleteModelVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the model version to be deleted, with a version ID explicitly + * included. + *

Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteModelVersionAsync( + ModelName name) { + DeleteModelVersionRequest request = + DeleteModelVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteModelVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Model version. + * + *

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   modelServiceClient.deleteModelVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the model version to be deleted, with a version ID explicitly + * included. + *

Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteModelVersionAsync( + String name) { + DeleteModelVersionRequest request = + DeleteModelVersionRequest.newBuilder().setName(name).build(); + return deleteModelVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Model version. + * + *

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   DeleteModelVersionRequest request =
+   *       DeleteModelVersionRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .build();
+   *   modelServiceClient.deleteModelVersionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteModelVersionAsync( + DeleteModelVersionRequest request) { + return deleteModelVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Model version. + * + *

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   DeleteModelVersionRequest request =
+   *       DeleteModelVersionRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       modelServiceClient.deleteModelVersionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteModelVersionOperationCallable() { + return stub.deleteModelVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Model version. + * + *

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   DeleteModelVersionRequest request =
+   *       DeleteModelVersionRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.deleteModelVersionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteModelVersionCallable() { + return stub.deleteModelVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Merges a set of aliases for a Model version. + * + *

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   List versionAliases = new ArrayList<>();
+   *   Model response = modelServiceClient.mergeVersionAliases(name, versionAliases);
+   * }
+   * }
+ * + * @param name Required. The name of the model version to merge aliases, with a version ID + * explicitly included. + *

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

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   List versionAliases = new ArrayList<>();
+   *   Model response = modelServiceClient.mergeVersionAliases(name, versionAliases);
+   * }
+   * }
+ * + * @param name Required. The name of the model version to merge aliases, with a version ID + * explicitly included. + *

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

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

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   MergeVersionAliasesRequest request =
+   *       MergeVersionAliasesRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .addAllVersionAliases(new ArrayList())
+   *           .build();
+   *   Model response = modelServiceClient.mergeVersionAliases(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Model mergeVersionAliases(MergeVersionAliasesRequest request) { + return mergeVersionAliasesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Merges a set of aliases for a Model version. + * + *

Sample code: + * + *

{@code
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   MergeVersionAliasesRequest request =
+   *       MergeVersionAliasesRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .addAllVersionAliases(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.mergeVersionAliasesCallable().futureCall(request);
+   *   // Do something.
+   *   Model response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable mergeVersionAliasesCallable() { + return stub.mergeVersionAliasesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Exports a trained, exportable Model to a location specified by the user. A Model is considered @@ -1601,6 +2031,83 @@ protected ListModelsFixedSizeCollection createCollection( } } + public static class ListModelVersionsPagedResponse + extends AbstractPagedListResponse< + ListModelVersionsRequest, + ListModelVersionsResponse, + Model, + ListModelVersionsPage, + ListModelVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListModelVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListModelVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListModelVersionsPagedResponse(ListModelVersionsPage page) { + super(page, ListModelVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListModelVersionsPage + extends AbstractPage< + ListModelVersionsRequest, ListModelVersionsResponse, Model, ListModelVersionsPage> { + + private ListModelVersionsPage( + PageContext context, + ListModelVersionsResponse response) { + super(context, response); + } + + private static ListModelVersionsPage createEmptyPage() { + return new ListModelVersionsPage(null, null); + } + + @Override + protected ListModelVersionsPage createPage( + PageContext context, + ListModelVersionsResponse response) { + return new ListModelVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListModelVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListModelVersionsRequest, + ListModelVersionsResponse, + Model, + ListModelVersionsPage, + ListModelVersionsFixedSizeCollection> { + + private ListModelVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListModelVersionsFixedSizeCollection createEmptyCollection() { + return new ListModelVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListModelVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListModelVersionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< ListModelEvaluationsRequest, 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 be025f6df..db763fa10 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 @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; import com.google.api.core.ApiFunction; @@ -97,6 +98,13 @@ public UnaryCallSettings getModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).listModelsSettings(); } + /** Returns the object with the settings used for calls to listModelVersions. */ + public PagedCallSettings< + ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse> + listModelVersionsSettings() { + return ((ModelServiceStubSettings) getStubSettings()).listModelVersionsSettings(); + } + /** Returns the object with the settings used for calls to updateModel. */ public UnaryCallSettings updateModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).updateModelSettings(); @@ -113,6 +121,22 @@ public UnaryCallSettings deleteModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).deleteModelOperationSettings(); } + /** Returns the object with the settings used for calls to deleteModelVersion. */ + public UnaryCallSettings deleteModelVersionSettings() { + return ((ModelServiceStubSettings) getStubSettings()).deleteModelVersionSettings(); + } + + /** Returns the object with the settings used for calls to deleteModelVersion. */ + public OperationCallSettings + deleteModelVersionOperationSettings() { + return ((ModelServiceStubSettings) getStubSettings()).deleteModelVersionOperationSettings(); + } + + /** Returns the object with the settings used for calls to mergeVersionAliases. */ + public UnaryCallSettings mergeVersionAliasesSettings() { + return ((ModelServiceStubSettings) getStubSettings()).mergeVersionAliasesSettings(); + } + /** Returns the object with the settings used for calls to exportModel. */ public UnaryCallSettings exportModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).exportModelSettings(); @@ -281,6 +305,13 @@ public UnaryCallSettings.Builder getModelSettings() { return getStubSettingsBuilder().listModelsSettings(); } + /** Returns the builder for the settings used for calls to listModelVersions. */ + public PagedCallSettings.Builder< + ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse> + listModelVersionsSettings() { + return getStubSettingsBuilder().listModelVersionsSettings(); + } + /** Returns the builder for the settings used for calls to updateModel. */ public UnaryCallSettings.Builder updateModelSettings() { return getStubSettingsBuilder().updateModelSettings(); @@ -297,6 +328,24 @@ public UnaryCallSettings.Builder deleteModelSetti return getStubSettingsBuilder().deleteModelOperationSettings(); } + /** Returns the builder for the settings used for calls to deleteModelVersion. */ + public UnaryCallSettings.Builder + deleteModelVersionSettings() { + return getStubSettingsBuilder().deleteModelVersionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteModelVersion. */ + public OperationCallSettings.Builder + deleteModelVersionOperationSettings() { + return getStubSettingsBuilder().deleteModelVersionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to mergeVersionAliases. */ + public UnaryCallSettings.Builder + mergeVersionAliasesSettings() { + return getStubSettingsBuilder().mergeVersionAliasesSettings(); + } + /** Returns the builder for the settings used for calls to exportModel. */ public UnaryCallSettings.Builder exportModelSettings() { return getStubSettingsBuilder().exportModelSettings(); diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index cd15467d6..e3c1619b5 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -433,6 +433,9 @@ "DeleteModel": { "methods": ["deleteModelAsync", "deleteModelAsync", "deleteModelAsync", "deleteModelOperationCallable", "deleteModelCallable"] }, + "DeleteModelVersion": { + "methods": ["deleteModelVersionAsync", "deleteModelVersionAsync", "deleteModelVersionAsync", "deleteModelVersionOperationCallable", "deleteModelVersionCallable"] + }, "ExportModel": { "methods": ["exportModelAsync", "exportModelAsync", "exportModelAsync", "exportModelOperationCallable", "exportModelCallable"] }, @@ -454,9 +457,15 @@ "ListModelEvaluations": { "methods": ["listModelEvaluations", "listModelEvaluations", "listModelEvaluations", "listModelEvaluationsPagedCallable", "listModelEvaluationsCallable"] }, + "ListModelVersions": { + "methods": ["listModelVersions", "listModelVersions", "listModelVersions", "listModelVersionsPagedCallable", "listModelVersionsCallable"] + }, "ListModels": { "methods": ["listModels", "listModels", "listModels", "listModelsPagedCallable", "listModelsCallable"] }, + "MergeVersionAliases": { + "methods": ["mergeVersionAliases", "mergeVersionAliases", "mergeVersionAliases", "mergeVersionAliasesCallable"] + }, "UpdateModel": { "methods": ["updateModel", "updateModel", "updateModelCallable"] }, 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 693282768..0a302edd9 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 @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; import com.google.api.core.BetaApi; @@ -29,6 +30,7 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.DeleteModelRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ExportModelRequest; @@ -41,8 +43,11 @@ import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelsResponse; +import com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; import com.google.cloud.aiplatform.v1beta1.Model; import com.google.cloud.aiplatform.v1beta1.ModelEvaluation; import com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; @@ -94,6 +99,17 @@ public class GrpcModelServiceStub extends ModelServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(ListModelsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listModelVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.ModelService/ListModelVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListModelVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListModelVersionsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateModelMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -110,6 +126,26 @@ public class GrpcModelServiceStub extends ModelServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + deleteModelVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.ModelService/DeleteModelVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteModelVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + mergeVersionAliasesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.ModelService/MergeVersionAliases") + .setRequestMarshaller( + ProtoUtils.marshaller(MergeVersionAliasesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Model.getDefaultInstance())) + .build(); + private static final MethodDescriptor exportModelMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -184,10 +220,18 @@ public class GrpcModelServiceStub extends ModelServiceStub { private final UnaryCallable getModelCallable; private final UnaryCallable listModelsCallable; private final UnaryCallable listModelsPagedCallable; + private final UnaryCallable + listModelVersionsCallable; + private final UnaryCallable + listModelVersionsPagedCallable; private final UnaryCallable updateModelCallable; private final UnaryCallable deleteModelCallable; private final OperationCallable deleteModelOperationCallable; + private final UnaryCallable deleteModelVersionCallable; + private final OperationCallable + deleteModelVersionOperationCallable; + private final UnaryCallable mergeVersionAliasesCallable; private final UnaryCallable exportModelCallable; private final OperationCallable< ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata> @@ -280,6 +324,17 @@ protected GrpcModelServiceStub( return params.build(); }) .build(); + GrpcCallSettings + listModelVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listModelVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings updateModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateModelMethodDescriptor) @@ -300,6 +355,26 @@ protected GrpcModelServiceStub( return params.build(); }) .build(); + GrpcCallSettings deleteModelVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteModelVersionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings mergeVersionAliasesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(mergeVersionAliasesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings exportModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportModelMethodDescriptor) @@ -385,6 +460,16 @@ protected GrpcModelServiceStub( this.listModelsPagedCallable = callableFactory.createPagedCallable( listModelsTransportSettings, settings.listModelsSettings(), clientContext); + this.listModelVersionsCallable = + callableFactory.createUnaryCallable( + listModelVersionsTransportSettings, + settings.listModelVersionsSettings(), + clientContext); + this.listModelVersionsPagedCallable = + callableFactory.createPagedCallable( + listModelVersionsTransportSettings, + settings.listModelVersionsSettings(), + clientContext); this.updateModelCallable = callableFactory.createUnaryCallable( updateModelTransportSettings, settings.updateModelSettings(), clientContext); @@ -397,6 +482,22 @@ protected GrpcModelServiceStub( settings.deleteModelOperationSettings(), clientContext, operationsStub); + this.deleteModelVersionCallable = + callableFactory.createUnaryCallable( + deleteModelVersionTransportSettings, + settings.deleteModelVersionSettings(), + clientContext); + this.deleteModelVersionOperationCallable = + callableFactory.createOperationCallable( + deleteModelVersionTransportSettings, + settings.deleteModelVersionOperationSettings(), + clientContext, + operationsStub); + this.mergeVersionAliasesCallable = + callableFactory.createUnaryCallable( + mergeVersionAliasesTransportSettings, + settings.mergeVersionAliasesSettings(), + clientContext); this.exportModelCallable = callableFactory.createUnaryCallable( exportModelTransportSettings, settings.exportModelSettings(), clientContext); @@ -476,6 +577,18 @@ public UnaryCallable listModelsPaged return listModelsPagedCallable; } + @Override + public UnaryCallable + listModelVersionsCallable() { + return listModelVersionsCallable; + } + + @Override + public UnaryCallable + listModelVersionsPagedCallable() { + return listModelVersionsPagedCallable; + } + @Override public UnaryCallable updateModelCallable() { return updateModelCallable; @@ -492,6 +605,22 @@ public UnaryCallable deleteModelCallable() { return deleteModelOperationCallable; } + @Override + public UnaryCallable deleteModelVersionCallable() { + return deleteModelVersionCallable; + } + + @Override + public OperationCallable + deleteModelVersionOperationCallable() { + return deleteModelVersionOperationCallable; + } + + @Override + public UnaryCallable mergeVersionAliasesCallable() { + return mergeVersionAliasesCallable; + } + @Override public UnaryCallable exportModelCallable() { return exportModelCallable; 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 33413c2cc..db2ef0afd 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 @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; import com.google.api.core.BetaApi; @@ -25,6 +26,7 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.DeleteModelRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ExportModelRequest; @@ -37,8 +39,11 @@ import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelsResponse; +import com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; import com.google.cloud.aiplatform.v1beta1.Model; import com.google.cloud.aiplatform.v1beta1.ModelEvaluation; import com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; @@ -86,6 +91,16 @@ public UnaryCallable listModelsCallable() throw new UnsupportedOperationException("Not implemented: listModelsCallable()"); } + public UnaryCallable + listModelVersionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listModelVersionsPagedCallable()"); + } + + public UnaryCallable + listModelVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listModelVersionsCallable()"); + } + public UnaryCallable updateModelCallable() { throw new UnsupportedOperationException("Not implemented: updateModelCallable()"); } @@ -99,6 +114,20 @@ public UnaryCallable deleteModelCallable() { throw new UnsupportedOperationException("Not implemented: deleteModelCallable()"); } + public OperationCallable + deleteModelVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteModelVersionOperationCallable()"); + } + + public UnaryCallable deleteModelVersionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteModelVersionCallable()"); + } + + public UnaryCallable mergeVersionAliasesCallable() { + throw new UnsupportedOperationException("Not implemented: mergeVersionAliasesCallable()"); + } + public OperationCallable exportModelOperationCallable() { throw new UnsupportedOperationException("Not implemented: exportModelOperationCallable()"); 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 4cb0179c2..4f9509ede 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 @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; import com.google.api.core.ApiFunction; @@ -47,6 +48,7 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.DeleteModelRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ExportModelRequest; @@ -59,8 +61,11 @@ import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelsResponse; +import com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; import com.google.cloud.aiplatform.v1beta1.Model; import com.google.cloud.aiplatform.v1beta1.ModelEvaluation; import com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; @@ -125,10 +130,17 @@ public class ModelServiceStubSettings extends StubSettings getModelSettings; private final PagedCallSettings listModelsSettings; + private final PagedCallSettings< + ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse> + listModelVersionsSettings; private final UnaryCallSettings updateModelSettings; private final UnaryCallSettings deleteModelSettings; private final OperationCallSettings deleteModelOperationSettings; + private final UnaryCallSettings deleteModelVersionSettings; + private final OperationCallSettings + deleteModelVersionOperationSettings; + private final UnaryCallSettings mergeVersionAliasesSettings; private final UnaryCallSettings exportModelSettings; private final OperationCallSettings< ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata> @@ -186,6 +198,45 @@ public Iterable extractResources(ListModelsResponse payload) { } }; + private static final PagedListDescriptor< + ListModelVersionsRequest, ListModelVersionsResponse, Model> + LIST_MODEL_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListModelVersionsRequest injectToken( + ListModelVersionsRequest payload, String token) { + return ListModelVersionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListModelVersionsRequest injectPageSize( + ListModelVersionsRequest payload, int pageSize) { + return ListModelVersionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListModelVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListModelVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListModelVersionsResponse payload) { + return payload.getModelsList() == null + ? ImmutableList.of() + : payload.getModelsList(); + } + }; + private static final PagedListDescriptor< ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation> LIST_MODEL_EVALUATIONS_PAGE_STR_DESC = @@ -291,6 +342,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse> + LIST_MODEL_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListModelVersionsRequest, + ListModelVersionsResponse, + ListModelVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListModelVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_MODEL_VERSIONS_PAGE_STR_DESC, request, context); + return ListModelVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListModelEvaluationsRequest, ListModelEvaluationsResponse, @@ -366,6 +436,13 @@ public UnaryCallSettings getModelSettings() { return listModelsSettings; } + /** Returns the object with the settings used for calls to listModelVersions. */ + public PagedCallSettings< + ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse> + listModelVersionsSettings() { + return listModelVersionsSettings; + } + /** Returns the object with the settings used for calls to updateModel. */ public UnaryCallSettings updateModelSettings() { return updateModelSettings; @@ -382,6 +459,22 @@ public UnaryCallSettings deleteModelSettings() { return deleteModelOperationSettings; } + /** Returns the object with the settings used for calls to deleteModelVersion. */ + public UnaryCallSettings deleteModelVersionSettings() { + return deleteModelVersionSettings; + } + + /** Returns the object with the settings used for calls to deleteModelVersion. */ + public OperationCallSettings + deleteModelVersionOperationSettings() { + return deleteModelVersionOperationSettings; + } + + /** Returns the object with the settings used for calls to mergeVersionAliases. */ + public UnaryCallSettings mergeVersionAliasesSettings() { + return mergeVersionAliasesSettings; + } + /** Returns the object with the settings used for calls to exportModel. */ public UnaryCallSettings exportModelSettings() { return exportModelSettings; @@ -510,9 +603,14 @@ protected ModelServiceStubSettings(Builder settingsBuilder) throws IOException { uploadModelOperationSettings = settingsBuilder.uploadModelOperationSettings().build(); getModelSettings = settingsBuilder.getModelSettings().build(); listModelsSettings = settingsBuilder.listModelsSettings().build(); + listModelVersionsSettings = settingsBuilder.listModelVersionsSettings().build(); updateModelSettings = settingsBuilder.updateModelSettings().build(); deleteModelSettings = settingsBuilder.deleteModelSettings().build(); deleteModelOperationSettings = settingsBuilder.deleteModelOperationSettings().build(); + deleteModelVersionSettings = settingsBuilder.deleteModelVersionSettings().build(); + deleteModelVersionOperationSettings = + settingsBuilder.deleteModelVersionOperationSettings().build(); + mergeVersionAliasesSettings = settingsBuilder.mergeVersionAliasesSettings().build(); exportModelSettings = settingsBuilder.exportModelSettings().build(); exportModelOperationSettings = settingsBuilder.exportModelOperationSettings().build(); importModelEvaluationSettings = settingsBuilder.importModelEvaluationSettings().build(); @@ -533,10 +631,20 @@ public static class Builder extends StubSettings.Builder listModelsSettings; + private final PagedCallSettings.Builder< + ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse> + listModelVersionsSettings; private final UnaryCallSettings.Builder updateModelSettings; private final UnaryCallSettings.Builder deleteModelSettings; private final OperationCallSettings.Builder deleteModelOperationSettings; + private final UnaryCallSettings.Builder + deleteModelVersionSettings; + private final OperationCallSettings.Builder< + DeleteModelVersionRequest, Empty, DeleteOperationMetadata> + deleteModelVersionOperationSettings; + private final UnaryCallSettings.Builder + mergeVersionAliasesSettings; private final UnaryCallSettings.Builder exportModelSettings; private final OperationCallSettings.Builder< ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata> @@ -598,9 +706,13 @@ protected Builder(ClientContext clientContext) { uploadModelOperationSettings = OperationCallSettings.newBuilder(); getModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listModelsSettings = PagedCallSettings.newBuilder(LIST_MODELS_PAGE_STR_FACT); + listModelVersionsSettings = PagedCallSettings.newBuilder(LIST_MODEL_VERSIONS_PAGE_STR_FACT); updateModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteModelOperationSettings = OperationCallSettings.newBuilder(); + deleteModelVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteModelVersionOperationSettings = OperationCallSettings.newBuilder(); + mergeVersionAliasesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportModelOperationSettings = OperationCallSettings.newBuilder(); importModelEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -616,8 +728,11 @@ protected Builder(ClientContext clientContext) { uploadModelSettings, getModelSettings, listModelsSettings, + listModelVersionsSettings, updateModelSettings, deleteModelSettings, + deleteModelVersionSettings, + mergeVersionAliasesSettings, exportModelSettings, importModelEvaluationSettings, getModelEvaluationSettings, @@ -634,9 +749,14 @@ protected Builder(ModelServiceStubSettings settings) { uploadModelOperationSettings = settings.uploadModelOperationSettings.toBuilder(); getModelSettings = settings.getModelSettings.toBuilder(); listModelsSettings = settings.listModelsSettings.toBuilder(); + listModelVersionsSettings = settings.listModelVersionsSettings.toBuilder(); updateModelSettings = settings.updateModelSettings.toBuilder(); deleteModelSettings = settings.deleteModelSettings.toBuilder(); deleteModelOperationSettings = settings.deleteModelOperationSettings.toBuilder(); + deleteModelVersionSettings = settings.deleteModelVersionSettings.toBuilder(); + deleteModelVersionOperationSettings = + settings.deleteModelVersionOperationSettings.toBuilder(); + mergeVersionAliasesSettings = settings.mergeVersionAliasesSettings.toBuilder(); exportModelSettings = settings.exportModelSettings.toBuilder(); exportModelOperationSettings = settings.exportModelOperationSettings.toBuilder(); importModelEvaluationSettings = settings.importModelEvaluationSettings.toBuilder(); @@ -650,8 +770,11 @@ protected Builder(ModelServiceStubSettings settings) { uploadModelSettings, getModelSettings, listModelsSettings, + listModelVersionsSettings, updateModelSettings, deleteModelSettings, + deleteModelVersionSettings, + mergeVersionAliasesSettings, exportModelSettings, importModelEvaluationSettings, getModelEvaluationSettings, @@ -689,6 +812,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + builder + .listModelVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .updateModelSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) @@ -699,6 +827,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + builder + .deleteModelVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .mergeVersionAliasesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .exportModelSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) @@ -776,6 +914,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deleteModelVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .exportModelOperationSettings() .setInitialCallSettings( @@ -843,6 +1005,13 @@ public UnaryCallSettings.Builder getModelSettings() { return listModelsSettings; } + /** Returns the builder for the settings used for calls to listModelVersions. */ + public PagedCallSettings.Builder< + ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse> + listModelVersionsSettings() { + return listModelVersionsSettings; + } + /** Returns the builder for the settings used for calls to updateModel. */ public UnaryCallSettings.Builder updateModelSettings() { return updateModelSettings; @@ -861,6 +1030,26 @@ public UnaryCallSettings.Builder deleteModelSetti return deleteModelOperationSettings; } + /** Returns the builder for the settings used for calls to deleteModelVersion. */ + public UnaryCallSettings.Builder + deleteModelVersionSettings() { + return deleteModelVersionSettings; + } + + /** Returns the builder for the settings used for calls to deleteModelVersion. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteModelVersionOperationSettings() { + return deleteModelVersionOperationSettings; + } + + /** Returns the builder for the settings used for calls to mergeVersionAliases. */ + public UnaryCallSettings.Builder + mergeVersionAliasesSettings() { + return mergeVersionAliasesSettings; + } + /** Returns the builder for the settings used for calls to exportModel. */ public UnaryCallSettings.Builder exportModelSettings() { return exportModelSettings; 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 3d2357920..8a14c1e09 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 @@ -2037,6 +2037,8 @@ public void createModelDeploymentMonitoringJobTest() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2108,6 +2110,8 @@ public void createModelDeploymentMonitoringJobTest2() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2291,6 +2295,8 @@ public void getModelDeploymentMonitoringJobTest() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2359,6 +2365,8 @@ public void getModelDeploymentMonitoringJobTest2() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2521,6 +2529,8 @@ public void updateModelDeploymentMonitoringJobTest() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( 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 ec1f0add0..ce594ecfc 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 @@ -108,6 +108,8 @@ public void createEndpointTest() throws Exception { ModelDeploymentMonitoringJobName.of( "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -172,6 +174,8 @@ public void createEndpointTest2() throws Exception { ModelDeploymentMonitoringJobName.of( "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -236,6 +240,8 @@ public void createEndpointTest3() throws Exception { ModelDeploymentMonitoringJobName.of( "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -303,6 +309,8 @@ public void createEndpointTest4() throws Exception { ModelDeploymentMonitoringJobName.of( "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -370,6 +378,8 @@ public void getEndpointTest() throws Exception { ModelDeploymentMonitoringJobName.of( "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) .build(); mockEndpointService.addResponse(expectedResponse); @@ -423,6 +433,8 @@ public void getEndpointTest2() throws Exception { ModelDeploymentMonitoringJobName.of( "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) .build(); mockEndpointService.addResponse(expectedResponse); @@ -564,6 +576,8 @@ public void updateEndpointTest() throws Exception { ModelDeploymentMonitoringJobName.of( "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) .build(); mockEndpointService.addResponse(expectedResponse); diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java index c45f82a5d..cda526d8f 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 @@ -1525,6 +1525,7 @@ public void createBatchPredictionJobTest() throws Exception { .toString()) .setDisplayName("displayName1714148973") .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build()) .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build()) .setModelParameters(Value.newBuilder().build()) @@ -1592,6 +1593,7 @@ public void createBatchPredictionJobTest2() throws Exception { .toString()) .setDisplayName("displayName1714148973") .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build()) .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build()) .setModelParameters(Value.newBuilder().build()) @@ -1659,6 +1661,7 @@ public void getBatchPredictionJobTest() throws Exception { .toString()) .setDisplayName("displayName1714148973") .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build()) .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build()) .setModelParameters(Value.newBuilder().build()) @@ -1725,6 +1728,7 @@ public void getBatchPredictionJobTest2() throws Exception { .toString()) .setDisplayName("displayName1714148973") .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build()) .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build()) .setModelParameters(Value.newBuilder().build()) @@ -2041,6 +2045,8 @@ public void createModelDeploymentMonitoringJobTest() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2112,6 +2118,8 @@ public void createModelDeploymentMonitoringJobTest2() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2295,6 +2303,8 @@ public void getModelDeploymentMonitoringJobTest() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2363,6 +2373,8 @@ public void getModelDeploymentMonitoringJobTest2() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( @@ -2525,6 +2537,8 @@ public void updateModelDeploymentMonitoringJobTest() throws Exception { .setDisplayName("displayName1714148973") .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .setState(JobState.forNumber(0)) + .setLatestMonitoringPipelineMetadata( + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder().build()) .addAllModelDeploymentMonitoringObjectiveConfigs( new ArrayList()) .setModelDeploymentMonitoringScheduleConfig( 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 8da9eb3fd..be3f566f4 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 @@ -120,6 +120,28 @@ public void listModels( } } + @Override + public void listModelVersions( + ListModelVersionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListModelVersionsResponse) { + requests.add(request); + responseObserver.onNext(((ListModelVersionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListModelVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListModelVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateModel(UpdateModelRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -160,6 +182,48 @@ public void deleteModel(DeleteModelRequest request, StreamObserver re } } + @Override + public void deleteModelVersion( + DeleteModelVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteModelVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void mergeVersionAliases( + MergeVersionAliasesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Model) { + requests.add(request); + responseObserver.onNext(((Model) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method MergeVersionAliases, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Model.class.getName(), + Exception.class.getName()))); + } + } + @Override public void exportModel(ExportModelRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/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 882e801b2..f79407848 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 @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -95,6 +96,7 @@ public void uploadModelTest() throws Exception { UploadModelResponse expectedResponse = UploadModelResponse.newBuilder() .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .build(); Operation resultOperation = Operation.newBuilder() @@ -144,6 +146,7 @@ public void uploadModelTest2() throws Exception { UploadModelResponse expectedResponse = UploadModelResponse.newBuilder() .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .build(); Operation resultOperation = Operation.newBuilder() @@ -193,8 +196,13 @@ public void getModelTest() throws Exception { Model expectedResponse = Model.newBuilder() .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setVersionId("versionId-1407102957") + .addAllVersionAliases(new ArrayList()) + .setVersionCreateTime(Timestamp.newBuilder().build()) + .setVersionUpdateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setVersionDescription("versionDescription-1736173564") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().build()) @@ -252,8 +260,13 @@ public void getModelTest2() throws Exception { Model expectedResponse = Model.newBuilder() .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setVersionId("versionId-1407102957") + .addAllVersionAliases(new ArrayList()) + .setVersionCreateTime(Timestamp.newBuilder().build()) + .setVersionUpdateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setVersionDescription("versionDescription-1736173564") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().build()) @@ -394,13 +407,106 @@ public void listModelsExceptionTest2() throws Exception { } } + @Test + public void listModelVersionsTest() throws Exception { + Model responsesElement = Model.newBuilder().build(); + ListModelVersionsResponse expectedResponse = + ListModelVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllModels(Arrays.asList(responsesElement)) + .build(); + mockModelService.addResponse(expectedResponse); + + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + + ListModelVersionsPagedResponse pagedListResponse = client.listModelVersions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getModelsList().get(0), resources.get(0)); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelVersionsRequest actualRequest = ((ListModelVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + client.listModelVersions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listModelVersionsTest2() throws Exception { + Model responsesElement = Model.newBuilder().build(); + ListModelVersionsResponse expectedResponse = + ListModelVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllModels(Arrays.asList(responsesElement)) + .build(); + mockModelService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListModelVersionsPagedResponse pagedListResponse = client.listModelVersions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getModelsList().get(0), resources.get(0)); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelVersionsRequest actualRequest = ((ListModelVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + String name = "name3373707"; + client.listModelVersions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateModelTest() throws Exception { Model expectedResponse = Model.newBuilder() .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setVersionId("versionId-1407102957") + .addAllVersionAliases(new ArrayList()) + .setVersionCreateTime(Timestamp.newBuilder().build()) + .setVersionUpdateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .setVersionDescription("versionDescription-1736173564") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().build()) @@ -540,6 +646,224 @@ public void deleteModelExceptionTest2() throws Exception { } } + @Test + public void deleteModelVersionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteModelVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockModelService.addResponse(resultOperation); + + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + + client.deleteModelVersionAsync(name).get(); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteModelVersionRequest actualRequest = ((DeleteModelVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteModelVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + client.deleteModelVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteModelVersionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteModelVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockModelService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteModelVersionAsync(name).get(); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteModelVersionRequest actualRequest = ((DeleteModelVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteModelVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + String name = "name3373707"; + client.deleteModelVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void mergeVersionAliasesTest() throws Exception { + Model expectedResponse = + Model.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setVersionId("versionId-1407102957") + .addAllVersionAliases(new ArrayList()) + .setVersionCreateTime(Timestamp.newBuilder().build()) + .setVersionUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersionDescription("versionDescription-1736173564") + .setPredictSchemata(PredictSchemata.newBuilder().build()) + .setMetadataSchemaUri("metadataSchemaUri781971868") + .setMetadata(Value.newBuilder().build()) + .addAllSupportedExportFormats(new ArrayList()) + .setTrainingPipeline( + TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]") + .toString()) + .setContainerSpec(ModelContainerSpec.newBuilder().build()) + .setArtifactUri("artifactUri-1130062278") + .addAllSupportedDeploymentResourcesTypes(new ArrayList()) + .addAllSupportedInputStorageFormats(new ArrayList()) + .addAllSupportedOutputStorageFormats(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllDeployedModels(new ArrayList()) + .setExplanationSpec(ExplanationSpec.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .build(); + mockModelService.addResponse(expectedResponse); + + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + List versionAliases = new ArrayList<>(); + + Model actualResponse = client.mergeVersionAliases(name, versionAliases); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MergeVersionAliasesRequest actualRequest = ((MergeVersionAliasesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(versionAliases, actualRequest.getVersionAliasesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void mergeVersionAliasesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + List versionAliases = new ArrayList<>(); + client.mergeVersionAliases(name, versionAliases); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void mergeVersionAliasesTest2() throws Exception { + Model expectedResponse = + Model.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setVersionId("versionId-1407102957") + .addAllVersionAliases(new ArrayList()) + .setVersionCreateTime(Timestamp.newBuilder().build()) + .setVersionUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersionDescription("versionDescription-1736173564") + .setPredictSchemata(PredictSchemata.newBuilder().build()) + .setMetadataSchemaUri("metadataSchemaUri781971868") + .setMetadata(Value.newBuilder().build()) + .addAllSupportedExportFormats(new ArrayList()) + .setTrainingPipeline( + TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]") + .toString()) + .setContainerSpec(ModelContainerSpec.newBuilder().build()) + .setArtifactUri("artifactUri-1130062278") + .addAllSupportedDeploymentResourcesTypes(new ArrayList()) + .addAllSupportedInputStorageFormats(new ArrayList()) + .addAllSupportedOutputStorageFormats(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllDeployedModels(new ArrayList()) + .setExplanationSpec(ExplanationSpec.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .build(); + mockModelService.addResponse(expectedResponse); + + String name = "name3373707"; + List versionAliases = new ArrayList<>(); + + Model actualResponse = client.mergeVersionAliases(name, versionAliases); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MergeVersionAliasesRequest actualRequest = ((MergeVersionAliasesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(versionAliases, actualRequest.getVersionAliasesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void mergeVersionAliasesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + String name = "name3373707"; + List versionAliases = new ArrayList<>(); + client.mergeVersionAliases(name, versionAliases); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void exportModelTest() throws Exception { ExportModelResponse expectedResponse = ExportModelResponse.newBuilder().build(); 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 fa331892d..bc8baa411 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 @@ -102,6 +102,8 @@ public void createTrainingPipelineTest() throws Exception { .setTrainingTaskInputs(Value.newBuilder().build()) .setTrainingTaskMetadata(Value.newBuilder().build()) .setModelToUpload(Model.newBuilder().build()) + .setModelId("modelId1226956324") + .setParentModel("parentModel998431903") .setState(PipelineState.forNumber(0)) .setError(Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -160,6 +162,8 @@ public void createTrainingPipelineTest2() throws Exception { .setTrainingTaskInputs(Value.newBuilder().build()) .setTrainingTaskMetadata(Value.newBuilder().build()) .setModelToUpload(Model.newBuilder().build()) + .setModelId("modelId1226956324") + .setParentModel("parentModel998431903") .setState(PipelineState.forNumber(0)) .setError(Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -218,6 +222,8 @@ public void getTrainingPipelineTest() throws Exception { .setTrainingTaskInputs(Value.newBuilder().build()) .setTrainingTaskMetadata(Value.newBuilder().build()) .setModelToUpload(Model.newBuilder().build()) + .setModelId("modelId1226956324") + .setParentModel("parentModel998431903") .setState(PipelineState.forNumber(0)) .setError(Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -274,6 +280,8 @@ public void getTrainingPipelineTest2() throws Exception { .setTrainingTaskInputs(Value.newBuilder().build()) .setTrainingTaskMetadata(Value.newBuilder().build()) .setModelToUpload(Model.newBuilder().build()) + .setModelId("modelId1226956324") + .setParentModel("parentModel998431903") .setState(PipelineState.forNumber(0)) .setError(Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) 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 55ae5bc86..586e3d56b 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 @@ -87,6 +87,7 @@ public void predictTest() throws Exception { .addAllPredictions(new ArrayList()) .setDeployedModelId("deployedModelId-1817547906") .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .setModelDisplayName("modelDisplayName1578770308") .build(); mockPredictionService.addResponse(expectedResponse); @@ -134,6 +135,7 @@ public void predictTest2() throws Exception { .addAllPredictions(new ArrayList()) .setDeployedModelId("deployedModelId-1817547906") .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setModelVersionId("modelVersionId-2006125846") .setModelDisplayName("modelDisplayName1578770308") .build(); mockPredictionService.addResponse(expectedResponse); diff --git a/grpc-google-cloud-aiplatform-v1/pom.xml b/grpc-google-cloud-aiplatform-v1/pom.xml index 28257bbb9..d8b71ed2b 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 - 2.8.9 + 2.9.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 2.8.9 + 2.9.0 diff --git a/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 38938cab3..8849da687 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.14.9 + 0.15.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 2.8.9 + 2.9.0 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 58a5ded68..d9c664efb 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 @@ -169,6 +169,53 @@ private ModelServiceGrpc() {} return getListModelsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse> + getListModelVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelVersions", + requestType = com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse> + getListModelVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse> + getListModelVersionsMethod; + if ((getListModelVersionsMethod = ModelServiceGrpc.getListModelVersionsMethod) == null) { + synchronized (ModelServiceGrpc.class) { + if ((getListModelVersionsMethod = ModelServiceGrpc.getListModelVersionsMethod) == null) { + ModelServiceGrpc.getListModelVersionsMethod = + getListModelVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModelVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ModelServiceMethodDescriptorSupplier("ListModelVersions")) + .build(); + } + } + } + return getListModelVersionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.UpdateModelRequest, com.google.cloud.aiplatform.v1beta1.Model> @@ -257,6 +304,100 @@ private ModelServiceGrpc() {} return getDeleteModelMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, + com.google.longrunning.Operation> + getDeleteModelVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteModelVersion", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, + com.google.longrunning.Operation> + getDeleteModelVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, + com.google.longrunning.Operation> + getDeleteModelVersionMethod; + if ((getDeleteModelVersionMethod = ModelServiceGrpc.getDeleteModelVersionMethod) == null) { + synchronized (ModelServiceGrpc.class) { + if ((getDeleteModelVersionMethod = ModelServiceGrpc.getDeleteModelVersionMethod) == null) { + ModelServiceGrpc.getDeleteModelVersionMethod = + getDeleteModelVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModelVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ModelServiceMethodDescriptorSupplier("DeleteModelVersion")) + .build(); + } + } + } + return getDeleteModelVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, + com.google.cloud.aiplatform.v1beta1.Model> + getMergeVersionAliasesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MergeVersionAliases", + requestType = com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Model.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, + com.google.cloud.aiplatform.v1beta1.Model> + getMergeVersionAliasesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, + com.google.cloud.aiplatform.v1beta1.Model> + getMergeVersionAliasesMethod; + if ((getMergeVersionAliasesMethod = ModelServiceGrpc.getMergeVersionAliasesMethod) == null) { + synchronized (ModelServiceGrpc.class) { + if ((getMergeVersionAliasesMethod = ModelServiceGrpc.getMergeVersionAliasesMethod) + == null) { + ModelServiceGrpc.getMergeVersionAliasesMethod = + getMergeVersionAliasesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "MergeVersionAliases")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance())) + .setSchemaDescriptor( + new ModelServiceMethodDescriptorSupplier("MergeVersionAliases")) + .build(); + } + } + } + return getMergeVersionAliasesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.ExportModelRequest, com.google.longrunning.Operation> getExportModelMethod; @@ -638,6 +779,21 @@ public void listModels( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); } + /** + * + * + *
+     * Lists versions of the specified model.
+     * 
+ */ + public void listModelVersions( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelVersionsMethod(), responseObserver); + } + /** * * @@ -669,6 +825,37 @@ public void deleteModel( getDeleteModelMethod(), responseObserver); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public void deleteModelVersion( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public void mergeVersionAliases( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMergeVersionAliasesMethod(), responseObserver); + } + /** * * @@ -784,6 +971,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.aiplatform.v1beta1.ListModelsRequest, com.google.cloud.aiplatform.v1beta1.ListModelsResponse>( this, METHODID_LIST_MODELS))) + .addMethod( + getListModelVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse>( + this, METHODID_LIST_MODEL_VERSIONS))) .addMethod( getUpdateModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -796,6 +990,19 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteModelRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) + .addMethod( + getDeleteModelVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL_VERSION))) + .addMethod( + getMergeVersionAliasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, + com.google.cloud.aiplatform.v1beta1.Model>( + this, METHODID_MERGE_VERSION_ALIASES))) .addMethod( getExportModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -904,6 +1111,23 @@ public void listModels( getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Lists versions of the specified model.
+     * 
+ */ + public void listModelVersions( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -939,6 +1163,41 @@ public void deleteModel( responseObserver); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public void deleteModelVersion( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteModelVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public void mergeVersionAliases( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMergeVersionAliasesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1103,6 +1362,19 @@ public com.google.cloud.aiplatform.v1beta1.ListModelsResponse listModels( getChannel(), getListModelsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists versions of the specified model.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse listModelVersions( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelVersionsMethod(), getCallOptions(), request); + } + /** * * @@ -1132,6 +1404,35 @@ public com.google.longrunning.Operation deleteModel( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public com.google.longrunning.Operation deleteModelVersion( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Model mergeVersionAliases( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMergeVersionAliasesMethod(), getCallOptions(), request); + } + /** * * @@ -1274,6 +1575,20 @@ protected ModelServiceFutureStub build( getChannel().newCall(getListModelsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists versions of the specified model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse> + listModelVersions(com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), request); + } + /** * * @@ -1304,6 +1619,37 @@ protected ModelServiceFutureStub build( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteModelVersion(com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteModelVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Model> + mergeVersionAliases( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMergeVersionAliasesMethod(), getCallOptions()), request); + } + /** * * @@ -1397,14 +1743,17 @@ protected ModelServiceFutureStub build( private static final int METHODID_UPLOAD_MODEL = 0; private static final int METHODID_GET_MODEL = 1; private static final int METHODID_LIST_MODELS = 2; - private static final int METHODID_UPDATE_MODEL = 3; - private static final int METHODID_DELETE_MODEL = 4; - private static final int METHODID_EXPORT_MODEL = 5; - private static final int METHODID_IMPORT_MODEL_EVALUATION = 6; - private static final int METHODID_GET_MODEL_EVALUATION = 7; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 8; - private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 9; - private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 10; + private static final int METHODID_LIST_MODEL_VERSIONS = 3; + private static final int METHODID_UPDATE_MODEL = 4; + private static final int METHODID_DELETE_MODEL = 5; + private static final int METHODID_DELETE_MODEL_VERSION = 6; + private static final int METHODID_MERGE_VERSION_ALIASES = 7; + private static final int METHODID_EXPORT_MODEL = 8; + private static final int METHODID_IMPORT_MODEL_EVALUATION = 9; + private static final int METHODID_GET_MODEL_EVALUATION = 10; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 11; + private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 12; + private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 13; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1440,6 +1789,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_MODEL_VERSIONS: + serviceImpl.listModelVersions( + (com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse>) + responseObserver); + break; case METHODID_UPDATE_MODEL: serviceImpl.updateModel( (com.google.cloud.aiplatform.v1beta1.UpdateModelRequest) request, @@ -1451,6 +1807,17 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.DeleteModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_MODEL_VERSION: + serviceImpl.deleteModelVersion( + (com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MERGE_VERSION_ALIASES: + serviceImpl.mergeVersionAliases( + (com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_EXPORT_MODEL: serviceImpl.exportModel( (com.google.cloud.aiplatform.v1beta1.ExportModelRequest) request, @@ -1556,8 +1923,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUploadModelMethod()) .addMethod(getGetModelMethod()) .addMethod(getListModelsMethod()) + .addMethod(getListModelVersionsMethod()) .addMethod(getUpdateModelMethod()) .addMethod(getDeleteModelMethod()) + .addMethod(getDeleteModelVersionMethod()) + .addMethod(getMergeVersionAliasesMethod()) .addMethod(getExportModelMethod()) .addMethod(getImportModelEvaluationMethod()) .addMethod(getGetModelEvaluationMethod()) diff --git a/pom.xml b/pom.xml index e651abd56..17b93effa 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 2.8.9 + 2.9.0 Google Cloud Vertex AI Parent https://github.com/googleapis/java- @@ -61,32 +61,32 @@ com.google.cloud google-cloud-aiplatform - 2.8.9 + 2.9.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 2.8.9 + 2.9.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.14.9 + 0.15.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 2.8.9 + 2.9.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.14.9 + 0.15.0 com.google.cloud google-cloud-shared-dependencies - 2.10.0 + 2.12.0 pom import @@ -124,7 +124,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.2 + 3.3.0 diff --git a/proto-google-cloud-aiplatform-v1/pom.xml b/proto-google-cloud-aiplatform-v1/pom.xml index a17792fac..179cf3cb2 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 - 2.8.9 + 2.9.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 2.8.9 + 2.9.0 diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java index 57a86cde2..676c774b5 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 @@ -72,14 +72,14 @@ private ActiveLearningConfig( break; case 8: { - humanLabelingBudgetCase_ = 1; humanLabelingBudget_ = input.readInt64(); + humanLabelingBudgetCase_ = 1; break; } case 16: { - humanLabelingBudgetCase_ = 2; humanLabelingBudget_ = input.readInt32(); + humanLabelingBudgetCase_ = 2; break; } case 26: @@ -125,6 +125,8 @@ private ActiveLearningConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java index 5a20c1061..f6ae56def 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java @@ -113,6 +113,8 @@ private AddContextArtifactsAndExecutionsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsResponse.java index 5c0ae0aa5..9253ed46d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsResponse.java @@ -81,6 +81,8 @@ private AddContextArtifactsAndExecutionsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java index ac5650960..52a56c180 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java @@ -100,6 +100,8 @@ private AddContextChildrenRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenResponse.java index 9c25b5c0e..3dd4fa27f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenResponse.java @@ -79,6 +79,8 @@ private AddContextChildrenResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java index 6186779ab..884065861 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java @@ -101,6 +101,8 @@ private AddExecutionEventsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsResponse.java index 9afb2b7d7..570b5e3dd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsResponse.java @@ -79,6 +79,8 @@ private AddExecutionEventsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java index dfa6b64cd..ddee2ca13 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java @@ -104,6 +104,8 @@ private AddTrialMeasurementRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java index 5226577cf..b82800cc3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java @@ -180,6 +180,8 @@ private Annotation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -628,7 +630,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -691,7 +693,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -722,7 +724,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2434,7 +2436,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2498,7 +2500,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2529,7 +2531,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2567,7 +2569,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2602,11 +2604,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java index c67f71827..a3df5ee5d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java @@ -365,7 +365,12 @@ public interface AnnotationOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java index 732b9120b..07ea7097f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java @@ -134,6 +134,8 @@ private AnnotationSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java index 787e2c32f..94b13270a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java @@ -202,6 +202,8 @@ private Artifact( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -641,7 +643,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -686,7 +688,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -708,7 +710,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2100,7 +2102,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2146,7 +2148,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2168,7 +2170,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2197,7 +2199,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2223,11 +2225,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java index 391ec6ee9..7975e36cc 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java @@ -191,7 +191,12 @@ public interface ArtifactOrBuilder * * map<string, string> labels = 10; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java index c24a10747..866e08f10 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java @@ -151,6 +151,8 @@ private Attribution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -555,10 +557,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (baselineOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(baselineOutputValue_) != 0) { output.writeDouble(1, baselineOutputValue_); } - if (instanceOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(instanceOutputValue_) != 0) { output.writeDouble(2, instanceOutputValue_); } if (featureAttributions_ != null) { @@ -574,7 +576,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputDisplayName_); } - if (approximationError_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(approximationError_) != 0) { output.writeDouble(6, approximationError_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) { @@ -589,10 +591,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (baselineOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(baselineOutputValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, baselineOutputValue_); } - if (instanceOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(instanceOutputValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, instanceOutputValue_); } if (featureAttributions_ != null) { @@ -614,7 +616,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputDisplayName_); } - if (approximationError_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(approximationError_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, approximationError_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java index aefe7db85..b1bfe746e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java @@ -91,6 +91,8 @@ private AutomaticResources( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java index 6b426771e..9e4c04b89 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java @@ -95,6 +95,8 @@ private AutoscalingMetricSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java index d4e5dbe59..66a44cca5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java @@ -95,6 +95,8 @@ private AvroSource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java index 72068aa3b..c930ec2c1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java @@ -98,6 +98,8 @@ private BatchCreateFeaturesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java index 08b431e05..9e0203fc2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java @@ -103,6 +103,8 @@ private BatchCreateFeaturesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java index 766fd08dc..8e11df45c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java @@ -93,6 +93,8 @@ private BatchCreateFeaturesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java index e1f2e7c7d..80fe3e2a5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java @@ -105,6 +105,8 @@ private BatchCreateTensorboardRunsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java index de9e2e39c..77229fdc7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java @@ -95,6 +95,8 @@ private BatchCreateTensorboardRunsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java index 8631306d2..240de08c6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java @@ -106,6 +106,8 @@ private BatchCreateTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java index d3007d9f9..6316d8c0c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java @@ -97,6 +97,8 @@ private BatchCreateTensorboardTimeSeriesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java index 3743ca9ec..3a2f42668 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java @@ -106,6 +106,8 @@ private BatchDedicatedResources( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 249576963..a00cc245f 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 @@ -117,6 +117,8 @@ private BatchMigrateResourcesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -407,6 +409,8 @@ private PartialResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1313,8 +1317,9 @@ public Builder mergeError(com.google.rpc.Status value) { } else { if (resultCase_ == 2) { errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); } - errorBuilder_.setMessage(value); } resultCase_ = 2; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java index 708b9fd3f..079b0895a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java @@ -104,6 +104,8 @@ private BatchMigrateResourcesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java index 83a269d36..45bad4adf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java @@ -96,6 +96,8 @@ private BatchMigrateResourcesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 51ae05337..34edea591 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 @@ -403,6 +403,8 @@ private BatchPredictionJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -663,6 +665,8 @@ private InputConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1427,8 +1431,9 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { } else { if (sourceCase_ == 2) { gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); } - gcsSourceBuilder_.setMessage(value); } sourceCase_ = 2; return this; @@ -1656,8 +1661,9 @@ public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1.BigQuerySource } else { if (sourceCase_ == 3) { bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); } - bigquerySourceBuilder_.setMessage(value); } sourceCase_ = 3; return this; @@ -2265,6 +2271,8 @@ private OutputConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3222,8 +3230,9 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination } else { if (destinationCase_ == 2) { gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); } - gcsDestinationBuilder_.setMessage(value); } destinationCase_ = 2; return this; @@ -3595,8 +3604,9 @@ public Builder mergeBigqueryDestination( } else { if (destinationCase_ == 3) { bigqueryDestinationBuilder_.mergeFrom(value); + } else { + bigqueryDestinationBuilder_.setMessage(value); } - bigqueryDestinationBuilder_.setMessage(value); } destinationCase_ = 3; return this; @@ -4140,6 +4150,8 @@ private OutputInfo( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -6516,7 +6528,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -6559,7 +6571,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -6580,7 +6592,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -11849,7 +11861,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -11893,7 +11905,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -11914,7 +11926,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -11942,7 +11954,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -11967,11 +11979,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java index 06b881804..665e3e1f8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java @@ -974,7 +974,12 @@ public interface BatchPredictionJobOrBuilder * * map<string, string> labels = 19; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java index 4d84fc0e0..a9e931cd1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java @@ -98,6 +98,8 @@ private BatchReadFeatureValuesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java index b2e44fda2..b524e63a2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java @@ -173,6 +173,8 @@ private BatchReadFeatureValuesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -304,6 +306,8 @@ private PassThroughField( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1124,6 +1128,8 @@ private EntityTypeSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3769,8 +3775,9 @@ public Builder mergeCsvReadInstances(com.google.cloud.aiplatform.v1.CsvSource va } else { if (readOptionCase_ == 3) { csvReadInstancesBuilder_.mergeFrom(value); + } else { + csvReadInstancesBuilder_.setMessage(value); } - csvReadInstancesBuilder_.setMessage(value); } readOptionCase_ = 3; return this; @@ -4042,8 +4049,9 @@ public Builder mergeBigqueryReadInstances(com.google.cloud.aiplatform.v1.BigQuer } else { if (readOptionCase_ == 5) { bigqueryReadInstancesBuilder_.mergeFrom(value); + } else { + bigqueryReadInstancesBuilder_.setMessage(value); } - bigqueryReadInstancesBuilder_.setMessage(value); } readOptionCase_ = 5; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesResponse.java index 4a31f3ac2..04fddd37d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesResponse.java @@ -80,6 +80,8 @@ private BatchReadFeatureValuesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java index 57850a829..5fce474c8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java @@ -103,6 +103,8 @@ private BatchReadTensorboardTimeSeriesDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java index a3c950ee5..d9f79f04e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java @@ -97,6 +97,8 @@ private BatchReadTensorboardTimeSeriesDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java index 0bd43efff..31cb34afc 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java @@ -88,6 +88,8 @@ private BigQueryDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java index ffa9b9095..7c48aaa78 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java @@ -88,6 +88,8 @@ private BigQuerySource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java index 38c7923ec..b985fc5d8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java @@ -88,6 +88,8 @@ private BlurBaselineConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -146,7 +148,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxBlurSigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(maxBlurSigma_) != 0) { output.writeFloat(1, maxBlurSigma_); } unknownFields.writeTo(output); @@ -158,7 +160,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maxBlurSigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(maxBlurSigma_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, maxBlurSigma_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java index 0110499a8..5888a70e1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java @@ -105,6 +105,8 @@ private BoolArray( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java index 76fc8fdc6..572b93118 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java @@ -89,6 +89,8 @@ private CancelBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java index b990a4bfe..4a1e75712 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java @@ -88,6 +88,8 @@ private CancelCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java index fa0efacc6..8a47d7ba3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java @@ -88,6 +88,8 @@ private CancelDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java index 2974e463c..933f8ab60 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java @@ -90,6 +90,8 @@ private CancelHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java index 36ae3241f..32778c83c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java @@ -88,6 +88,8 @@ private CancelPipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java index 212f8e30b..80ac40ef8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java @@ -88,6 +88,8 @@ private CancelTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java index 6a46f3ea8..0b6f7b15f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java @@ -117,6 +117,8 @@ private CheckTrialEarlyStoppingStateMetatdata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java index 40b426c99..88c763596 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java @@ -90,6 +90,8 @@ private CheckTrialEarlyStoppingStateRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java index 071201c83..26ce4895b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java @@ -86,6 +86,8 @@ private CheckTrialEarlyStoppingStateResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java index 3244d5776..b562c636a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java @@ -117,6 +117,8 @@ private CompleteTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java index 482415e6a..9df99d43b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java @@ -95,6 +95,8 @@ private CompletionStats( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java index 1bd2c6f9a..36dda4be7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java @@ -88,6 +88,8 @@ private ContainerRegistryDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java index 96c3c6d6a..778115cfc 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java @@ -123,6 +123,8 @@ private ContainerSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java index 3166be5ec..c0dd08136 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java @@ -197,6 +197,8 @@ private Context( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -427,7 +429,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -472,7 +474,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -494,7 +496,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1808,7 +1810,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1854,7 +1856,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1876,7 +1878,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1905,7 +1907,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1931,11 +1933,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java index 977c9929e..8036251b7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java @@ -164,7 +164,12 @@ public interface ContextOrBuilder * * map<string, string> labels = 9; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java index acac0d0d7..1e7434d59 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java @@ -112,6 +112,8 @@ private CreateArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java index ec8c61416..159310f10 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java @@ -106,6 +106,8 @@ private CreateBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java index 172a68b53..67b25fa3a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java @@ -112,6 +112,8 @@ private CreateContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java index 2f7e1d6cb..ee0711520 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java @@ -104,6 +104,8 @@ private CreateCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java index 697fa9f18..beb8e0c4f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java @@ -104,6 +104,8 @@ private CreateDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java index a35142f1b..c421b4275 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java @@ -97,6 +97,8 @@ private CreateDatasetOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java index bae4872b9..5476fb536 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java @@ -104,6 +104,8 @@ private CreateDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java index 902d38e20..54345bcfe 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java @@ -97,6 +97,8 @@ private CreateEndpointOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java index be4827232..f97133c43 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java @@ -112,6 +112,8 @@ private CreateEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java index 8dbb7202e..9714b6d2c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java @@ -97,6 +97,8 @@ private CreateEntityTypeOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java index c8d077a64..936508098 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java @@ -112,6 +112,8 @@ private CreateEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java index bfed8f0ee..f8bf38ff4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java @@ -112,6 +112,8 @@ private CreateExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java index 2bb2050df..80d9644d7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java @@ -97,6 +97,8 @@ private CreateFeatureOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java index 815c55150..10496b51b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java @@ -112,6 +112,8 @@ private CreateFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java index bcec92f10..ae47b2895 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java @@ -98,6 +98,8 @@ private CreateFeaturestoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java index 97403e7fe..6fb3c29b6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java @@ -112,6 +112,8 @@ private CreateFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java index d1c72aeab..7eef099ad 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java @@ -107,6 +107,8 @@ private CreateHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java index 54a8c418f..3729662e9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java @@ -99,6 +99,8 @@ private CreateIndexEndpointOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java index ad227d18a..4e1620666 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java @@ -104,6 +104,8 @@ private CreateIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java index 370181a75..6b4569e28 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java @@ -115,6 +115,8 @@ private CreateIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java index abe4c10d4..f2846ea1e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java @@ -104,6 +104,8 @@ private CreateIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java index cff75a524..0ed596609 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java @@ -112,6 +112,8 @@ private CreateMetadataSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java index 8a73bdc8c..1b030293e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java @@ -98,6 +98,8 @@ private CreateMetadataStoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java index 5e1a679bb..050394f73 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java @@ -112,6 +112,8 @@ private CreateMetadataStoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java index b8d7529af..2f9b45613 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java @@ -108,6 +108,8 @@ private CreateModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java index 1ebf8db24..5fdf30cd7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java @@ -112,6 +112,8 @@ private CreatePipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java index f7ff501b6..8036c4014 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java @@ -99,6 +99,8 @@ private CreateSpecialistPoolOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java index e41c4dfdf..ef1df0053 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java @@ -104,6 +104,8 @@ private CreateSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java index 5eba7d8d8..48d1e353b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java @@ -104,6 +104,8 @@ private CreateStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java index d9e02ba54..bb6d21926 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java @@ -114,6 +114,8 @@ private CreateTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java index 8779c2c3f..60d69bd74 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java @@ -97,6 +97,8 @@ private CreateTensorboardOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java index 8c8262b5b..a41706059 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java @@ -104,6 +104,8 @@ private CreateTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java index 5b8e83777..5d5d288b7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java @@ -112,6 +112,8 @@ private CreateTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java index 73210033a..6425ec96c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java @@ -114,6 +114,8 @@ private CreateTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java index da79a32c4..31fe97c9c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java @@ -104,6 +104,8 @@ private CreateTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java index ea3a65dd7..aa1cd3084 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java @@ -104,6 +104,8 @@ private CreateTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java index dc526e016..2e894ede0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java @@ -95,6 +95,8 @@ private CsvDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java index ff4ba1568..930a60be7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java @@ -95,6 +95,8 @@ private CsvSource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java index fbdeb4d68..79d342044 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java @@ -244,6 +244,8 @@ private CustomJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -768,7 +770,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -811,7 +813,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -832,7 +834,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -944,7 +946,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -1000,7 +1002,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1027,7 +1029,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -3196,7 +3198,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3240,7 +3242,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3261,7 +3263,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3289,7 +3291,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -3314,11 +3316,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -3594,7 +3597,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -3650,7 +3653,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3677,7 +3680,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -3711,7 +3714,7 @@ public Builder clearWebAccessUris() { */ public Builder removeWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableWebAccessUris().getMutableMap().remove(key); return this; @@ -3742,11 +3745,12 @@ public java.util.Map getMutableWebAccessUris */ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableWebAccessUris().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java index 2d5ab813d..625082ef2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java @@ -401,7 +401,12 @@ public interface CustomJobOrBuilder * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -540,7 +545,12 @@ public interface CustomJobOrBuilder * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - java.lang.String getWebAccessUrisOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java index 72d48c083..930436c10 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java @@ -100,41 +100,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ebAccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001:i\352Af\n#aiplatform.googleapis.co" + "m/CustomJob\022?projects/{project}/location" - + "s/{location}/customJobs/{custom_job}\"\225\003\n" + + "s/{location}/customJobs/{custom_job}\"\266\003\n" + "\rCustomJobSpec\022J\n\021worker_pool_specs\030\001 \003(" + "\0132*.google.cloud.aiplatform.v1.WorkerPoo" + "lSpecB\003\340A\002\022:\n\nscheduling\030\003 \001(\0132&.google." + "cloud.aiplatform.v1.Scheduling\022\027\n\017servic" + "e_account\030\004 \001(\t\0224\n\007network\030\005 \001(\tB#\372A \n\036c" - + "ompute.googleapis.com/Network\022I\n\025base_ou" - + "tput_directory\030\006 \001(\0132*.google.cloud.aipl" - + "atform.v1.GcsDestination\022B\n\013tensorboard\030" - + "\007 \001(\tB-\340A\001\372A\'\n%aiplatform.googleapis.com" - + "/Tensorboard\022\036\n\021enable_web_access\030\n \001(\010B" - + "\003\340A\001\"\307\002\n\016WorkerPoolSpec\022C\n\016container_spe" - + "c\030\006 \001(\0132).google.cloud.aiplatform.v1.Con" - + "tainerSpecH\000\022L\n\023python_package_spec\030\007 \001(" - + "\0132-.google.cloud.aiplatform.v1.PythonPac" - + "kageSpecH\000\022E\n\014machine_spec\030\001 \001(\0132\'.googl" - + "e.cloud.aiplatform.v1.MachineSpecB\006\340A\001\340A" - + "\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\0227\n\tdisk_sp" - + "ec\030\005 \001(\0132$.google.cloud.aiplatform.v1.Di" - + "skSpecB\006\n\004task\"w\n\rContainerSpec\022\026\n\timage" - + "_uri\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args" - + "\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\".google.cloud.aipla" - + "tform.v1.EnvVar\"\252\001\n\021PythonPackageSpec\022\037\n" - + "\022executor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014packag" - + "e_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001(\t" - + "B\003\340A\002\022\014\n\004args\030\004 \003(\t\022/\n\003env\030\005 \003(\0132\".googl" - + "e.cloud.aiplatform.v1.EnvVar\"_\n\nScheduli" - + "ng\022*\n\007timeout\030\001 \001(\0132\031.google.protobuf.Du" - + "ration\022%\n\035restart_job_on_worker_restart\030" - + "\003 \001(\010B\322\001\n\036com.google.cloud.aiplatform.v1" - + "B\016CustomJobProtoP\001ZDgoogle.golang.org/ge" - + "nproto/googleapis/cloud/aiplatform/v1;ai" - + "platform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032" - + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Clo" - + "ud::AIPlatform::V1b\006proto3" + + "ompute.googleapis.com/Network\022\037\n\022reserve" + + "d_ip_ranges\030\r \003(\tB\003\340A\001\022I\n\025base_output_di" + + "rectory\030\006 \001(\0132*.google.cloud.aiplatform." + + "v1.GcsDestination\022B\n\013tensorboard\030\007 \001(\tB-" + + "\340A\001\372A\'\n%aiplatform.googleapis.com/Tensor" + + "board\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\"\206\003" + + "\n\016WorkerPoolSpec\022C\n\016container_spec\030\006 \001(\013" + + "2).google.cloud.aiplatform.v1.ContainerS" + + "pecH\000\022L\n\023python_package_spec\030\007 \001(\0132-.goo" + + "gle.cloud.aiplatform.v1.PythonPackageSpe" + + "cH\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.cloud" + + ".aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n\rre" + + "plica_count\030\002 \001(\003B\003\340A\001\022=\n\nnfs_mounts\030\004 \003" + + "(\0132$.google.cloud.aiplatform.v1.NfsMount" + + "B\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.google.cloud." + + "aiplatform.v1.DiskSpecB\006\n\004task\"w\n\rContai" + + "nerSpec\022\026\n\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007comma" + + "nd\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\".go" + + "ogle.cloud.aiplatform.v1.EnvVar\"\252\001\n\021Pyth" + + "onPackageSpec\022\037\n\022executor_image_uri\030\001 \001(" + + "\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpyt" + + "hon_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/\n\003e" + + "nv\030\005 \003(\0132\".google.cloud.aiplatform.v1.En" + + "vVar\"_\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.go" + + "ogle.protobuf.Duration\022%\n\035restart_job_on" + + "_worker_restart\030\003 \001(\010B\322\001\n\036com.google.clo" + + "ud.aiplatform.v1B\016CustomJobProtoP\001ZDgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "aiplatform/v1;aiplatform\252\002\032Google.Cloud." + + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" + + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -196,6 +199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scheduling", "ServiceAccount", "Network", + "ReservedIpRanges", "BaseOutputDirectory", "Tensorboard", "EnableWebAccess", @@ -210,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PythonPackageSpec", "MachineSpec", "ReplicaCount", + "NfsMounts", "DiskSpec", "Task", }); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java index 320c12dda..158a9c661 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java @@ -42,6 +42,7 @@ private CustomJobSpec() { workerPoolSpecs_ = java.util.Collections.emptyList(); serviceAccount_ = ""; network_ = ""; + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; tensorboard_ = ""; } @@ -145,6 +146,16 @@ private CustomJobSpec( enableWebAccess_ = input.readBool(); break; } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + reservedIpRanges_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -156,12 +167,17 @@ private CustomJobSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { workerPoolSpecs_ = java.util.Collections.unmodifiableList(workerPoolSpecs_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -446,6 +462,87 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } + public static final int RESERVED_IP_RANGES_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList reservedIpRanges_; + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the reservedIpRanges. + */ + public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { + return reservedIpRanges_; + } + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of reservedIpRanges. + */ + public int getReservedIpRangesCount() { + return reservedIpRanges_.size(); + } + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + public java.lang.String getReservedIpRanges(int index) { + return reservedIpRanges_.get(index); + } + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { + return reservedIpRanges_.getByteString(index); + } + public static final int BASE_OUTPUT_DIRECTORY_FIELD_NUMBER = 6; private com.google.cloud.aiplatform.v1.GcsDestination baseOutputDirectory_; /** @@ -656,6 +753,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableWebAccess_ != false) { output.writeBool(10, enableWebAccess_); } + for (int i = 0; i < reservedIpRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, reservedIpRanges_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -686,6 +786,14 @@ public int getSerializedSize() { if (enableWebAccess_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableWebAccess_); } + { + int dataSize = 0; + for (int i = 0; i < reservedIpRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(reservedIpRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getReservedIpRangesList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -709,6 +817,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getNetwork().equals(other.getNetwork())) return false; + if (!getReservedIpRangesList().equals(other.getReservedIpRangesList())) return false; if (hasBaseOutputDirectory() != other.hasBaseOutputDirectory()) return false; if (hasBaseOutputDirectory()) { if (!getBaseOutputDirectory().equals(other.getBaseOutputDirectory())) return false; @@ -738,6 +847,10 @@ public int hashCode() { hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + if (getReservedIpRangesCount() > 0) { + hash = (37 * hash) + RESERVED_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getReservedIpRangesList().hashCode(); + } if (hasBaseOutputDirectory()) { hash = (37 * hash) + BASE_OUTPUT_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getBaseOutputDirectory().hashCode(); @@ -910,6 +1023,8 @@ public Builder clear() { network_ = ""; + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); if (baseOutputDirectoryBuilder_ == null) { baseOutputDirectory_ = null; } else { @@ -964,6 +1079,11 @@ public com.google.cloud.aiplatform.v1.CustomJobSpec buildPartial() { } result.serviceAccount_ = serviceAccount_; result.network_ = network_; + if (((bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.reservedIpRanges_ = reservedIpRanges_; if (baseOutputDirectoryBuilder_ == null) { result.baseOutputDirectory_ = baseOutputDirectory_; } else { @@ -1058,6 +1178,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CustomJobSpec other) { network_ = other.network_; onChanged(); } + if (!other.reservedIpRanges_.isEmpty()) { + if (reservedIpRanges_.isEmpty()) { + reservedIpRanges_ = other.reservedIpRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.addAll(other.reservedIpRanges_); + } + onChanged(); + } if (other.hasBaseOutputDirectory()) { mergeBaseOutputDirectory(other.getBaseOutputDirectory()); } @@ -1999,6 +2129,228 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList reservedIpRanges_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureReservedIpRangesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reservedIpRanges. + */ + public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { + return reservedIpRanges_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reservedIpRanges. + */ + public int getReservedIpRangesCount() { + return reservedIpRanges_.size(); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + public java.lang.String getReservedIpRanges(int index) { + return reservedIpRanges_.get(index); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { + return reservedIpRanges_.getByteString(index); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The reservedIpRanges to set. + * @return This builder for chaining. + */ + public Builder setReservedIpRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addReservedIpRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addAllReservedIpRanges(java.lang.Iterable values) { + ensureReservedIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservedIpRanges_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReservedIpRanges() { + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.add(value); + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1.GcsDestination baseOutputDirectory_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsDestination, diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java index a64f587ef..da092fa37 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java @@ -208,6 +208,77 @@ public interface CustomJobSpecOrBuilder */ com.google.protobuf.ByteString getNetworkBytes(); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the reservedIpRanges. + */ + java.util.List getReservedIpRangesList(); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of reservedIpRanges. + */ + int getReservedIpRangesCount(); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + java.lang.String getReservedIpRanges(int index); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + com.google.protobuf.ByteString getReservedIpRangesBytes(int index); + /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java index 7ce9e41cd..4356adc55 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java @@ -155,6 +155,8 @@ private DataItem( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -381,7 +383,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -432,7 +434,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -457,7 +459,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1582,7 +1584,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1634,7 +1636,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1659,7 +1661,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1691,7 +1693,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1720,11 +1722,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java index 56c09fa08..a95e033b2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java @@ -198,7 +198,12 @@ public interface DataItemOrBuilder * * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java index 5b34ae08b..4c59bd424 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java @@ -289,6 +289,8 @@ private DataLabelingJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -561,7 +563,7 @@ public int getAnnotationLabelsCount() { @java.lang.Override public boolean containsAnnotationLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotationLabels().getMap().containsKey(key); } @@ -609,7 +611,7 @@ public java.util.Map getAnnotationLabelsMap( public java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -632,7 +634,7 @@ public java.lang.String getAnnotationLabelsOrDefault( @java.lang.Override public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); if (!map.containsKey(key)) { @@ -1118,7 +1120,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1169,7 +1171,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1194,7 +1196,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2605,7 +2607,7 @@ public int getAnnotationLabelsCount() { @java.lang.Override public boolean containsAnnotationLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotationLabels().getMap().containsKey(key); } @@ -2653,7 +2655,7 @@ public java.util.Map getAnnotationLabelsMap( public java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); @@ -2677,7 +2679,7 @@ public java.lang.String getAnnotationLabelsOrDefault( @java.lang.Override public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); @@ -2708,7 +2710,7 @@ public Builder clearAnnotationLabels() { */ public Builder removeAnnotationLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAnnotationLabels().getMutableMap().remove(key); return this; @@ -2735,11 +2737,12 @@ public java.util.Map getMutableAnnotationLab */ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAnnotationLabels().getMutableMap().put(key, value); return this; } @@ -4213,7 +4216,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -4265,7 +4268,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4290,7 +4293,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4322,7 +4325,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4351,11 +4354,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java index 13d545d4b..61d3d140b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java @@ -216,8 +216,12 @@ public interface DataLabelingJobOrBuilder * * map<string, string> annotation_labels = 12; */ + + /* nullable */ java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue); + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -617,7 +621,12 @@ java.lang.String getAnnotationLabelsOrDefault( * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java index c379857d2..8484c24d4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java @@ -194,6 +194,8 @@ private Dataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -678,7 +680,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -733,7 +735,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -760,7 +762,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2548,7 +2550,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2604,7 +2606,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2631,7 +2633,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2665,7 +2667,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2696,11 +2698,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java index b4d64c91a..36894d767 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java @@ -355,7 +355,12 @@ public interface DatasetOrBuilder * * map<string, string> labels = 7; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java index 7a00c5290..512fd5c80 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java @@ -122,6 +122,8 @@ private DedicatedResources( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -240,6 +242,10 @@ public int getMinReplicaCount() { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). * * * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1122,6 +1128,10 @@ public Builder clearMinReplicaCount() { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). * * * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1144,6 +1154,10 @@ public int getMaxReplicaCount() { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). * * * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1169,6 +1183,10 @@ public Builder setMaxReplicaCount(int value) { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). * * * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java index 9aa27ef9a..ca6d18a97 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java @@ -95,6 +95,10 @@ public interface DedicatedResourcesOrBuilder * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). * * * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java index 5900b1ff0..f3b3bddd6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java @@ -96,6 +96,8 @@ private DeleteArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java index ee19c061c..bd4e3304a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java @@ -89,6 +89,8 @@ private DeleteBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java index 9e26a7e25..06934bb56 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java @@ -101,6 +101,8 @@ private DeleteContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java index 5becfab7a..a0c354e75 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java @@ -88,6 +88,8 @@ private DeleteCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java index 72e435c21..0a18b3e51 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java @@ -88,6 +88,8 @@ private DeleteDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java index 8b8dae282..6e77a82c4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java @@ -88,6 +88,8 @@ private DeleteDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java index 0adadd67c..ec62f98a5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java @@ -88,6 +88,8 @@ private DeleteEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java index facf462d8..9d35f9231 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java @@ -93,6 +93,8 @@ private DeleteEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java index d32764610..3d3b18178 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java @@ -96,6 +96,8 @@ private DeleteExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java index 92c579f82..16a48f4d2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java @@ -88,6 +88,8 @@ private DeleteFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java index b5ab7e35e..e65cc9666 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java @@ -93,6 +93,8 @@ private DeleteFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java index 1924b7796..6cfcd3afa 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java @@ -90,6 +90,8 @@ private DeleteHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java index e84d43ef5..71a76865d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java @@ -88,6 +88,8 @@ private DeleteIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java index dee613f94..c96e99acb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java @@ -88,6 +88,8 @@ private DeleteIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java index dc16d9cce..01f2bf69d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java @@ -98,6 +98,8 @@ private DeleteMetadataStoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java index 9bdd893fc..374b74fd7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java @@ -93,6 +93,8 @@ private DeleteMetadataStoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -184,6 +186,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.force is deprecated. See + * google/cloud/aiplatform/v1/metadata_service.proto;l=451 * @return The force. */ @java.lang.Override @@ -662,6 +666,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.force is deprecated. See + * google/cloud/aiplatform/v1/metadata_service.proto;l=451 * @return The force. */ @java.lang.Override @@ -678,6 +684,8 @@ public boolean getForce() { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.force is deprecated. See + * google/cloud/aiplatform/v1/metadata_service.proto;l=451 * @param value The force to set. * @return This builder for chaining. */ @@ -697,6 +705,8 @@ public Builder setForce(boolean value) { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.force is deprecated. See + * google/cloud/aiplatform/v1/metadata_service.proto;l=451 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequestOrBuilder.java index 9f363bab6..2be62b286 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequestOrBuilder.java @@ -65,6 +65,8 @@ public interface DeleteMetadataStoreRequestOrBuilder * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.force is deprecated. See + * google/cloud/aiplatform/v1/metadata_service.proto;l=451 * @return The force. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java index 9f004685d..ae6a02e18 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java @@ -91,6 +91,8 @@ private DeleteModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java index 890b4eea5..adf3cf0a1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java @@ -88,6 +88,8 @@ private DeleteModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java index 0aed72962..7b30f8149 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java @@ -96,6 +96,8 @@ private DeleteOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java index bb1379f2e..780c001f1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java @@ -88,6 +88,8 @@ private DeletePipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java index 4480a7b6a..bee6e722b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java @@ -93,6 +93,8 @@ private DeleteSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java index 42dbacd85..6619e7022 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java @@ -88,6 +88,8 @@ private DeleteStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java index 894d31cd8..8a9d6f85e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java @@ -89,6 +89,8 @@ private DeleteTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java index 8b321a30a..138a10f9c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java @@ -88,6 +88,8 @@ private DeleteTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java index fad05d71f..17cc66a4c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java @@ -88,6 +88,8 @@ private DeleteTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java index 8a8f2026f..0a490ef12 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java @@ -89,6 +89,8 @@ private DeleteTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java index a858e15fe..00f56e64b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java @@ -88,6 +88,8 @@ private DeleteTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java index 95c092999..57523c401 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java @@ -88,6 +88,8 @@ private DeleteTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java index 4df22e015..d2698c779 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java @@ -105,6 +105,8 @@ private DeployIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java index 553b2f0a2..bdd4ad5b9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java @@ -104,6 +104,8 @@ private DeployIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java index f7477b6f9..04365c6f3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java @@ -95,6 +95,8 @@ private DeployIndexResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java index d6ce3dd7e..ca504c785 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java @@ -96,6 +96,8 @@ private DeployModelOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java index d706a59e5..72934204d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java @@ -120,6 +120,8 @@ private DeployModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -321,7 +323,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -372,7 +374,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -397,7 +399,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1201,7 +1203,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -1252,7 +1254,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1277,7 +1279,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1309,7 +1311,7 @@ public Builder clearTrafficSplit() { */ public Builder removeTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().remove(key); return this; @@ -1338,7 +1340,7 @@ public java.util.Map getMutableTrafficSplit */ public Builder putTrafficSplit(java.lang.String key, int value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().put(key, value); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java index 2aa110e34..062dca97b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java @@ -95,6 +95,8 @@ private DeployModelResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java index 0867e92b9..010f409bf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java @@ -227,6 +227,8 @@ private DeployedIndex( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java index 01578f9ce..ed5da525f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java @@ -97,6 +97,8 @@ private DeployedIndexAuthConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -334,6 +336,8 @@ private AuthProvider( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java index cfdc83d5b..6e82dec4b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java @@ -96,6 +96,8 @@ private DeployedIndexRef( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java index cfab60836..05d91e351 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java @@ -209,6 +209,8 @@ private DeployedModel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1515,8 +1517,9 @@ public Builder mergeDedicatedResources( } else { if (predictionResourcesCase_ == 7) { dedicatedResourcesBuilder_.mergeFrom(value); + } else { + dedicatedResourcesBuilder_.setMessage(value); } - dedicatedResourcesBuilder_.setMessage(value); } predictionResourcesCase_ = 7; return this; @@ -1738,8 +1741,9 @@ public Builder mergeAutomaticResources( } else { if (predictionResourcesCase_ == 8) { automaticResourcesBuilder_.mergeFrom(value); + } else { + automaticResourcesBuilder_.setMessage(value); } - automaticResourcesBuilder_.setMessage(value); } predictionResourcesCase_ = 8; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java index f368cb58e..db75acd5c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java @@ -96,6 +96,8 @@ private DeployedModelRef( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java index 757e9164c..16e695476 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java @@ -88,6 +88,8 @@ private DestinationFeatureSetting( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java index 514bd88c4..d08635996 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java @@ -93,6 +93,8 @@ private DiskSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java index 50099ca7e..b2cd88d1e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java @@ -105,6 +105,8 @@ private DoubleArray( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java index 0071c3393..87c63af35 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java @@ -89,6 +89,8 @@ private EncryptionSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java index 1871cb66e..97de4c87f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java @@ -240,6 +240,8 @@ private Endpoint( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -564,7 +566,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -609,7 +611,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -631,7 +633,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -732,7 +734,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -775,7 +777,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -796,7 +798,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1034,7 +1036,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-   * If true, expose the Endpoint via private service connect.
+   * Deprecated: If true, expose the Endpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect],
    * can be set.
@@ -1042,6 +1044,8 @@ public com.google.protobuf.ByteString getNetworkBytes() {
    *
    * bool enable_private_service_connect = 17 [deprecated = true];
    *
+   * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
+   *     See google/cloud/aiplatform/v1/endpoint.proto;l=116
    * @return The enablePrivateServiceConnect.
    */
   @java.lang.Override
@@ -2626,7 +2630,7 @@ public int getTrafficSplitCount() {
     @java.lang.Override
     public boolean containsTrafficSplit(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetTrafficSplit().getMap().containsKey(key);
     }
@@ -2671,7 +2675,7 @@ public java.util.Map getTrafficSplitMap() {
     @java.lang.Override
     public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetTrafficSplit().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2693,7 +2697,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) {
     @java.lang.Override
     public int getTrafficSplitOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetTrafficSplit().getMap();
       if (!map.containsKey(key)) {
@@ -2722,7 +2726,7 @@ public Builder clearTrafficSplit() {
      */
     public Builder removeTrafficSplit(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableTrafficSplit().getMutableMap().remove(key);
       return this;
@@ -2748,7 +2752,7 @@ public java.util.Map getMutableTrafficSplit
      */
     public Builder putTrafficSplit(java.lang.String key, int value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
 
       internalGetMutableTrafficSplit().getMutableMap().put(key, value);
@@ -2925,7 +2929,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -2969,7 +2973,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2990,7 +2994,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -3018,7 +3022,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -3043,11 +3047,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
@@ -3841,7 +3846,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * If true, expose the Endpoint via private service connect.
+     * Deprecated: If true, expose the Endpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect],
      * can be set.
@@ -3849,6 +3854,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      *
      * bool enable_private_service_connect = 17 [deprecated = true];
      *
+     * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
+     *     See google/cloud/aiplatform/v1/endpoint.proto;l=116
      * @return The enablePrivateServiceConnect.
      */
     @java.lang.Override
@@ -3860,7 +3867,7 @@ public boolean getEnablePrivateServiceConnect() {
      *
      *
      * 
-     * If true, expose the Endpoint via private service connect.
+     * Deprecated: If true, expose the Endpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect],
      * can be set.
@@ -3868,6 +3875,8 @@ public boolean getEnablePrivateServiceConnect() {
      *
      * bool enable_private_service_connect = 17 [deprecated = true];
      *
+     * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
+     *     See google/cloud/aiplatform/v1/endpoint.proto;l=116
      * @param value The enablePrivateServiceConnect to set.
      * @return This builder for chaining.
      */
@@ -3882,7 +3891,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) {
      *
      *
      * 
-     * If true, expose the Endpoint via private service connect.
+     * Deprecated: If true, expose the Endpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect],
      * can be set.
@@ -3890,6 +3899,8 @@ public Builder setEnablePrivateServiceConnect(boolean value) {
      *
      * bool enable_private_service_connect = 17 [deprecated = true];
      *
+     * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
+     *     See google/cloud/aiplatform/v1/endpoint.proto;l=116
      * @return This builder for chaining.
      */
     @java.lang.Deprecated
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java
index 5fd1c818d..618cf3c80 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java
@@ -338,7 +338,12 @@ public interface EndpointOrBuilder
    *
    * map<string, string> labels = 7;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
@@ -522,7 +527,7 @@ public interface EndpointOrBuilder
    *
    *
    * 
-   * If true, expose the Endpoint via private service connect.
+   * Deprecated: If true, expose the Endpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect],
    * can be set.
@@ -530,6 +535,8 @@ public interface EndpointOrBuilder
    *
    * bool enable_private_service_connect = 17 [deprecated = true];
    *
+   * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
+   *     See google/cloud/aiplatform/v1/endpoint.proto;l=116
    * @return The enablePrivateServiceConnect.
    */
   @java.lang.Deprecated
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java
index dca3ade89..924f34b57 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java
@@ -167,6 +167,8 @@ private EntityType(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -454,7 +456,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -505,7 +507,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -530,7 +532,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -596,10 +598,9 @@ public com.google.protobuf.ByteString getEtagBytes() {
    *
    *
    * 
-   * Optional. The default monitoring configuration for all Features with value
-   * type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 under this EntityType.
+   * Optional. The default monitoring configuration for all Features with value type
+   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+   * EntityType.
    * If this is populated with
    * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
    * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -620,10 +621,9 @@ public boolean hasMonitoringConfig() {
    *
    *
    * 
-   * Optional. The default monitoring configuration for all Features with value
-   * type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 under this EntityType.
+   * Optional. The default monitoring configuration for all Features with value type
+   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+   * EntityType.
    * If this is populated with
    * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
    * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -646,10 +646,9 @@ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig getMonitoring
    *
    *
    * 
-   * Optional. The default monitoring configuration for all Features with value
-   * type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 under this EntityType.
+   * Optional. The default monitoring configuration for all Features with value type
+   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+   * EntityType.
    * If this is populated with
    * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
    * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -1833,7 +1832,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -1885,7 +1884,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1910,7 +1909,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -1942,7 +1941,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -1971,11 +1970,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
@@ -2122,10 +2122,9 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2145,10 +2144,9 @@ public boolean hasMonitoringConfig() {
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2174,10 +2172,9 @@ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig getMonitoring
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2206,10 +2203,9 @@ public Builder setMonitoringConfig(
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2235,10 +2231,9 @@ public Builder setMonitoringConfig(
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2272,10 +2267,9 @@ public Builder mergeMonitoringConfig(
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2301,10 +2295,9 @@ public Builder clearMonitoringConfig() {
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2325,10 +2318,9 @@ public Builder clearMonitoringConfig() {
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -2353,10 +2345,9 @@ public Builder clearMonitoringConfig() {
      *
      *
      * 
-     * Optional. The default monitoring configuration for all Features with value
-     * type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 under this EntityType.
+     * Optional. The default monitoring configuration for all Features with value type
+     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+     * EntityType.
      * If this is populated with
      * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
      * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java
index 16c30bd7a..48be04ab1 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java
@@ -235,7 +235,12 @@ public interface EntityTypeOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
@@ -286,10 +291,9 @@ public interface EntityTypeOrBuilder
    *
    *
    * 
-   * Optional. The default monitoring configuration for all Features with value
-   * type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 under this EntityType.
+   * Optional. The default monitoring configuration for all Features with value type
+   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+   * EntityType.
    * If this is populated with
    * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
    * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -307,10 +311,9 @@ public interface EntityTypeOrBuilder
    *
    *
    * 
-   * Optional. The default monitoring configuration for all Features with value
-   * type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 under this EntityType.
+   * Optional. The default monitoring configuration for all Features with value type
+   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+   * EntityType.
    * If this is populated with
    * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
    * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
@@ -328,10 +331,9 @@ public interface EntityTypeOrBuilder
    *
    *
    * 
-   * Optional. The default monitoring configuration for all Features with value
-   * type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 under this EntityType.
+   * Optional. The default monitoring configuration for all Features with value type
+   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this
+   * EntityType.
    * If this is populated with
    * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
    * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java
index 859fee19a..2c96f8318 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java
@@ -96,6 +96,8 @@ private EnvVar(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java
index 9399fd453..102e832a0 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java
@@ -134,6 +134,8 @@ private Event(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -565,7 +567,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -616,7 +618,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -641,7 +643,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -1633,7 +1635,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -1685,7 +1687,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1710,7 +1712,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -1742,7 +1744,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -1771,11 +1773,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java
index fe8833069..5cecaf13f 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java
@@ -222,7 +222,12 @@ public interface EventOrBuilder
    *
    * map<string, string> labels = 5;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java
index 78b901bb6..696df6eae 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java
@@ -194,6 +194,8 @@ private Execution(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -708,7 +710,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -753,7 +755,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -775,7 +777,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -2104,7 +2106,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -2150,7 +2152,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2172,7 +2174,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -2201,7 +2203,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -2227,11 +2229,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java
index f628a9b0a..40a983b76 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java
@@ -195,7 +195,12 @@ public interface ExecutionOrBuilder
    *
    * map<string, string> labels = 10;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java
index f56a99382..59250013b 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java
@@ -140,6 +140,8 @@ private ExplainRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java
index c4b6ae793..7df2f5ee9 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java
@@ -113,6 +113,8 @@ private ExplainResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java
index f72495fcd..41c88b4c6 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java
@@ -95,6 +95,8 @@ private Explanation(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java
index be7e2d8a6..c545b72bc 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java
@@ -124,6 +124,8 @@ private ExplanationMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -902,6 +904,8 @@ private InputMetadata(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -1405,6 +1409,8 @@ private FeatureValueDomain(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -1521,16 +1527,16 @@ public final boolean isInitialized() {
 
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-        if (minValue_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(minValue_) != 0) {
           output.writeFloat(1, minValue_);
         }
-        if (maxValue_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(maxValue_) != 0) {
           output.writeFloat(2, maxValue_);
         }
-        if (originalMean_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(originalMean_) != 0) {
           output.writeFloat(3, originalMean_);
         }
-        if (originalStddev_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(originalStddev_) != 0) {
           output.writeFloat(4, originalStddev_);
         }
         unknownFields.writeTo(output);
@@ -1542,16 +1548,16 @@ public int getSerializedSize() {
         if (size != -1) return size;
 
         size = 0;
-        if (minValue_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(minValue_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, minValue_);
         }
-        if (maxValue_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(maxValue_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, maxValue_);
         }
-        if (originalMean_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(originalMean_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, originalMean_);
         }
-        if (originalStddev_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(originalStddev_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, originalStddev_);
         }
         size += unknownFields.getSerializedSize();
@@ -2497,6 +2503,8 @@ private Visualization(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -3626,10 +3634,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
                 .getNumber()) {
           output.writeEnum(3, colorMap_);
         }
-        if (clipPercentUpperbound_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(clipPercentUpperbound_) != 0) {
           output.writeFloat(4, clipPercentUpperbound_);
         }
-        if (clipPercentLowerbound_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(clipPercentLowerbound_) != 0) {
           output.writeFloat(5, clipPercentLowerbound_);
         }
         if (overlayType_
@@ -3665,10 +3673,10 @@ public int getSerializedSize() {
                 .getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, colorMap_);
         }
-        if (clipPercentUpperbound_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(clipPercentUpperbound_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, clipPercentUpperbound_);
         }
-        if (clipPercentLowerbound_ != 0F) {
+        if (java.lang.Float.floatToRawIntBits(clipPercentLowerbound_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, clipPercentLowerbound_);
         }
         if (overlayType_
@@ -8894,6 +8902,8 @@ private OutputMetadata(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -9745,8 +9755,9 @@ public Builder mergeIndexDisplayNameMapping(com.google.protobuf.Value value) {
         } else {
           if (displayNameMappingCase_ == 1) {
             indexDisplayNameMappingBuilder_.mergeFrom(value);
+          } else {
+            indexDisplayNameMappingBuilder_.setMessage(value);
           }
-          indexDisplayNameMappingBuilder_.setMessage(value);
         }
         displayNameMappingCase_ = 1;
         return this;
@@ -10261,7 +10272,7 @@ public int getInputsCount() {
   @java.lang.Override
   public boolean containsInputs(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetInputs().getMap().containsKey(key);
   }
@@ -10326,7 +10337,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInput
       java.lang.String key,
       com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map<
             java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata>
@@ -10358,7 +10369,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInput
   public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrThrow(
       java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map<
             java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata>
@@ -10423,7 +10434,7 @@ public int getOutputsCount() {
   @java.lang.Override
   public boolean containsOutputs(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetOutputs().getMap().containsKey(key);
   }
@@ -10478,7 +10489,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutp
       java.lang.String key,
       com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map<
             java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata>
@@ -10505,7 +10516,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutp
   public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutputsOrThrow(
       java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map<
             java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata>
@@ -11029,7 +11040,7 @@ public int getInputsCount() {
     @java.lang.Override
     public boolean containsInputs(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetInputs().getMap().containsKey(key);
     }
@@ -11094,7 +11105,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInput
         java.lang.String key,
         com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map<
               java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata>
@@ -11126,7 +11137,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInput
     public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrThrow(
         java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map<
               java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata>
@@ -11164,7 +11175,7 @@ public Builder clearInputs() {
      */
     public Builder removeInputs(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableInputs().getMutableMap().remove(key);
       return this;
@@ -11201,11 +11212,12 @@ public Builder putInputs(
         java.lang.String key,
         com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableInputs().getMutableMap().put(key, value);
       return this;
     }
@@ -11287,7 +11299,7 @@ public int getOutputsCount() {
     @java.lang.Override
     public boolean containsOutputs(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetOutputs().getMap().containsKey(key);
     }
@@ -11342,7 +11354,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutp
         java.lang.String key,
         com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map<
               java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata>
@@ -11369,7 +11381,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutp
     public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutputsOrThrow(
         java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map<
               java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata>
@@ -11402,7 +11414,7 @@ public Builder clearOutputs() {
      */
     public Builder removeOutputs(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableOutputs().getMutableMap().remove(key);
       return this;
@@ -11434,11 +11446,12 @@ public Builder putOutputs(
         java.lang.String key,
         com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableOutputs().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java
index ef04eec88..007a684d0 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java
@@ -115,8 +115,11 @@ public interface ExplanationMetadataOrBuilder
    * map<string, .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata> inputs = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+
+  /* nullable */
   com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrDefault(
       java.lang.String key,
+      /* nullable */
       com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata defaultValue);
   /**
    *
@@ -214,8 +217,11 @@ com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrThro
    * map<string, .google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata> outputs = 2 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+
+  /* nullable */
   com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutputsOrDefault(
       java.lang.String key,
+      /* nullable */
       com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata defaultValue);
   /**
    *
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java
index 243bd0aaa..d0bfa09cd 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java
@@ -99,6 +99,8 @@ private ExplanationMetadataOverride(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -285,6 +287,8 @@ private InputMetadataOverride(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -1332,7 +1336,7 @@ public int getInputsCount() {
   @java.lang.Override
   public boolean containsInputs(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetInputs().getMap().containsKey(key);
   }
@@ -1389,7 +1393,7 @@ public boolean containsInputs(java.lang.String key) {
           com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride
               defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map<
             java.lang.String,
@@ -1416,7 +1420,7 @@ public boolean containsInputs(java.lang.String key) {
   public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride
       getInputsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map<
             java.lang.String,
@@ -1832,7 +1836,7 @@ public int getInputsCount() {
     @java.lang.Override
     public boolean containsInputs(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetInputs().getMap().containsKey(key);
     }
@@ -1889,7 +1893,7 @@ public boolean containsInputs(java.lang.String key) {
             com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride
                 defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map<
               java.lang.String,
@@ -1916,7 +1920,7 @@ public boolean containsInputs(java.lang.String key) {
     public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride
         getInputsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map<
               java.lang.String,
@@ -1949,7 +1953,7 @@ public Builder clearInputs() {
      */
     public Builder removeInputs(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableInputs().getMutableMap().remove(key);
       return this;
@@ -1981,11 +1985,12 @@ public Builder putInputs(
         java.lang.String key,
         com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableInputs().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java
index ced9a70d6..76f6ff392 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java
@@ -95,9 +95,12 @@ public interface ExplanationMetadataOverrideOrBuilder
    * map<string, .google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride> inputs = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+
+  /* nullable */
   com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride
       getInputsOrDefault(
           java.lang.String key,
+          /* nullable */
           com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride
               defaultValue);
   /**
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java
index ad089f7fe..c11535d90 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java
@@ -156,6 +156,8 @@ private ExplanationParameters(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -1119,8 +1121,9 @@ public Builder mergeSampledShapleyAttribution(
       } else {
         if (methodCase_ == 1) {
           sampledShapleyAttributionBuilder_.mergeFrom(value);
+        } else {
+          sampledShapleyAttributionBuilder_.setMessage(value);
         }
-        sampledShapleyAttributionBuilder_.setMessage(value);
       }
       methodCase_ = 1;
       return this;
@@ -1371,8 +1374,9 @@ public Builder mergeIntegratedGradientsAttribution(
       } else {
         if (methodCase_ == 2) {
           integratedGradientsAttributionBuilder_.mergeFrom(value);
+        } else {
+          integratedGradientsAttributionBuilder_.setMessage(value);
         }
-        integratedGradientsAttributionBuilder_.setMessage(value);
       }
       methodCase_ = 2;
       return this;
@@ -1634,8 +1638,9 @@ public Builder mergeXraiAttribution(com.google.cloud.aiplatform.v1.XraiAttributi
       } else {
         if (methodCase_ == 3) {
           xraiAttributionBuilder_.mergeFrom(value);
+        } else {
+          xraiAttributionBuilder_.setMessage(value);
         }
-        xraiAttributionBuilder_.setMessage(value);
       }
       methodCase_ = 3;
       return this;
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java
index e257d77c3..392719a89 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java
@@ -113,6 +113,8 @@ private ExplanationSpec(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java
index ce787997e..9d93ab7fa 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java
@@ -114,6 +114,8 @@ private ExplanationSpecOverride(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java
index e181a0b0b..e0adfa7c8 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java
@@ -106,6 +106,8 @@ private ExportDataConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -832,8 +834,9 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination
       } else {
         if (destinationCase_ == 1) {
           gcsDestinationBuilder_.mergeFrom(value);
+        } else {
+          gcsDestinationBuilder_.setMessage(value);
         }
-        gcsDestinationBuilder_.setMessage(value);
       }
       destinationCase_ = 1;
       return this;
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java
index ab57b87d9..0a71287c4 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java
@@ -105,6 +105,8 @@ private ExportDataOperationMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java
index 9226fd60f..a3a710448 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java
@@ -104,6 +104,8 @@ private ExportDataRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java
index 495c4e262..cff6fb215 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java
@@ -92,6 +92,8 @@ private ExportDataResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java
index 0d973ea65..a84575dc1 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java
@@ -98,6 +98,8 @@ private ExportFeatureValuesOperationMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java
index 8c012e373..ef01ccb61 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java
@@ -182,6 +182,8 @@ private ExportFeatureValuesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -387,6 +389,8 @@ private SnapshotExport(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -1541,6 +1545,8 @@ private FullExport(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -3557,8 +3563,9 @@ public Builder mergeSnapshotExport(
       } else {
         if (modeCase_ == 3) {
           snapshotExportBuilder_.mergeFrom(value);
+        } else {
+          snapshotExportBuilder_.setMessage(value);
         }
-        snapshotExportBuilder_.setMessage(value);
       }
       modeCase_ = 3;
       return this;
@@ -3800,8 +3807,9 @@ public Builder mergeFullExport(
       } else {
         if (modeCase_ == 7) {
           fullExportBuilder_.mergeFrom(value);
+        } else {
+          fullExportBuilder_.setMessage(value);
         }
-        fullExportBuilder_.setMessage(value);
       }
       modeCase_ = 7;
       return this;
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesResponse.java
index 074ff5b63..a3ddffba3 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesResponse.java
@@ -79,6 +79,8 @@ private ExportFeatureValuesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java
index 21246647d..17e4244ac 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java
@@ -115,6 +115,8 @@ private ExportModelOperationMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -278,6 +280,8 @@ private OutputInfo(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java
index 616ac6f81..8c31aec19 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java
@@ -106,6 +106,8 @@ private ExportModelRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -370,6 +372,8 @@ private OutputConfig(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelResponse.java
index fd7871b4e..ab358286f 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelResponse.java
@@ -79,6 +79,8 @@ private ExportModelResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java
index 404f4805c..45d1bc08b 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java
@@ -119,6 +119,8 @@ private ExportTensorboardTimeSeriesDataRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java
index 9016a0d9d..35cc33eee 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java
@@ -105,6 +105,8 @@ private ExportTensorboardTimeSeriesDataResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java
index 1b10bffe5..b4445aac2 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java
@@ -178,6 +178,8 @@ private Feature(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -609,9 +611,7 @@ public interface MonitoringStatsAnomalyOrBuilder
    * A list of historical [Snapshot
    * Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature
    * Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats
-   * requested by user, sorted by
-   * [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time]
-   * descending.
+   * requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] descending.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly} @@ -694,6 +694,8 @@ private MonitoringStatsAnomaly( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1166,9 +1168,7 @@ protected Builder newBuilderForType( * A list of historical [Snapshot * Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature * Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats - * requested by user, sorted by - * [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] - * descending. + * requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] descending. *
* * Protobuf type {@code google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly} @@ -2005,7 +2005,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2056,7 +2056,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2081,7 +2081,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2147,10 +2147,10 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-   * Optional. If not set, use the monitoring_config defined for the EntityType
-   * this Feature belongs to. Only Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 can enable monitoring.
+   * Optional. If not set, use the monitoring_config defined for the EntityType this
+   * Feature belongs to.
+   * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+   * INT64 can enable monitoring.
    * If set to true, all types of data monitoring are disabled despite the
    * config on EntityType.
    * 
@@ -2171,8 +2171,7 @@ public boolean getDisableMonitoring() { * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2188,8 +2187,7 @@ public boolean getDisableMonitoring() { * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2206,8 +2204,7 @@ public boolean getDisableMonitoring() { * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2222,8 +2219,7 @@ public int getMonitoringStatsAnomaliesCount() { * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2239,8 +2235,7 @@ public com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly getMonitori * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -3585,7 +3580,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3637,7 +3632,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3662,7 +3657,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3694,7 +3689,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -3723,11 +3718,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -3869,10 +3865,10 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If not set, use the monitoring_config defined for the EntityType
-     * this Feature belongs to. Only Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 can enable monitoring.
+     * Optional. If not set, use the monitoring_config defined for the EntityType this
+     * Feature belongs to.
+     * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+     * INT64 can enable monitoring.
      * If set to true, all types of data monitoring are disabled despite the
      * config on EntityType.
      * 
@@ -3889,10 +3885,10 @@ public boolean getDisableMonitoring() { * * *
-     * Optional. If not set, use the monitoring_config defined for the EntityType
-     * this Feature belongs to. Only Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 can enable monitoring.
+     * Optional. If not set, use the monitoring_config defined for the EntityType this
+     * Feature belongs to.
+     * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+     * INT64 can enable monitoring.
      * If set to true, all types of data monitoring are disabled despite the
      * config on EntityType.
      * 
@@ -3912,10 +3908,10 @@ public Builder setDisableMonitoring(boolean value) { * * *
-     * Optional. If not set, use the monitoring_config defined for the EntityType
-     * this Feature belongs to. Only Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-     * STRING, DOUBLE or INT64 can enable monitoring.
+     * Optional. If not set, use the monitoring_config defined for the EntityType this
+     * Feature belongs to.
+     * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+     * INT64 can enable monitoring.
      * If set to true, all types of data monitoring are disabled despite the
      * config on EntityType.
      * 
@@ -3953,8 +3949,7 @@ private void ensureMonitoringStatsAnomaliesIsMutable() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -3973,8 +3968,7 @@ private void ensureMonitoringStatsAnomaliesIsMutable() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -3992,8 +3986,7 @@ public int getMonitoringStatsAnomaliesCount() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4012,8 +4005,7 @@ public int getMonitoringStatsAnomaliesCount() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4038,8 +4030,7 @@ public Builder setMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4062,8 +4053,7 @@ public Builder setMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4088,8 +4078,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4114,8 +4103,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4137,8 +4125,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4161,8 +4148,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4185,8 +4171,7 @@ public Builder addAllMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4207,8 +4192,7 @@ public Builder clearMonitoringStatsAnomalies() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4229,8 +4213,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4245,8 +4228,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4265,8 +4247,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4286,8 +4267,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4304,8 +4284,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -4323,8 +4302,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java index 8ac6c6ac1..5f1d70fe6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java @@ -99,6 +99,8 @@ private FeatureNoiseSigma( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -250,6 +252,8 @@ private NoiseSigmaForFeature( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -364,7 +368,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (sigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(sigma_) != 0) { output.writeFloat(2, sigma_); } unknownFields.writeTo(output); @@ -379,7 +383,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (sigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(sigma_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, sigma_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java index 4af416bd1..926f3de96 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java @@ -264,7 +264,12 @@ public interface FeatureOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -315,10 +320,10 @@ public interface FeatureOrBuilder * * *
-   * Optional. If not set, use the monitoring_config defined for the EntityType
-   * this Feature belongs to. Only Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
-   * STRING, DOUBLE or INT64 can enable monitoring.
+   * Optional. If not set, use the monitoring_config defined for the EntityType this
+   * Feature belongs to.
+   * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+   * INT64 can enable monitoring.
    * If set to true, all types of data monitoring are disabled despite the
    * config on EntityType.
    * 
@@ -333,8 +338,7 @@ public interface FeatureOrBuilder * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -347,8 +351,7 @@ public interface FeatureOrBuilder * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -361,8 +364,7 @@ com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly getMonitoringStats * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -374,8 +376,7 @@ com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly getMonitoringStats * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -388,8 +389,7 @@ com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly getMonitoringStats * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java index d07e34599..b37acd852 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java @@ -95,6 +95,8 @@ private FeatureSelector( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java index 843b54131..15df48c59 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java @@ -149,6 +149,8 @@ private FeatureStatsAnomaly( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -480,7 +482,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (score_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { output.writeDouble(1, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statsUri_)) { @@ -489,7 +491,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anomalyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, anomalyUri_); } - if (distributionDeviation_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(distributionDeviation_) != 0) { output.writeDouble(5, distributionDeviation_); } if (startTime_ != null) { @@ -498,7 +500,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(8, getEndTime()); } - if (anomalyDetectionThreshold_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(anomalyDetectionThreshold_) != 0) { output.writeDouble(9, anomalyDetectionThreshold_); } unknownFields.writeTo(output); @@ -510,7 +512,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (score_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statsUri_)) { @@ -519,7 +521,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anomalyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, anomalyUri_); } - if (distributionDeviation_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(distributionDeviation_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, distributionDeviation_); } if (startTime_ != null) { @@ -528,7 +530,7 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); } - if (anomalyDetectionThreshold_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(anomalyDetectionThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, anomalyDetectionThreshold_); } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java index 6c35ec893..89ebca07f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java @@ -71,20 +71,20 @@ private FeatureValue( break; case 8: { - valueCase_ = 1; value_ = input.readBool(); + valueCase_ = 1; break; } case 17: { - valueCase_ = 2; value_ = input.readDouble(); + valueCase_ = 2; break; } case 40: { - valueCase_ = 5; value_ = input.readInt64(); + valueCase_ = 5; break; } case 50: @@ -160,8 +160,8 @@ private FeatureValue( } case 106: { - valueCase_ = 13; value_ = input.readBytes(); + valueCase_ = 13; break; } case 114: @@ -192,6 +192,8 @@ private FeatureValue( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -346,6 +348,8 @@ private Metadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2620,8 +2624,9 @@ public Builder mergeBoolArrayValue(com.google.cloud.aiplatform.v1.BoolArray valu } else { if (valueCase_ == 7) { boolArrayValueBuilder_.mergeFrom(value); + } else { + boolArrayValueBuilder_.setMessage(value); } - boolArrayValueBuilder_.setMessage(value); } valueCase_ = 7; return this; @@ -2829,8 +2834,9 @@ public Builder mergeDoubleArrayValue(com.google.cloud.aiplatform.v1.DoubleArray } else { if (valueCase_ == 8) { doubleArrayValueBuilder_.mergeFrom(value); + } else { + doubleArrayValueBuilder_.setMessage(value); } - doubleArrayValueBuilder_.setMessage(value); } valueCase_ = 8; return this; @@ -3038,8 +3044,9 @@ public Builder mergeInt64ArrayValue(com.google.cloud.aiplatform.v1.Int64Array va } else { if (valueCase_ == 11) { int64ArrayValueBuilder_.mergeFrom(value); + } else { + int64ArrayValueBuilder_.setMessage(value); } - int64ArrayValueBuilder_.setMessage(value); } valueCase_ = 11; return this; @@ -3247,8 +3254,9 @@ public Builder mergeStringArrayValue(com.google.cloud.aiplatform.v1.StringArray } else { if (valueCase_ == 12) { stringArrayValueBuilder_.mergeFrom(value); + } else { + stringArrayValueBuilder_.setMessage(value); } - stringArrayValueBuilder_.setMessage(value); } valueCase_ = 12; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java index 0aa90d44c..3f0765a78 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java @@ -134,6 +134,8 @@ private FeatureValueDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -936,8 +938,9 @@ public Builder mergeBigqueryDestination( } else { if (destinationCase_ == 1) { bigqueryDestinationBuilder_.mergeFrom(value); + } else { + bigqueryDestinationBuilder_.setMessage(value); } - bigqueryDestinationBuilder_.setMessage(value); } destinationCase_ = 1; return this; @@ -1198,8 +1201,9 @@ public Builder mergeTfrecordDestination( } else { if (destinationCase_ == 2) { tfrecordDestinationBuilder_.mergeFrom(value); + } else { + tfrecordDestinationBuilder_.setMessage(value); } - tfrecordDestinationBuilder_.setMessage(value); } destinationCase_ = 2; return this; @@ -1446,8 +1450,9 @@ public Builder mergeCsvDestination(com.google.cloud.aiplatform.v1.CsvDestination } else { if (destinationCase_ == 3) { csvDestinationBuilder_.mergeFrom(value); + } else { + csvDestinationBuilder_.setMessage(value); } - csvDestinationBuilder_.setMessage(value); } destinationCase_ = 3; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java index 6ba213b33..8053a6e2f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java @@ -93,6 +93,8 @@ private FeatureValueList( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java index 3ed62f11b..603a8d5b8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java @@ -184,6 +184,8 @@ private Featurestore( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -222,7 +224,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * Possible states a Featurestore can have.
+   * Possible states a featurestore can have.
    * 
* * Protobuf enum {@code google.cloud.aiplatform.v1.Featurestore.State} @@ -242,9 +244,9 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is not being updated and the
-     * fields reflect the current configuration of the Featurestore. The
-     * Featurestore is usable in this state.
+     * State when the featurestore configuration is not being updated and the
+     * fields reflect the current configuration of the featurestore. The
+     * featurestore is usable in this state.
      * 
* * STABLE = 1; @@ -254,14 +256,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is being updated and the fields
-     * reflect the updated configuration of the Featurestore, not the current
-     * one. For example, `online_serving_config.fixed_node_count` can take
-     * minutes to update. While the update is in progress, the Featurestore
-     * will be in the UPDATING state and the value of `fixed_node_count` will be
-     * the updated value. Until the update completes, the actual number of nodes
-     * can still be the original value of `fixed_node_count`. The Featurestore
-     * is still usable in this state.
+     * The state of the featurestore configuration when it is being updated.
+     * During an update, the fields reflect either the original configuration
+     * or the updated configuration of the featurestore. For example,
+     * `online_serving_config.fixed_node_count` can take minutes to update.
+     * While the update is in progress, the featurestore is in the UPDATING
+     * state, and the value of `fixed_node_count` can be the original value or
+     * the updated value, depending on the progress of the operation. Until the
+     * update completes, the actual number of nodes can still be the original
+     * value of `fixed_node_count`. The featurestore is still usable in this
+     * state.
      * 
* * UPDATING = 2; @@ -284,9 +288,9 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is not being updated and the
-     * fields reflect the current configuration of the Featurestore. The
-     * Featurestore is usable in this state.
+     * State when the featurestore configuration is not being updated and the
+     * fields reflect the current configuration of the featurestore. The
+     * featurestore is usable in this state.
      * 
* * STABLE = 1; @@ -296,14 +300,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is being updated and the fields
-     * reflect the updated configuration of the Featurestore, not the current
-     * one. For example, `online_serving_config.fixed_node_count` can take
-     * minutes to update. While the update is in progress, the Featurestore
-     * will be in the UPDATING state and the value of `fixed_node_count` will be
-     * the updated value. Until the update completes, the actual number of nodes
-     * can still be the original value of `fixed_node_count`. The Featurestore
-     * is still usable in this state.
+     * The state of the featurestore configuration when it is being updated.
+     * During an update, the fields reflect either the original configuration
+     * or the updated configuration of the featurestore. For example,
+     * `online_serving_config.fixed_node_count` can take minutes to update.
+     * While the update is in progress, the featurestore is in the UPDATING
+     * state, and the value of `fixed_node_count` can be the original value or
+     * the updated value, depending on the progress of the operation. Until the
+     * update completes, the actual number of nodes can still be the original
+     * value of `fixed_node_count`. The featurestore is still usable in this
+     * state.
      * 
* * UPDATING = 2; @@ -402,11 +408,10 @@ public interface OnlineServingConfigOrBuilder * * *
-     * The number of nodes for each cluster. The number of nodes will not
-     * scale automatically but can be scaled manually by providing different
-     * values when updating.
-     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-     * reset the other.
+     * The number of nodes for the online store. The number of nodes doesn't
+     * scale automatically, but you can manually update the number of
+     * nodes. If set to 0, the featurestore will not have an
+     * online store and cannot be used for online serving.
      * 
* * int32 fixed_node_count = 2; @@ -482,6 +487,8 @@ private OnlineServingConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -511,11 +518,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The number of nodes for each cluster. The number of nodes will not
-     * scale automatically but can be scaled manually by providing different
-     * values when updating.
-     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-     * reset the other.
+     * The number of nodes for the online store. The number of nodes doesn't
+     * scale automatically, but you can manually update the number of
+     * nodes. If set to 0, the featurestore will not have an
+     * online store and cannot be used for online serving.
      * 
* * int32 fixed_node_count = 2; @@ -861,11 +867,10 @@ public Builder mergeFrom( * * *
-       * The number of nodes for each cluster. The number of nodes will not
-       * scale automatically but can be scaled manually by providing different
-       * values when updating.
-       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-       * reset the other.
+       * The number of nodes for the online store. The number of nodes doesn't
+       * scale automatically, but you can manually update the number of
+       * nodes. If set to 0, the featurestore will not have an
+       * online store and cannot be used for online serving.
        * 
* * int32 fixed_node_count = 2; @@ -880,11 +885,10 @@ public int getFixedNodeCount() { * * *
-       * The number of nodes for each cluster. The number of nodes will not
-       * scale automatically but can be scaled manually by providing different
-       * values when updating.
-       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-       * reset the other.
+       * The number of nodes for the online store. The number of nodes doesn't
+       * scale automatically, but you can manually update the number of
+       * nodes. If set to 0, the featurestore will not have an
+       * online store and cannot be used for online serving.
        * 
* * int32 fixed_node_count = 2; @@ -902,11 +906,10 @@ public Builder setFixedNodeCount(int value) { * * *
-       * The number of nodes for each cluster. The number of nodes will not
-       * scale automatically but can be scaled manually by providing different
-       * values when updating.
-       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-       * reset the other.
+       * The number of nodes for the online store. The number of nodes doesn't
+       * scale automatically, but you can manually update the number of
+       * nodes. If set to 0, the featurestore will not have an
+       * online store and cannot be used for online serving.
        * 
* * int32 fixed_node_count = 2; @@ -1220,7 +1223,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1271,7 +1274,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1296,7 +1299,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1311,11 +1314,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the onlineServingConfig field is set. @@ -1328,11 +1332,12 @@ public boolean hasOnlineServingConfig() { * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The onlineServingConfig. @@ -1347,11 +1352,12 @@ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig getOnline * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -2631,7 +2637,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2683,7 +2689,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2708,7 +2714,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2740,7 +2746,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2769,11 +2775,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -2809,11 +2816,12 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the onlineServingConfig field is set. @@ -2825,11 +2833,12 @@ public boolean hasOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The onlineServingConfig. @@ -2848,11 +2857,12 @@ public boolean hasOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setOnlineServingConfig( @@ -2873,11 +2883,12 @@ public Builder setOnlineServingConfig( * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setOnlineServingConfig( @@ -2895,11 +2906,12 @@ public Builder setOnlineServingConfig( * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeOnlineServingConfig( @@ -2925,11 +2937,12 @@ public Builder mergeOnlineServingConfig( * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearOnlineServingConfig() { @@ -2947,11 +2960,12 @@ public Builder clearOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Builder @@ -2964,11 +2978,12 @@ public Builder clearOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfigOrBuilder @@ -2985,11 +3000,12 @@ public Builder clearOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java index 4169e76e8..a91db7689 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java @@ -156,6 +156,8 @@ private FeaturestoreMonitoringConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -321,6 +323,8 @@ private SnapshotAnalysis( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1215,6 +1219,8 @@ private ImportFeaturesAnalysis( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2495,8 +2501,8 @@ private ThresholdConfig( break; case 9: { - thresholdCase_ = 1; threshold_ = input.readDouble(); + thresholdCase_ = 1; break; } default: @@ -2510,6 +2516,8 @@ private ThresholdConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3285,9 +3293,7 @@ public boolean hasImportFeaturesAnalysis() { *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-   * or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -3306,9 +3312,7 @@ public boolean hasNumericalThresholdConfig() { *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-   * or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -3331,9 +3335,7 @@ public boolean hasNumericalThresholdConfig() { *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-   * or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -3355,9 +3357,7 @@ public boolean hasNumericalThresholdConfig() { *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-   * STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -3376,9 +3376,7 @@ public boolean hasCategoricalThresholdConfig() { *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-   * STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -3401,9 +3399,7 @@ public boolean hasCategoricalThresholdConfig() { *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-   * STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -4288,9 +4284,7 @@ public Builder clearImportFeaturesAnalysis() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4308,9 +4302,7 @@ public boolean hasNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4336,9 +4328,7 @@ public boolean hasNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4365,9 +4355,7 @@ public Builder setNumericalThresholdConfig( *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4392,9 +4380,7 @@ public Builder setNumericalThresholdConfig( *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4426,9 +4412,7 @@ public Builder mergeNumericalThresholdConfig( *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4452,9 +4436,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4473,9 +4455,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4499,9 +4479,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-     * or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4539,9 +4517,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4559,9 +4535,7 @@ public boolean hasCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4587,9 +4561,7 @@ public boolean hasCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4616,9 +4588,7 @@ public Builder setCategoricalThresholdConfig( *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4643,9 +4613,7 @@ public Builder setCategoricalThresholdConfig( *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4677,9 +4645,7 @@ public Builder mergeCategoricalThresholdConfig( *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4703,9 +4669,7 @@ public Builder clearCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4724,9 +4688,7 @@ public Builder clearCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4750,9 +4712,7 @@ public Builder clearCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-     * STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfigOrBuilder.java index 212617051..905aa8a6b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfigOrBuilder.java @@ -115,9 +115,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-   * or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -133,9 +131,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-   * or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -152,9 +148,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE
-   * or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -170,9 +164,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-   * STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -188,9 +180,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-   * STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -207,9 +197,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or
-   * STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING).
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java index 481e4d8bb..891727768 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java @@ -227,7 +227,12 @@ public interface FeaturestoreOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -251,11 +256,12 @@ public interface FeaturestoreOrBuilder * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the onlineServingConfig field is set. @@ -265,11 +271,12 @@ public interface FeaturestoreOrBuilder * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The onlineServingConfig. @@ -279,11 +286,12 @@ public interface FeaturestoreOrBuilder * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfigOrBuilder diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java index d5b4d499e..aea5535f7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.cloud.aiplatform.v1.Featurestore." + "LabelsEntryB\003\340A\001\022`\n\025online_serving_confi" + "g\030\007 \001(\0132<.google.cloud.aiplatform.v1.Fea" - + "turestore.OnlineServingConfigB\003\340A\002\022B\n\005st" + + "turestore.OnlineServingConfigB\003\340A\001\022B\n\005st" + "ate\030\010 \001(\0162..google.cloud.aiplatform.v1.F" + "eaturestore.StateB\003\340A\003\022H\n\017encryption_spe" + "c\030\n \001(\0132*.google.cloud.aiplatform.v1.Enc" diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java index 41aefdd1a..f4eadd59b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java @@ -109,6 +109,8 @@ private FilterSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java index 498718bad..2ebc6d088 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java @@ -99,6 +99,8 @@ private FractionSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -190,13 +192,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { output.writeDouble(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { output.writeDouble(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { output.writeDouble(3, testFraction_); } unknownFields.writeTo(output); @@ -208,13 +210,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java index 6f2aa3b4e..e49522e46 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java @@ -88,6 +88,8 @@ private GcsDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java index 0efda0233..4368f391a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java @@ -92,6 +92,8 @@ private GcsSource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java index ed30e5a6a..4b65a3884 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java @@ -122,6 +122,8 @@ private GenericOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java index 0e53bea93..4ae601526 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java @@ -103,6 +103,8 @@ private GetAnnotationSpecRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java index 67a28d7a4..88af495a4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java @@ -88,6 +88,8 @@ private GetArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java index 66379f39d..c7547695e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java @@ -88,6 +88,8 @@ private GetBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java index 5ba5fe461..6b3040838 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java @@ -88,6 +88,8 @@ private GetContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java index e9592cff3..82830c5d7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java @@ -88,6 +88,8 @@ private GetCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java index 63694d65a..d9633ea89 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java @@ -88,6 +88,8 @@ private GetDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java index f13b1aa2b..4b7172fd5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java @@ -103,6 +103,8 @@ private GetDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java index 3db8b0a99..39ed2e4ce 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java @@ -88,6 +88,8 @@ private GetEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java index 8855615d3..8eb5b0bb0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java @@ -88,6 +88,8 @@ private GetEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java index 56b0e4169..637195d95 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java @@ -88,6 +88,8 @@ private GetExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java index dcab0d41b..e19c05212 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java @@ -88,6 +88,8 @@ private GetFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java index 5f90dc35e..d36379fb6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java @@ -88,6 +88,8 @@ private GetFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java index 51c2e9e4b..e8eeedd82 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java @@ -89,6 +89,8 @@ private GetHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java index f3946f768..9b02148bb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java @@ -88,6 +88,8 @@ private GetIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java index ab072a2b0..caaa77c8d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java @@ -88,6 +88,8 @@ private GetIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java index cddafc81f..48ccda43c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java @@ -88,6 +88,8 @@ private GetMetadataSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java index dbdf5cfc4..6ee4c1825 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java @@ -88,6 +88,8 @@ private GetMetadataStoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java index 8ef11a20f..8197392f5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java @@ -91,6 +91,8 @@ private GetModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java index 02b73273b..8978268e0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java @@ -88,6 +88,8 @@ private GetModelEvaluationRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java index e946085a3..a092f427d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java @@ -89,6 +89,8 @@ private GetModelEvaluationSliceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java index 66f07a059..bca052d19 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java @@ -88,6 +88,8 @@ private GetModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java index 9ef812440..6008403eb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java @@ -88,6 +88,8 @@ private GetPipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java index 7aa365531..375589968 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java @@ -88,6 +88,8 @@ private GetSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java index a7ceb6c2f..ec26abb45 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java @@ -88,6 +88,8 @@ private GetStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java index 1a11332bc..5235d6872 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java @@ -89,6 +89,8 @@ private GetTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java index f52c9fa24..6835353c2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java @@ -88,6 +88,8 @@ private GetTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java index e7963de05..c0a2a5897 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java @@ -88,6 +88,8 @@ private GetTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java index e15966df6..c948ed0ca 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java @@ -89,6 +89,8 @@ private GetTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java index caf209007..d180d3b36 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java @@ -88,6 +88,8 @@ private GetTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java index 60f25b284..b1a18de1b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java @@ -88,6 +88,8 @@ private GetTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java index 06088d3d3..91971a295 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java @@ -269,6 +269,8 @@ private HyperparameterTuningJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -987,7 +989,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1030,7 +1032,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1051,7 +1053,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4150,7 +4152,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -4194,7 +4196,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4215,7 +4217,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4243,7 +4245,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4268,11 +4270,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java index f95a8a68c..85202fa00 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java @@ -548,7 +548,12 @@ public interface HyperparameterTuningJobOrBuilder * * map<string, string> labels = 16; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java index 07f23b083..0ccdf94a4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java @@ -92,6 +92,8 @@ private IdMatcher( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java index ff9953048..d09e2e60a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java @@ -123,6 +123,8 @@ private ImportDataConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -301,7 +303,7 @@ public int getDataItemLabelsCount() { @java.lang.Override public boolean containsDataItemLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDataItemLabels().getMap().containsKey(key); } @@ -357,7 +359,7 @@ public java.util.Map getDataItemLabelsMap() public java.lang.String getDataItemLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -384,7 +386,7 @@ public java.lang.String getDataItemLabelsOrDefault( @java.lang.Override public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); if (!map.containsKey(key)) { @@ -980,8 +982,9 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { } else { if (sourceCase_ == 1) { gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); } - gcsSourceBuilder_.setMessage(value); } sourceCase_ = 1; return this; @@ -1127,7 +1130,7 @@ public int getDataItemLabelsCount() { @java.lang.Override public boolean containsDataItemLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDataItemLabels().getMap().containsKey(key); } @@ -1183,7 +1186,7 @@ public java.util.Map getDataItemLabelsMap() public java.lang.String getDataItemLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1210,7 +1213,7 @@ public java.lang.String getDataItemLabelsOrDefault( @java.lang.Override public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); if (!map.containsKey(key)) { @@ -1244,7 +1247,7 @@ public Builder clearDataItemLabels() { */ public Builder removeDataItemLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableDataItemLabels().getMutableMap().remove(key); return this; @@ -1275,11 +1278,12 @@ public java.util.Map getMutableDataItemLabel */ public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableDataItemLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java index 4c2824ca1..1e385bab5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java @@ -140,7 +140,12 @@ public interface ImportDataConfigOrBuilder * * map<string, string> data_item_labels = 2; */ - java.lang.String getDataItemLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getDataItemLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java index 0e1327432..da3762889 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java @@ -96,6 +96,8 @@ private ImportDataOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java index 1d96a2b39..247dfe68f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java @@ -102,6 +102,8 @@ private ImportDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataResponse.java index cc2317b5d..56c3c86ec 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataResponse.java @@ -79,6 +79,8 @@ private ImportDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java index 8e3b222d4..41351020a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java @@ -113,6 +113,8 @@ private ImportFeatureValuesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java index a9ce02c89..7784fe882 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java @@ -198,6 +198,8 @@ private ImportFeatureValuesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -361,6 +363,8 @@ private FeatureSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2403,8 +2407,9 @@ public Builder mergeAvroSource(com.google.cloud.aiplatform.v1.AvroSource value) } else { if (sourceCase_ == 2) { avroSourceBuilder_.mergeFrom(value); + } else { + avroSourceBuilder_.setMessage(value); } - avroSourceBuilder_.setMessage(value); } sourceCase_ = 2; return this; @@ -2544,8 +2549,9 @@ public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1.BigQuerySource } else { if (sourceCase_ == 3) { bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); } - bigquerySourceBuilder_.setMessage(value); } sourceCase_ = 3; return this; @@ -2684,8 +2690,9 @@ public Builder mergeCsvSource(com.google.cloud.aiplatform.v1.CsvSource value) { } else { if (sourceCase_ == 4) { csvSourceBuilder_.mergeFrom(value); + } else { + csvSourceBuilder_.setMessage(value); } - csvSourceBuilder_.setMessage(value); } sourceCase_ = 4; return this; @@ -3005,8 +3012,9 @@ public Builder mergeFeatureTime(com.google.protobuf.Timestamp value) { } else { if (featureTimeSourceCase_ == 7) { featureTimeBuilder_.mergeFrom(value); + } else { + featureTimeBuilder_.setMessage(value); } - featureTimeBuilder_.setMessage(value); } featureTimeSourceCase_ = 7; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java index de0673166..d40ca786f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java @@ -94,6 +94,8 @@ private ImportFeatureValuesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java index 9ab2722e3..254463b68 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java @@ -104,6 +104,8 @@ private ImportModelEvaluationRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java index a91b4f88a..b25416588 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java @@ -192,6 +192,8 @@ private Index( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -674,7 +676,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -717,7 +719,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -738,7 +740,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2669,7 +2671,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2713,7 +2715,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2734,7 +2736,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2762,7 +2764,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2787,11 +2789,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java index 97e51dc07..445812127 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java @@ -183,6 +183,8 @@ private IndexEndpoint( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -543,7 +545,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -586,7 +588,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -607,7 +609,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -734,9 +736,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -768,9 +770,9 @@ public java.lang.String getNetwork() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -800,18 +802,22 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-   * Optional. If true, expose the IndexEndpoint via private service connect.
+   * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect],
    * can be set.
    * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1/index_endpoint.proto;l=97 * @return The enablePrivateServiceConnect. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } @@ -2243,7 +2249,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2287,7 +2293,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2308,7 +2314,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2336,7 +2342,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2361,11 +2367,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -2826,9 +2833,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2859,9 +2866,9 @@ public java.lang.String getNetwork() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2892,9 +2899,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2924,9 +2931,9 @@ public Builder setNetwork(java.lang.String value) { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2952,9 +2959,9 @@ public Builder clearNetwork() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2982,18 +2989,22 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If true, expose the IndexEndpoint via private service connect.
+     * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1/index_endpoint.proto;l=97 * @return The enablePrivateServiceConnect. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } @@ -3001,18 +3012,22 @@ public boolean getEnablePrivateServiceConnect() { * * *
-     * Optional. If true, expose the IndexEndpoint via private service connect.
+     * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1/index_endpoint.proto;l=97 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnablePrivateServiceConnect(boolean value) { enablePrivateServiceConnect_ = value; @@ -3023,17 +3038,21 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * * *
-     * Optional. If true, expose the IndexEndpoint via private service connect.
+     * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1/index_endpoint.proto;l=97 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnablePrivateServiceConnect() { enablePrivateServiceConnect_ = false; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java index aad42c17e..de5be3da7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java @@ -249,7 +249,12 @@ public interface IndexEndpointOrBuilder * * map<string, string> labels = 6; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -359,9 +364,9 @@ public interface IndexEndpointOrBuilder * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -382,9 +387,9 @@ public interface IndexEndpointOrBuilder * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -401,16 +406,20 @@ public interface IndexEndpointOrBuilder * * *
-   * Optional. If true, expose the IndexEndpoint via private service connect.
+   * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect],
    * can be set.
    * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1/index_endpoint.proto;l=97 * @return The enablePrivateServiceConnect. */ + @java.lang.Deprecated boolean getEnablePrivateServiceConnect(); } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java index cd4954f58..cea8278c5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java @@ -65,7 +65,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\0322google/cloud/aiplatfo" + "rm/v1/machine_resources.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\306\004\n\rIndexEndpoint" + + "otobuf/timestamp.proto\"\310\004\n\rIndexEndpoint" + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(" + "\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022H\n\020deployed_" + "indexes\030\004 \003(\0132).google.cloud.aiplatform." @@ -74,42 +74,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".IndexEndpoint.LabelsEntry\0224\n\013create_tim" + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + "\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\024\n\007network\030\t \001(\tB\003\340A\001\022+\n\036" - + "enable_private_service_connect\030\n \001(\010B\003\340A" - + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:u\352Ar\n\'aiplatform.googleapis.com" - + "/IndexEndpoint\022Gprojects/{project}/locat" - + "ions/{location}/indexEndpoints/{index_en" - + "dpoint}\"\227\005\n\rDeployedIndex\022\017\n\002id\030\001 \001(\tB\003\340" - + "A\002\0226\n\005index\030\002 \001(\tB\'\340A\002\372A!\n\037aiplatform.go" - + "ogleapis.com/Index\022\024\n\014display_name\030\003 \001(\t" - + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022Q\n\021private_endpoints\030\005 \001(" - + "\01321.google.cloud.aiplatform.v1.IndexPriv" - + "ateEndpointsB\003\340A\003\0228\n\017index_sync_time\030\006 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n\023a" - + "utomatic_resources\030\007 \001(\0132..google.cloud." - + "aiplatform.v1.AutomaticResourcesB\003\340A\001\022P\n" - + "\023dedicated_resources\030\020 \001(\0132..google.clou" - + "d.aiplatform.v1.DedicatedResourcesB\003\340A\001\022" - + "\"\n\025enable_access_logging\030\010 \001(\010B\003\340A\001\022\\\n\032d" - + "eployed_index_auth_config\030\t \001(\01323.google" - + ".cloud.aiplatform.v1.DeployedIndexAuthCo" - + "nfigB\003\340A\001\022\037\n\022reserved_ip_ranges\030\n \003(\tB\003\340" - + "A\001\022\035\n\020deployment_group\030\013 \001(\tB\003\340A\001\"\256\001\n\027De" - + "ployedIndexAuthConfig\022W\n\rauth_provider\030\001" - + " \001(\0132@.google.cloud.aiplatform.v1.Deploy" - + "edIndexAuthConfig.AuthProvider\032:\n\014AuthPr" - + "ovider\022\021\n\taudiences\030\001 \003(\t\022\027\n\017allowed_iss" - + "uers\030\002 \003(\t\"Y\n\025IndexPrivateEndpoints\022\037\n\022m" - + "atch_grpc_address\030\001 \001(\tB\003\340A\003\022\037\n\022service_" - + "attachment\030\002 \001(\tB\003\340A\003B\326\001\n\036com.google.clo" - + "ud.aiplatform.v1B\022IndexEndpointProtoP\001ZD" - + "google.golang.org/genproto/googleapis/cl" - + "oud/aiplatform/v1;aiplatform\252\002\032Google.Cl" - + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf" - + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006" - + "proto3" + + "TimestampB\003\340A\003\022\024\n\007network\030\t \001(\tB\003\340A\001\022-\n\036" + + "enable_private_service_connect\030\n \001(\010B\005\030\001" + + "\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001:u\352Ar\n\'aiplatform.googleapis.c" + + "om/IndexEndpoint\022Gprojects/{project}/loc" + + "ations/{location}/indexEndpoints/{index_" + + "endpoint}\"\227\005\n\rDeployedIndex\022\017\n\002id\030\001 \001(\tB" + + "\003\340A\002\0226\n\005index\030\002 \001(\tB\'\340A\002\372A!\n\037aiplatform." + + "googleapis.com/Index\022\024\n\014display_name\030\003 \001" + + "(\t\0224\n\013create_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022Q\n\021private_endpoints\030\005 " + + "\001(\01321.google.cloud.aiplatform.v1.IndexPr" + + "ivateEndpointsB\003\340A\003\0228\n\017index_sync_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n" + + "\023automatic_resources\030\007 \001(\0132..google.clou" + + "d.aiplatform.v1.AutomaticResourcesB\003\340A\001\022" + + "P\n\023dedicated_resources\030\020 \001(\0132..google.cl" + + "oud.aiplatform.v1.DedicatedResourcesB\003\340A" + + "\001\022\"\n\025enable_access_logging\030\010 \001(\010B\003\340A\001\022\\\n" + + "\032deployed_index_auth_config\030\t \001(\01323.goog" + + "le.cloud.aiplatform.v1.DeployedIndexAuth" + + "ConfigB\003\340A\001\022\037\n\022reserved_ip_ranges\030\n \003(\tB" + + "\003\340A\001\022\035\n\020deployment_group\030\013 \001(\tB\003\340A\001\"\256\001\n\027" + + "DeployedIndexAuthConfig\022W\n\rauth_provider" + + "\030\001 \001(\0132@.google.cloud.aiplatform.v1.Depl" + + "oyedIndexAuthConfig.AuthProvider\032:\n\014Auth" + + "Provider\022\021\n\taudiences\030\001 \003(\t\022\027\n\017allowed_i" + + "ssuers\030\002 \003(\t\"Y\n\025IndexPrivateEndpoints\022\037\n" + + "\022match_grpc_address\030\001 \001(\tB\003\340A\003\022\037\n\022servic" + + "e_attachment\030\002 \001(\tB\003\340A\003B\326\001\n\036com.google.c" + + "loud.aiplatform.v1B\022IndexEndpointProtoP\001" + + "ZDgoogle.golang.org/genproto/googleapis/" + + "cloud/aiplatform/v1;aiplatform\252\002\032Google." + + "Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPla" + + "tform\\V1\352\002\035Google::Cloud::AIPlatform::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java index 86f92611d..5a3bcc4ba 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java @@ -336,7 +336,12 @@ public interface IndexOrBuilder * * map<string, string> labels = 9; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java index 233d7e703..908ac19c1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java @@ -100,6 +100,8 @@ private IndexPrivateEndpoints( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java index 87e009bb8..805449b9b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java @@ -221,6 +221,8 @@ private InputDataConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1720,8 +1722,9 @@ public Builder mergeFractionSplit(com.google.cloud.aiplatform.v1.FractionSplit v } else { if (splitCase_ == 2) { fractionSplitBuilder_.mergeFrom(value); + } else { + fractionSplitBuilder_.setMessage(value); } - fractionSplitBuilder_.setMessage(value); } splitCase_ = 2; return this; @@ -1929,8 +1932,9 @@ public Builder mergeFilterSplit(com.google.cloud.aiplatform.v1.FilterSplit value } else { if (splitCase_ == 3) { filterSplitBuilder_.mergeFrom(value); + } else { + filterSplitBuilder_.setMessage(value); } - filterSplitBuilder_.setMessage(value); } splitCase_ = 3; return this; @@ -2143,8 +2147,9 @@ public Builder mergePredefinedSplit(com.google.cloud.aiplatform.v1.PredefinedSpl } else { if (splitCase_ == 4) { predefinedSplitBuilder_.mergeFrom(value); + } else { + predefinedSplitBuilder_.setMessage(value); } - predefinedSplitBuilder_.setMessage(value); } splitCase_ = 4; return this; @@ -2361,8 +2366,9 @@ public Builder mergeTimestampSplit(com.google.cloud.aiplatform.v1.TimestampSplit } else { if (splitCase_ == 5) { timestampSplitBuilder_.mergeFrom(value); + } else { + timestampSplitBuilder_.setMessage(value); } - timestampSplitBuilder_.setMessage(value); } splitCase_ = 5; return this; @@ -2579,8 +2585,9 @@ public Builder mergeStratifiedSplit(com.google.cloud.aiplatform.v1.StratifiedSpl } else { if (splitCase_ == 12) { stratifiedSplitBuilder_.mergeFrom(value); + } else { + stratifiedSplitBuilder_.setMessage(value); } - stratifiedSplitBuilder_.setMessage(value); } splitCase_ = 12; return this; @@ -2867,8 +2874,9 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination } else { if (destinationCase_ == 8) { gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); } - gcsDestinationBuilder_.setMessage(value); } destinationCase_ = 8; return this; @@ -3209,8 +3217,9 @@ public Builder mergeBigqueryDestination( } else { if (destinationCase_ == 10) { bigqueryDestinationBuilder_.mergeFrom(value); + } else { + bigqueryDestinationBuilder_.setMessage(value); } - bigqueryDestinationBuilder_.setMessage(value); } destinationCase_ = 10; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java index 62fef3892..0f994d84e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java @@ -105,6 +105,8 @@ private Int64Array( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java index 0aab787ce..f96bcce27 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java @@ -120,6 +120,8 @@ private IntegratedGradientsAttribution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java index 3ca914f13..c432b1ae6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java @@ -129,6 +129,20 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_EXPIRED = 9; */ JOB_STATE_EXPIRED(9), + /** + * + * + *
+   * The job is being updated. The job is only able to be updated at RUNNING
+   * state; if the update operation succeeds, job goes back to RUNNING state; if
+   * the update operation fails, the job goes back to RUNNING state with error
+   * messages written to [ModelDeploymentMonitoringJob.partial_errors][] field
+   * if it is a ModelDeploymentMonitoringJob.
+   * 
+ * + * JOB_STATE_UPDATING = 10; + */ + JOB_STATE_UPDATING(10), UNRECOGNIZED(-1), ; @@ -233,6 +247,20 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_EXPIRED = 9; */ public static final int JOB_STATE_EXPIRED_VALUE = 9; + /** + * + * + *
+   * The job is being updated. The job is only able to be updated at RUNNING
+   * state; if the update operation succeeds, job goes back to RUNNING state; if
+   * the update operation fails, the job goes back to RUNNING state with error
+   * messages written to [ModelDeploymentMonitoringJob.partial_errors][] field
+   * if it is a ModelDeploymentMonitoringJob.
+   * 
+ * + * JOB_STATE_UPDATING = 10; + */ + public static final int JOB_STATE_UPDATING_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -278,6 +306,8 @@ public static JobState forNumber(int value) { return JOB_STATE_PAUSED; case 9: return JOB_STATE_EXPIRED; + case 10: + return JOB_STATE_UPDATING; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java index cc6bb84a1..4fa3e09f8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java @@ -36,19 +36,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n*google/cloud/aiplatform/v1/job_state.p" - + "roto\022\032google.cloud.aiplatform.v1*\370\001\n\010Job" + + "roto\022\032google.cloud.aiplatform.v1*\220\002\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\010\022\025\n\021JOB_STATE_EXPIRE" - + "D\020\tB\321\001\n\036com.google.cloud.aiplatform.v1B\r" - + "JobStateProtoP\001ZDgoogle.golang.org/genpr" - + "oto/googleapis/cloud/aiplatform/v1;aipla" - + "tform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goo" - + "gle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud:" - + ":AIPlatform::V1b\006proto3" + + "D\020\t\022\026\n\022JOB_STATE_UPDATING\020\nB\321\001\n\036com.goog" + + "le.cloud.aiplatform.v1B\rJobStateProtoP\001Z" + + "Dgoogle.golang.org/genproto/googleapis/c" + + "loud/aiplatform/v1;aiplatform\252\002\032Google.C" + + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" + + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java index 313a00fa5..929c970d6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java @@ -118,6 +118,8 @@ private LineageSubgraph( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java index e62ce7a9a..133afea53 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java @@ -132,6 +132,8 @@ private ListAnnotationsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java index 920af85d1..89537d861 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java @@ -101,6 +101,8 @@ private ListAnnotationsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java index aa9be17f9..e1f0a37d0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java @@ -109,6 +109,8 @@ private ListArtifactsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java index 7939d72a2..85364fb7a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java @@ -101,6 +101,8 @@ private ListArtifactsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java index bb3a54196..91ce49b6d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java @@ -125,6 +125,8 @@ private ListBatchPredictionJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java index 3b2385dde..a582ba190 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java @@ -104,6 +104,8 @@ private ListBatchPredictionJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java index b39052023..113cf11c3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java @@ -109,6 +109,8 @@ private ListContextsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java index c49372cba..977d84cf5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java @@ -101,6 +101,8 @@ private ListContextsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java index 3c8d6cdd2..1bf57c7b9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java @@ -124,6 +124,8 @@ private ListCustomJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java index 99395df6b..330cbb6ad 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java @@ -101,6 +101,8 @@ private ListCustomJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java index 83c106f70..466265be6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java @@ -132,6 +132,8 @@ private ListDataItemsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java index 76a5e0cfd..0325a1bfc 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java @@ -101,6 +101,8 @@ private ListDataItemsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java index 8e1c7296a..37d37fe4a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java @@ -132,6 +132,8 @@ private ListDataLabelingJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java index d33b5fb4f..3f4447faf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java @@ -102,6 +102,8 @@ private ListDataLabelingJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java index f799a2c14..1a76d7d94 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java @@ -132,6 +132,8 @@ private ListDatasetsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java index dbba3c64f..c5d438314 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java @@ -101,6 +101,8 @@ private ListDatasetsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java index ad79d538d..622ff8268 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java @@ -132,6 +132,8 @@ private ListEndpointsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java index b702fee3f..294b7e62f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java @@ -101,6 +101,8 @@ private ListEndpointsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java index 7a6b44d8d..e242dbb45 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java @@ -132,6 +132,8 @@ private ListEntityTypesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java index cc54217f6..e7bd9dcf4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java @@ -101,6 +101,8 @@ private ListEntityTypesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java index 757303c2d..0eb9fa92b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java @@ -109,6 +109,8 @@ private ListExecutionsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java index 3a57fd284..0b360a063 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java @@ -101,6 +101,8 @@ private ListExecutionsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java index acc2f6a7d..c7dbfc1b6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java @@ -137,6 +137,8 @@ private ListFeaturesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java index 974ac9d47..8ca46a269 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java @@ -101,6 +101,8 @@ private ListFeaturesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java index 26df03827..f37f436aa 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java @@ -132,6 +132,8 @@ private ListFeaturestoresRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java index 936175061..28ba39692 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java @@ -102,6 +102,8 @@ private ListFeaturestoresResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java index 870325058..88961f399 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java @@ -126,6 +126,8 @@ private ListHyperparameterTuningJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java index 705979783..e59c3f515 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java @@ -106,6 +106,8 @@ private ListHyperparameterTuningJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java index 44456c9b4..741400aff 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java @@ -124,6 +124,8 @@ private ListIndexEndpointsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java index bc86abf1f..0edb93de1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java @@ -102,6 +102,8 @@ private ListIndexEndpointsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java index 42e8b5d86..ab2a95100 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java @@ -124,6 +124,8 @@ private ListIndexesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java index ab49a4c26..ad3a01866 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java @@ -101,6 +101,8 @@ private ListIndexesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java index dd70086bb..0ea22d871 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java @@ -109,6 +109,8 @@ private ListMetadataSchemasRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java index c8f3d12e9..775dd2b2e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java @@ -102,6 +102,8 @@ private ListMetadataSchemasResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java index e83dae07c..f5fa253e1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java @@ -101,6 +101,8 @@ private ListMetadataStoresRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java index 206d51c10..97060f220 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java @@ -102,6 +102,8 @@ private ListMetadataStoresResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java index 5150d2cb7..28109badf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java @@ -127,6 +127,8 @@ private ListModelDeploymentMonitoringJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java index 61ffa3b17..350d91d8d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java @@ -107,6 +107,8 @@ private ListModelDeploymentMonitoringJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java index acd5ed170..dd757975a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java @@ -125,6 +125,8 @@ private ListModelEvaluationSlicesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java index c8b9ad7c5..a2b8b4352 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java @@ -104,6 +104,8 @@ private ListModelEvaluationSlicesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java index f1be9067a..6f137e197 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java @@ -124,6 +124,8 @@ private ListModelEvaluationsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java index ff3f2bc10..53c300a23 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java @@ -102,6 +102,8 @@ private ListModelEvaluationsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java index 06a8be4d4..36bcb9d0b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java @@ -132,6 +132,8 @@ private ListModelsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java index 1fc20357f..70b9c6b1c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java @@ -101,6 +101,8 @@ private ListModelsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java index 68262d63e..a0b4ab6cd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java @@ -88,6 +88,8 @@ private ListOptimalTrialsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java index 1c4e1699d..da134abe5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java @@ -93,6 +93,8 @@ private ListOptimalTrialsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java index 4939de409..e61ffd9f2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java @@ -117,6 +117,8 @@ private ListPipelineJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -216,6 +218,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -264,6 +269,9 @@ public java.lang.String getFilter() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -961,6 +969,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1008,6 +1019,9 @@ public java.lang.String getFilter() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1055,6 +1069,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1101,6 +1118,9 @@ public Builder setFilter(java.lang.String value) { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1143,6 +1163,9 @@ public Builder clearFilter() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java index b740caca2..6630d6e29 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java @@ -73,6 +73,9 @@ public interface ListPipelineJobsRequestOrBuilder * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -110,6 +113,9 @@ public interface ListPipelineJobsRequestOrBuilder * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java index 2dbfdae19..fb78f7212 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java @@ -102,6 +102,8 @@ private ListPipelineJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java index f1bb93882..f19047bdf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java @@ -116,6 +116,8 @@ private ListSpecialistPoolsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java index ad0c59671..381d76480 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java @@ -102,6 +102,8 @@ private ListSpecialistPoolsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java index 0432f8298..0af3b8eaa 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java @@ -101,6 +101,8 @@ private ListStudiesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java index 54a2af8c0..711952c98 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java @@ -101,6 +101,8 @@ private ListStudiesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java index 34c05db65..46bb95b6c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java @@ -133,6 +133,8 @@ private ListTensorboardExperimentsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java index 658bbdf65..099520751 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java @@ -104,6 +104,8 @@ private ListTensorboardExperimentsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java index 1c08abe4e..9d83c6f0e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java @@ -132,6 +132,8 @@ private ListTensorboardRunsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java index 07ebe1294..ee9fac55a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java @@ -102,6 +102,8 @@ private ListTensorboardRunsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java index 905189b60..531aa725b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java @@ -133,6 +133,8 @@ private ListTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java index 197e3d83b..db572b2a5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java @@ -104,6 +104,8 @@ private ListTensorboardTimeSeriesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java index 54cce181a..155bb3a5e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java @@ -132,6 +132,8 @@ private ListTensorboardsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java index 412485c18..20370ff1e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java @@ -102,6 +102,8 @@ private ListTensorboardsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java index e3dccea0d..c416434d2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java @@ -124,6 +124,8 @@ private ListTrainingPipelinesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java index 787b7b58f..fadafed23 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java @@ -102,6 +102,8 @@ private ListTrainingPipelinesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java index 658f97cdf..ea55a5984 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java @@ -101,6 +101,8 @@ private ListTrialsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java index c71941fb4..7217e2006 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java @@ -101,6 +101,8 @@ private ListTrialsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java index 37c31bf42..96380cb18 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java @@ -96,6 +96,8 @@ private LookupStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java index d661d3016..2d923a792 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java @@ -51,6 +51,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_DiskSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_DiskSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NfsMount_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -87,14 +91,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ount\030\003 \001(\005B\003\340A\005\"/\n\021ResourcesConsumed\022\032\n\r" + "replica_hours\030\001 \001(\001B\003\340A\003\"=\n\010DiskSpec\022\026\n\016" + "boot_disk_type\030\001 \001(\t\022\031\n\021boot_disk_size_g" - + "b\030\002 \001(\005\"A\n\025AutoscalingMetricSpec\022\030\n\013metr" - + "ic_name\030\001 \001(\tB\003\340A\002\022\016\n\006target\030\002 \001(\005B\331\001\n\036c" - + "om.google.cloud.aiplatform.v1B\025MachineRe" - + "sourcesProtoP\001ZDgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1;aiplat" - + "form\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goog" - + "le\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::" - + "AIPlatform::V1b\006proto3" + + "b\030\002 \001(\005\"L\n\010NfsMount\022\023\n\006server\030\001 \001(\tB\003\340A\002" + + "\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\030\n\013mount_point\030\003 \001(\t" + + "B\003\340A\002\"A\n\025AutoscalingMetricSpec\022\030\n\013metric" + + "_name\030\001 \001(\tB\003\340A\002\022\016\n\006target\030\002 \001(\005B\331\001\n\036com" + + ".google.cloud.aiplatform.v1B\025MachineReso" + + "urcesProtoP\001ZDgoogle.golang.org/genproto" + + "/googleapis/cloud/aiplatform/v1;aiplatfo" + + "rm\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google" + + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AI" + + "Platform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,8 +157,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", }); - internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_NfsMount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor, + new java.lang.String[] { + "Server", "Path", "MountPoint", + }); + internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor, diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java index 4f325f658..9ecee2834 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java @@ -101,6 +101,8 @@ private MachineSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java index f27ac9d19..7b1853dc0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java @@ -84,6 +84,8 @@ private ManualBatchTuningParameters( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java index f96b22cc7..caaeea899 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java @@ -117,6 +117,8 @@ private Measurement( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -263,6 +265,8 @@ private Metric( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -372,7 +376,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricId_); } - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(2, value_); } unknownFields.writeTo(output); @@ -387,7 +391,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricId_); } - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java index c074ede5c..9afb5b1ff 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java @@ -135,6 +135,8 @@ private MetadataSchema( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceProto.java index 1fd27a92b..87287104b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceProto.java @@ -277,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ken\030\002 \001(\t\"\241\001\n\025UpdateArtifactRequest\022;\n\010a" + "rtifact\030\001 \001(\0132$.google.cloud.aiplatform." + "v1.ArtifactB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMaskB\003\340A\002\022\025\n\rallow_" + + "google.protobuf.FieldMaskB\003\340A\001\022\025\n\rallow_" + "missing\030\003 \001(\010\"d\n\025DeleteArtifactRequest\0228" + "\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googlea" + "pis.com/Artifact\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"|\n\025P" @@ -305,7 +305,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "textRequest\0229\n\007context\030\001 \001(\0132#.google.cl" + "oud.aiplatform.v1.ContextB\003\340A\002\0224\n\013update" + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\002\022\025\n\rallow_missing\030\003 \001(\010\"q\n\024DeleteCon" + + "\003\340A\001\022\025\n\rallow_missing\030\003 \001(\010\"q\n\024DeleteCon" + "textRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aipla" + "tform.googleapis.com/Context\022\r\n\005force\030\002 " + "\001(\010\022\021\n\004etag\030\003 \001(\tB\003\340A\001\"z\n\024PurgeContextsR" @@ -347,7 +347,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onRequest\022=\n\texecution\030\001 \001(\0132%.google.cl" + "oud.aiplatform.v1.ExecutionB\003\340A\002\0224\n\013upda" + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\003\340A\002\022\025\n\rallow_missing\030\003 \001(\010\"f\n\026DeleteE" + + "kB\003\340A\001\022\025\n\rallow_missing\030\003 \001(\010\"f\n\026DeleteE" + "xecutionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#a" + "iplatform.googleapis.com/Execution\022\021\n\004et" + "ag\030\002 \001(\tB\003\340A\001\"~\n\026PurgeExecutionsRequest\022" diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java index a7e1fb86a..d413bc398 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java @@ -161,6 +161,8 @@ private MetadataStore( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -268,6 +270,8 @@ private MetadataStoreState( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java index 01ad2c1de..09f1e7631 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java @@ -200,6 +200,8 @@ private MigratableResource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -370,6 +372,8 @@ private MlEngineModelVersion( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1296,6 +1300,8 @@ private AutomlModel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2178,6 +2184,8 @@ private AutomlDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3157,6 +3165,8 @@ private DataLabelingDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3324,6 +3334,8 @@ private DataLabelingAnnotatedDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6535,8 +6547,9 @@ public Builder mergeMlEngineModelVersion( } else { if (resourceCase_ == 1) { mlEngineModelVersionBuilder_.mergeFrom(value); + } else { + mlEngineModelVersionBuilder_.setMessage(value); } - mlEngineModelVersionBuilder_.setMessage(value); } resourceCase_ = 1; return this; @@ -6771,8 +6784,9 @@ public Builder mergeAutomlModel( } else { if (resourceCase_ == 2) { automlModelBuilder_.mergeFrom(value); + } else { + automlModelBuilder_.setMessage(value); } - automlModelBuilder_.setMessage(value); } resourceCase_ = 2; return this; @@ -7005,8 +7019,9 @@ public Builder mergeAutomlDataset( } else { if (resourceCase_ == 3) { automlDatasetBuilder_.mergeFrom(value); + } else { + automlDatasetBuilder_.setMessage(value); } - automlDatasetBuilder_.setMessage(value); } resourceCase_ = 3; return this; @@ -7244,8 +7259,9 @@ public Builder mergeDataLabelingDataset( } else { if (resourceCase_ == 4) { dataLabelingDatasetBuilder_.mergeFrom(value); + } else { + dataLabelingDatasetBuilder_.setMessage(value); } - dataLabelingDatasetBuilder_.setMessage(value); } resourceCase_ = 4; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java index b834dd9cb..dbd857943 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java @@ -186,6 +186,8 @@ private MigrateResourceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -398,6 +400,8 @@ private MigrateMlEngineModelVersionConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1565,6 +1569,8 @@ private MigrateAutomlModelConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2502,6 +2508,8 @@ private MigrateAutomlDatasetConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3546,6 +3554,8 @@ private MigrateDataLabelingDatasetConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3687,6 +3697,8 @@ private MigrateDataLabelingAnnotatedDatasetConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6737,8 +6749,9 @@ public Builder mergeMigrateMlEngineModelVersionConfig( } else { if (requestCase_ == 1) { migrateMlEngineModelVersionConfigBuilder_.mergeFrom(value); + } else { + migrateMlEngineModelVersionConfigBuilder_.setMessage(value); } - migrateMlEngineModelVersionConfigBuilder_.setMessage(value); } requestCase_ = 1; return this; @@ -6997,8 +7010,9 @@ public Builder mergeMigrateAutomlModelConfig( } else { if (requestCase_ == 2) { migrateAutomlModelConfigBuilder_.mergeFrom(value); + } else { + migrateAutomlModelConfigBuilder_.setMessage(value); } - migrateAutomlModelConfigBuilder_.setMessage(value); } requestCase_ = 2; return this; @@ -7256,8 +7270,9 @@ public Builder mergeMigrateAutomlDatasetConfig( } else { if (requestCase_ == 3) { migrateAutomlDatasetConfigBuilder_.mergeFrom(value); + } else { + migrateAutomlDatasetConfigBuilder_.setMessage(value); } - migrateAutomlDatasetConfigBuilder_.setMessage(value); } requestCase_ = 3; return this; @@ -7521,8 +7536,9 @@ public Builder mergeMigrateDataLabelingDatasetConfig( } else { if (requestCase_ == 4) { migrateDataLabelingDatasetConfigBuilder_.mergeFrom(value); + } else { + migrateDataLabelingDatasetConfigBuilder_.setMessage(value); } - migrateDataLabelingDatasetConfigBuilder_.setMessage(value); } requestCase_ = 4; return this; 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 de3debdb9..956f0acff 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 @@ -110,6 +110,8 @@ private MigrateResourceResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index 6633a5986..6c662137a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -334,6 +334,8 @@ private Model( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -779,6 +781,8 @@ private ExportFormat( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3491,7 +3495,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3534,7 +3538,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3555,7 +3559,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -8814,7 +8818,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -8858,7 +8862,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -8879,7 +8883,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -8907,7 +8911,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -8932,11 +8936,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java index 820d35078..6d4538383 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java @@ -153,6 +153,8 @@ private ModelContainerSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java index a42196544..a5aa0b10b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java @@ -107,6 +107,8 @@ private ModelDeploymentMonitoringBigQueryTable( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java index a96315a56..bd43be212 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java @@ -348,6 +348,26 @@ private ModelDeploymentMonitoringJob( error_ = subBuilder.buildPartial(); } + break; + } + case 202: + { + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder + subBuilder = null; + if (latestMonitoringPipelineMetadata_ != null) { + subBuilder = latestMonitoringPipelineMetadata_.toBuilder(); + } + latestMonitoringPipelineMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latestMonitoringPipelineMetadata_); + latestMonitoringPipelineMetadata_ = subBuilder.buildPartial(); + } + break; } default: @@ -361,6 +381,8 @@ private ModelDeploymentMonitoringJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -515,76 +537,1206 @@ public static MonitoringScheduleState valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MonitoringScheduleState forNumber(int value) { - switch (value) { - case 0: - return MONITORING_SCHEDULE_STATE_UNSPECIFIED; - case 1: - return PENDING; - case 2: - return OFFLINE; - case 3: - return RUNNING; - default: - return null; + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MonitoringScheduleState forNumber(int value) { + switch (value) { + case 0: + return MONITORING_SCHEDULE_STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return OFFLINE; + case 3: + return RUNNING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MonitoringScheduleState findValueByNumber(int number) { + return MonitoringScheduleState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MonitoringScheduleState[] VALUES = values(); + + public static MonitoringScheduleState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MonitoringScheduleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState) + } + + public interface LatestMonitoringPipelineMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return Whether the runTime field is set. + */ + boolean hasRunTime(); + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return The runTime. + */ + com.google.protobuf.Timestamp getRunTime(); + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder(); + + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + } + /** + * + * + *
+   * All metadata of most recent monitoring pipelines.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} + */ + public static final class LatestMonitoringPipelineMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + LatestMonitoringPipelineMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LatestMonitoringPipelineMetadata.newBuilder() to construct. + private LatestMonitoringPipelineMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LatestMonitoringPipelineMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LatestMonitoringPipelineMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LatestMonitoringPipelineMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (runTime_ != null) { + subBuilder = runTime_.toBuilder(); + } + runTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runTime_); + runTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.class, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder.class); + } + + public static final int RUN_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp runTime_; + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return Whether the runTime field is set. + */ + @java.lang.Override + public boolean hasRunTime() { + return runTime_ != null; + } + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return The runTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRunTime() { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { + return getRunTime(); + } + + public static final int STATUS_FIELD_NUMBER = 2; + private com.google.rpc.Status status_; + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (runTime_ != null) { + output.writeMessage(1, getRunTime()); + } + if (status_ != null) { + output.writeMessage(2, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRunTime()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + other = + (com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) + obj; + + if (hasRunTime() != other.hasRunTime()) return false; + if (hasRunTime()) { + if (!getRunTime().equals(other.getRunTime())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } + if (!unknownFields.equals(other.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 (hasRunTime()) { + hash = (37 * hash) + RUN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRunTime().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * All metadata of most recent monitoring pipelines.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.class, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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 (runTimeBuilder_ == null) { + runTime_ = null; + } else { + runTime_ = null; + runTimeBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + build() { + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + buildPartial() { + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + result = + new com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata(this); + if (runTimeBuilder_ == null) { + result.runTime_ = runTime_; + } else { + result.runTime_ = runTimeBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + other) { + if (other + == com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance()) return this; + if (other.hasRunTime()) { + mergeRunTime(other.getRunTime()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp runTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + runTimeBuilder_; + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return Whether the runTime field is set. + */ + public boolean hasRunTime() { + return runTimeBuilder_ != null || runTime_ != null; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return The runTime. + */ + public com.google.protobuf.Timestamp getRunTime() { + if (runTimeBuilder_ == null) { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } else { + return runTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder setRunTime(com.google.protobuf.Timestamp value) { + if (runTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runTime_ = value; + onChanged(); + } else { + runTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (runTimeBuilder_ == null) { + runTime_ = builderForValue.build(); + onChanged(); + } else { + runTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder mergeRunTime(com.google.protobuf.Timestamp value) { + if (runTimeBuilder_ == null) { + if (runTime_ != null) { + runTime_ = + com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial(); + } else { + runTime_ = value; + } + onChanged(); + } else { + runTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder clearRunTime() { + if (runTimeBuilder_ == null) { + runTime_ = null; + onChanged(); + } else { + runTime_ = null; + runTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() { + + onChanged(); + return getRunTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { + if (runTimeBuilder_ != null) { + return runTimeBuilder_.getMessageOrBuilder(); + } else { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRunTimeFieldBuilder() { + if (runTimeBuilder_ == null) { + runTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRunTime(), getParentForChildren(), isClean()); + runTime_ = null; + } + return runTimeBuilder_; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + * + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; } - } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MonitoringScheduleState findValueByNumber(int number) { - return MonitoringScheduleState.forNumber(number); - } - }; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - 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."); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - return getDescriptor().getValues().get(ordinal()); + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + private static final com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.getDescriptor() - .getEnumTypes() - .get(0); + public static com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private static final MonitoringScheduleState[] VALUES = values(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatestMonitoringPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatestMonitoringPipelineMetadata(input, extensionRegistry); + } + }; - public static MonitoringScheduleState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; - - private MonitoringScheduleState(int value) { - this.value = value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState) + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } public static final int NAME_FIELD_NUMBER = 1; @@ -839,6 +1991,67 @@ public int getScheduleStateValue() { : result; } + public static final int LATEST_MONITORING_PIPELINE_METADATA_FIELD_NUMBER = 25; + private com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + latestMonitoringPipelineMetadata_; + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestMonitoringPipelineMetadata field is set. + */ + @java.lang.Override + public boolean hasLatestMonitoringPipelineMetadata() { + return latestMonitoringPipelineMetadata_ != null; + } + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestMonitoringPipelineMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getLatestMonitoringPipelineMetadata() { + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; + } + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder + getLatestMonitoringPipelineMetadataOrBuilder() { + return getLatestMonitoringPipelineMetadata(); + } + public static final int MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER = 6; private java.util.List modelDeploymentMonitoringObjectiveConfigs_; @@ -1474,7 +2687,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1519,7 +2732,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1541,7 +2754,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1960,6 +3173,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (error_ != null) { output.writeMessage(23, getError()); } + if (latestMonitoringPipelineMetadata_ != null) { + output.writeMessage(25, getLatestMonitoringPipelineMetadata()); + } unknownFields.writeTo(output); } @@ -2058,6 +3274,11 @@ public int getSerializedSize() { if (error_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getError()); } + if (latestMonitoringPipelineMetadata_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getLatestMonitoringPipelineMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2079,6 +3300,12 @@ public boolean equals(final java.lang.Object obj) { if (!getEndpoint().equals(other.getEndpoint())) return false; if (state_ != other.state_) return false; if (scheduleState_ != other.scheduleState_) return false; + if (hasLatestMonitoringPipelineMetadata() != other.hasLatestMonitoringPipelineMetadata()) + return false; + if (hasLatestMonitoringPipelineMetadata()) { + if (!getLatestMonitoringPipelineMetadata() + .equals(other.getLatestMonitoringPipelineMetadata())) return false; + } if (!getModelDeploymentMonitoringObjectiveConfigsList() .equals(other.getModelDeploymentMonitoringObjectiveConfigsList())) return false; if (hasModelDeploymentMonitoringScheduleConfig() @@ -2155,6 +3382,10 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + SCHEDULE_STATE_FIELD_NUMBER; hash = (53 * hash) + scheduleState_; + if (hasLatestMonitoringPipelineMetadata()) { + hash = (37 * hash) + LATEST_MONITORING_PIPELINE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getLatestMonitoringPipelineMetadata().hashCode(); + } if (getModelDeploymentMonitoringObjectiveConfigsCount() > 0) { hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getModelDeploymentMonitoringObjectiveConfigsList().hashCode(); @@ -2399,6 +3630,12 @@ public Builder clear() { scheduleState_ = 0; + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadata_ = null; + } else { + latestMonitoringPipelineMetadata_ = null; + latestMonitoringPipelineMetadataBuilder_ = null; + } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); @@ -2517,6 +3754,11 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob buildPartial( result.endpoint_ = endpoint_; result.state_ = state_; result.scheduleState_ = scheduleState_; + if (latestMonitoringPipelineMetadataBuilder_ == null) { + result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadata_; + } else { + result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadataBuilder_.build(); + } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelDeploymentMonitoringObjectiveConfigs_ = @@ -2667,6 +3909,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin if (other.scheduleState_ != 0) { setScheduleStateValue(other.getScheduleStateValue()); } + if (other.hasLatestMonitoringPipelineMetadata()) { + mergeLatestMonitoringPipelineMetadata(other.getLatestMonitoringPipelineMetadata()); + } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { if (!other.modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { if (modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { @@ -3379,6 +4624,237 @@ public Builder clearScheduleState() { return this; } + private com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + latestMonitoringPipelineMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder> + latestMonitoringPipelineMetadataBuilder_; + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestMonitoringPipelineMetadata field is set. + */ + public boolean hasLatestMonitoringPipelineMetadata() { + return latestMonitoringPipelineMetadataBuilder_ != null + || latestMonitoringPipelineMetadata_ != null; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestMonitoringPipelineMetadata. + */ + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getLatestMonitoringPipelineMetadata() { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; + } else { + return latestMonitoringPipelineMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestMonitoringPipelineMetadata( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + value) { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestMonitoringPipelineMetadata_ = value; + onChanged(); + } else { + latestMonitoringPipelineMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestMonitoringPipelineMetadata( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + .Builder + builderForValue) { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadata_ = builderForValue.build(); + onChanged(); + } else { + latestMonitoringPipelineMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLatestMonitoringPipelineMetadata( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + value) { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + if (latestMonitoringPipelineMetadata_ != null) { + latestMonitoringPipelineMetadata_ = + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.newBuilder(latestMonitoringPipelineMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + latestMonitoringPipelineMetadata_ = value; + } + onChanged(); + } else { + latestMonitoringPipelineMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLatestMonitoringPipelineMetadata() { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadata_ = null; + onChanged(); + } else { + latestMonitoringPipelineMetadata_ = null; + latestMonitoringPipelineMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder + getLatestMonitoringPipelineMetadataBuilder() { + + onChanged(); + return getLatestMonitoringPipelineMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder + getLatestMonitoringPipelineMetadataOrBuilder() { + if (latestMonitoringPipelineMetadataBuilder_ != null) { + return latestMonitoringPipelineMetadataBuilder_.getMessageOrBuilder(); + } else { + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; + } + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder> + getLatestMonitoringPipelineMetadataFieldBuilder() { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder, + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder>( + getLatestMonitoringPipelineMetadata(), getParentForChildren(), isClean()); + latestMonitoringPipelineMetadata_ = null; + } + return latestMonitoringPipelineMetadataBuilder_; + } + private java.util.List modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); @@ -5660,7 +7136,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -5706,7 +7182,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -5728,7 +7204,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -5757,7 +7233,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -5783,11 +7259,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java index 55b074fc4..68781029e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java @@ -177,6 +177,50 @@ public interface ModelDeploymentMonitoringJobOrBuilder com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState getScheduleState(); + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestMonitoringPipelineMetadata field is set. + */ + boolean hasLatestMonitoringPipelineMetadata(); + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestMonitoringPipelineMetadata. + */ + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + getLatestMonitoringPipelineMetadata(); + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder + getLatestMonitoringPipelineMetadataOrBuilder(); + /** * * @@ -682,7 +726,12 @@ com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable getBigquer * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java index 3508b81fb..4f32dd8d1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java @@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,7 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "iplatform/v1/model_monitoring.proto\032\036goo" + "gle/protobuf/duration.proto\032\034google/prot" + "obuf/struct.proto\032\037google/protobuf/times" - + "tamp.proto\032\027google/rpc/status.proto\"\251\016\n\034" + + "tamp.proto\032\027google/rpc/status.proto\"\255\020\n\034" + "ModelDeploymentMonitoringJob\022\021\n\004name\030\001 \001" + "(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022<\n\010en" + "dpoint\030\003 \001(\tB*\340A\002\372A$\n\"aiplatform.googlea" @@ -84,87 +88,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.aiplatform.v1.JobStateB\003\340A\003\022m\n\016sc" + "hedule_state\030\005 \001(\0162P.google.cloud.aiplat" + "form.v1.ModelDeploymentMonitoringJob.Mon" - + "itoringScheduleStateB\003\340A\003\022\200\001\n-model_depl" - + "oyment_monitoring_objective_configs\030\006 \003(" - + "\0132D.google.cloud.aiplatform.v1.ModelDepl" - + "oymentMonitoringObjectiveConfigB\003\340A\002\022}\n+" - + "model_deployment_monitoring_schedule_con" - + "fig\030\007 \001(\0132C.google.cloud.aiplatform.v1.M" - + "odelDeploymentMonitoringScheduleConfigB\003" - + "\340A\002\022T\n\031logging_sampling_strategy\030\010 \001(\0132," - + ".google.cloud.aiplatform.v1.SamplingStra" - + "tegyB\003\340A\002\022]\n\035model_monitoring_alert_conf" - + "ig\030\017 \001(\01326.google.cloud.aiplatform.v1.Mo" - + "delMonitoringAlertConfig\022#\n\033predict_inst" - + "ance_schema_uri\030\t \001(\t\0227\n\027sample_predict_" - + "instance\030\023 \001(\0132\026.google.protobuf.Value\022$" - + "\n\034analysis_instance_schema_uri\030\020 \001(\t\022`\n\017" - + "bigquery_tables\030\n \003(\0132B.google.cloud.aip" - + "latform.v1.ModelDeploymentMonitoringBigQ" - + "ueryTableB\003\340A\003\022*\n\007log_ttl\030\021 \001(\0132\031.google" - + ".protobuf.Duration\022T\n\006labels\030\013 \003(\0132D.goo" + + "itoringScheduleStateB\003\340A\003\022\213\001\n#latest_mon" + + "itoring_pipeline_metadata\030\031 \001(\0132Y.google" + + ".cloud.aiplatform.v1.ModelDeploymentMoni" + + "toringJob.LatestMonitoringPipelineMetada" + + "taB\003\340A\003\022\200\001\n-model_deployment_monitoring_" + + "objective_configs\030\006 \003(\0132D.google.cloud.a" + + "iplatform.v1.ModelDeploymentMonitoringOb" + + "jectiveConfigB\003\340A\002\022}\n+model_deployment_m" + + "onitoring_schedule_config\030\007 \001(\0132C.google" + + ".cloud.aiplatform.v1.ModelDeploymentMoni" + + "toringScheduleConfigB\003\340A\002\022T\n\031logging_sam" + + "pling_strategy\030\010 \001(\0132,.google.cloud.aipl" + + "atform.v1.SamplingStrategyB\003\340A\002\022]\n\035model" + + "_monitoring_alert_config\030\017 \001(\01326.google." + + "cloud.aiplatform.v1.ModelMonitoringAlert" + + "Config\022#\n\033predict_instance_schema_uri\030\t " + + "\001(\t\0227\n\027sample_predict_instance\030\023 \001(\0132\026.g" + + "oogle.protobuf.Value\022$\n\034analysis_instanc" + + "e_schema_uri\030\020 \001(\t\022`\n\017bigquery_tables\030\n " + + "\003(\0132B.google.cloud.aiplatform.v1.ModelDe" + + "ploymentMonitoringBigQueryTableB\003\340A\003\022*\n\007" + + "log_ttl\030\021 \001(\0132\031.google.protobuf.Duration" + + "\022T\n\006labels\030\013 \003(\0132D.google.cloud.aiplatfo" + + "rm.v1.ModelDeploymentMonitoringJob.Label" + + "sEntry\0224\n\013create_time\030\014 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\r \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022;\n\022ne" + + "xt_schedule_time\030\016 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022R\n\036stats_anomalies_base_" + + "directory\030\024 \001(\0132*.google.cloud.aiplatfor" + + "m.v1.GcsDestination\022C\n\017encryption_spec\030\025" + + " \001(\0132*.google.cloud.aiplatform.v1.Encryp" + + "tionSpec\022\'\n\037enable_monitoring_pipeline_l" + + "ogs\030\026 \001(\010\022&\n\005error\030\027 \001(\0132\022.google.rpc.St" + + "atusB\003\340A\003\032t\n LatestMonitoringPipelineMet" + + "adata\022,\n\010run_time\030\001 \001(\0132\032.google.protobu" + + "f.Timestamp\022\"\n\006status\030\002 \001(\0132\022.google.rpc" + + ".Status\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"k\n\027MonitoringScheduleStat" + + "e\022)\n%MONITORING_SCHEDULE_STATE_UNSPECIFI" + + "ED\020\000\022\013\n\007PENDING\020\001\022\013\n\007OFFLINE\020\002\022\013\n\007RUNNIN" + + "G\020\003:\245\001\352A\241\001\n6aiplatform.googleapis.com/Mo" + + "delDeploymentMonitoringJob\022gprojects/{pr" + + "oject}/locations/{location}/modelDeploym" + + "entMonitoringJobs/{model_deployment_moni" + + "toring_job}\"\210\003\n&ModelDeploymentMonitorin" + + "gBigQueryTable\022`\n\nlog_source\030\001 \001(\0162L.goo" + "gle.cloud.aiplatform.v1.ModelDeploymentM" - + "onitoringJob.LabelsEntry\0224\n\013create_time\030" - + "\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" - + "\n\013update_time\030\r \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022;\n\022next_schedule_time\030\016 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022R\n\036sta" - + "ts_anomalies_base_directory\030\024 \001(\0132*.goog" - + "le.cloud.aiplatform.v1.GcsDestination\022C\n" - + "\017encryption_spec\030\025 \001(\0132*.google.cloud.ai" - + "platform.v1.EncryptionSpec\022\'\n\037enable_mon" - + "itoring_pipeline_logs\030\026 \001(\010\022&\n\005error\030\027 \001" - + "(\0132\022.google.rpc.StatusB\003\340A\003\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"k\n\027Mo" - + "nitoringScheduleState\022)\n%MONITORING_SCHE" - + "DULE_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n" - + "\007OFFLINE\020\002\022\013\n\007RUNNING\020\003:\245\001\352A\241\001\n6aiplatfo" - + "rm.googleapis.com/ModelDeploymentMonitor" - + "ingJob\022gprojects/{project}/locations/{lo" - + "cation}/modelDeploymentMonitoringJobs/{m" - + "odel_deployment_monitoring_job}\"\210\003\n&Mode" - + "lDeploymentMonitoringBigQueryTable\022`\n\nlo" - + "g_source\030\001 \001(\0162L.google.cloud.aiplatform" - + ".v1.ModelDeploymentMonitoringBigQueryTab" - + "le.LogSource\022\\\n\010log_type\030\002 \001(\0162J.google." - + "cloud.aiplatform.v1.ModelDeploymentMonit" - + "oringBigQueryTable.LogType\022\033\n\023bigquery_t" - + "able_path\030\003 \001(\t\"B\n\tLogSource\022\032\n\026LOG_SOUR" - + "CE_UNSPECIFIED\020\000\022\014\n\010TRAINING\020\001\022\013\n\007SERVIN" - + "G\020\002\"=\n\007LogType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000" - + "\022\013\n\007PREDICT\020\001\022\013\n\007EXPLAIN\020\002\"\233\001\n(ModelDepl" - + "oymentMonitoringObjectiveConfig\022\031\n\021deplo" - + "yed_model_id\030\001 \001(\t\022T\n\020objective_config\030\002" - + " \001(\0132:.google.cloud.aiplatform.v1.ModelM" - + "onitoringObjectiveConfig\"c\n\'ModelDeploym" - + "entMonitoringScheduleConfig\0228\n\020monitor_i" - + "nterval\030\001 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\002\"\254\004\n\035ModelMonitoringStatsAnomalies\022" - + "U\n\tobjective\030\001 \001(\0162B.google.cloud.aiplat" - + "form.v1.ModelDeploymentMonitoringObjecti" - + "veType\022\031\n\021deployed_model_id\030\002 \001(\t\022\025\n\rano" - + "maly_count\030\003 \001(\005\022n\n\rfeature_stats\030\004 \003(\0132" - + "W.google.cloud.aiplatform.v1.ModelMonito" - + "ringStatsAnomalies.FeatureHistoricStatsA" - + "nomalies\032\221\002\n\035FeatureHistoricStatsAnomali" - + "es\022\034\n\024feature_display_name\030\001 \001(\t\022>\n\tthre" - + "shold\030\003 \001(\0132+.google.cloud.aiplatform.v1" - + ".ThresholdConfig\022G\n\016training_stats\030\004 \001(\013" - + "2/.google.cloud.aiplatform.v1.FeatureSta" - + "tsAnomaly\022I\n\020prediction_stats\030\005 \003(\0132/.go" - + "ogle.cloud.aiplatform.v1.FeatureStatsAno" - + "maly*\316\001\n&ModelDeploymentMonitoringObject" - + "iveType\022:\n6MODEL_DEPLOYMENT_MONITORING_O" - + "BJECTIVE_TYPE_UNSPECIFIED\020\000\022\024\n\020RAW_FEATU" - + "RE_SKEW\020\001\022\025\n\021RAW_FEATURE_DRIFT\020\002\022\034\n\030FEAT" - + "URE_ATTRIBUTION_SKEW\020\003\022\035\n\031FEATURE_ATTRIB" - + "UTION_DRIFT\020\004B\345\001\n\036com.google.cloud.aipla" - + "tform.v1B!ModelDeploymentMonitoringJobPr" - + "otoP\001ZDgoogle.golang.org/genproto/google" - + "apis/cloud/aiplatform/v1;aiplatform\252\002\032Go" - + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\" - + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor" - + "m::V1b\006proto3" + + "onitoringBigQueryTable.LogSource\022\\\n\010log_" + + "type\030\002 \001(\0162J.google.cloud.aiplatform.v1." + + "ModelDeploymentMonitoringBigQueryTable.L" + + "ogType\022\033\n\023bigquery_table_path\030\003 \001(\t\"B\n\tL" + + "ogSource\022\032\n\026LOG_SOURCE_UNSPECIFIED\020\000\022\014\n\010" + + "TRAINING\020\001\022\013\n\007SERVING\020\002\"=\n\007LogType\022\030\n\024LO" + + "G_TYPE_UNSPECIFIED\020\000\022\013\n\007PREDICT\020\001\022\013\n\007EXP" + + "LAIN\020\002\"\233\001\n(ModelDeploymentMonitoringObje" + + "ctiveConfig\022\031\n\021deployed_model_id\030\001 \001(\t\022T" + + "\n\020objective_config\030\002 \001(\0132:.google.cloud." + + "aiplatform.v1.ModelMonitoringObjectiveCo" + + "nfig\"c\n\'ModelDeploymentMonitoringSchedul" + + "eConfig\0228\n\020monitor_interval\030\001 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\002\"\254\004\n\035ModelMonit" + + "oringStatsAnomalies\022U\n\tobjective\030\001 \001(\0162B" + + ".google.cloud.aiplatform.v1.ModelDeploym" + + "entMonitoringObjectiveType\022\031\n\021deployed_m" + + "odel_id\030\002 \001(\t\022\025\n\ranomaly_count\030\003 \001(\005\022n\n\r" + + "feature_stats\030\004 \003(\0132W.google.cloud.aipla" + + "tform.v1.ModelMonitoringStatsAnomalies.F" + + "eatureHistoricStatsAnomalies\032\221\002\n\035Feature" + + "HistoricStatsAnomalies\022\034\n\024feature_displa" + + "y_name\030\001 \001(\t\022>\n\tthreshold\030\003 \001(\0132+.google" + + ".cloud.aiplatform.v1.ThresholdConfig\022G\n\016" + + "training_stats\030\004 \001(\0132/.google.cloud.aipl" + + "atform.v1.FeatureStatsAnomaly\022I\n\020predict" + + "ion_stats\030\005 \003(\0132/.google.cloud.aiplatfor" + + "m.v1.FeatureStatsAnomaly*\316\001\n&ModelDeploy" + + "mentMonitoringObjectiveType\022:\n6MODEL_DEP" + + "LOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPEC" + + "IFIED\020\000\022\024\n\020RAW_FEATURE_SKEW\020\001\022\025\n\021RAW_FEA" + + "TURE_DRIFT\020\002\022\034\n\030FEATURE_ATTRIBUTION_SKEW" + + "\020\003\022\035\n\031FEATURE_ATTRIBUTION_DRIFT\020\004B\345\001\n\036co" + + "m.google.cloud.aiplatform.v1B!ModelDeplo" + + "ymentMonitoringJobProtoP\001ZDgoogle.golang" + + ".org/genproto/googleapis/cloud/aiplatfor" + + "m/v1;aiplatform\252\002\032Google.Cloud.AIPlatfor" + + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" + + "le::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -193,6 +203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "State", "ScheduleState", + "LatestMonitoringPipelineMetadata", "ModelDeploymentMonitoringObjectiveConfigs", "ModelDeploymentMonitoringScheduleConfig", "LoggingSamplingStrategy", @@ -211,10 +222,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableMonitoringPipelineLogs", "Error", }); - internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor = internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor, + new java.lang.String[] { + "RunTime", "Status", + }); + internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_descriptor + .getNestedTypes() + .get(1); internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor, diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java index 7561a81b6..434d27cbf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java @@ -109,6 +109,8 @@ private ModelDeploymentMonitoringObjectiveConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java index 72459a24c..348bd41c1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java @@ -96,6 +96,8 @@ private ModelDeploymentMonitoringScheduleConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java index e42d0c6e2..1ce501a6b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java @@ -187,6 +187,8 @@ private ModelEvaluation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -369,6 +371,8 @@ private ModelEvaluationExplanationSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java index ff843844b..d4e429d96 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java @@ -143,6 +143,8 @@ private ModelEvaluationSlice( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -307,6 +309,8 @@ private Slice( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java index 09b33d8db..e732254e2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java @@ -94,6 +94,8 @@ private ModelExplanation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java index bfd1a1c33..378fd52e6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java @@ -108,6 +108,8 @@ private ModelMonitoringAlertConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -261,6 +263,8 @@ private EmailAlertConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1573,8 +1577,9 @@ public Builder mergeEmailAlertConfig( } else { if (alertCase_ == 1) { emailAlertConfigBuilder_.mergeFrom(value); + } else { + emailAlertConfigBuilder_.setMessage(value); } - emailAlertConfigBuilder_.setMessage(value); } alertCase_ = 1; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java index 2178a06e0..5c8ba3546 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java @@ -22,7 +22,7 @@ * * *
- * Next ID: 7
+ * Next ID: 8
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} @@ -159,6 +159,8 @@ private ModelMonitoringObjectiveConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -543,6 +545,8 @@ private TrainingDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1713,8 +1717,9 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { } else { if (dataSourceCase_ == 4) { gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); } - gcsSourceBuilder_.setMessage(value); } dataSourceCase_ = 4; return this; @@ -1932,8 +1937,9 @@ public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1.BigQuerySource } else { if (dataSourceCase_ == 5) { bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); } - bigquerySourceBuilder_.setMessage(value); } dataSourceCase_ = 5; return this; @@ -2606,8 +2612,12 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> skew_thresholds = 1; * */ + + /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); /** * * @@ -2683,8 +2693,12 @@ com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> attribution_score_skew_thresholds = 2; *
*/ + + /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); /** * * @@ -2808,6 +2822,8 @@ private TrainingPredictionSkewDetectionConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2896,7 +2912,7 @@ public int getSkewThresholdsCount() { @java.lang.Override public boolean containsSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetSkewThresholds().getMap().containsKey(key); } @@ -2942,7 +2958,7 @@ public boolean containsSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -2965,7 +2981,7 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -3025,7 +3041,7 @@ public int getAttributionScoreSkewThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreSkewThresholds().getMap().containsKey(key); } @@ -3072,7 +3088,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { getAttributionScoreSkewThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3095,7 +3111,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3600,7 +3616,7 @@ public int getSkewThresholdsCount() { @java.lang.Override public boolean containsSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetSkewThresholds().getMap().containsKey(key); } @@ -3646,7 +3662,7 @@ public boolean containsSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -3669,7 +3685,7 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -3698,7 +3714,7 @@ public Builder clearSkewThresholds() { */ public Builder removeSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableSkewThresholds().getMutableMap().remove(key); return this; @@ -3725,11 +3741,12 @@ public Builder removeSkewThresholds(java.lang.String key) { public Builder putSkewThresholds( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableSkewThresholds().getMutableMap().put(key, value); return this; } @@ -3801,7 +3818,7 @@ public int getAttributionScoreSkewThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreSkewThresholds().getMap().containsKey(key); } @@ -3848,7 +3865,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { getAttributionScoreSkewThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3871,7 +3888,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholdsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3900,7 +3917,7 @@ public Builder clearAttributionScoreSkewThresholds() { */ public Builder removeAttributionScoreSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAttributionScoreSkewThresholds().getMutableMap().remove(key); return this; @@ -3927,11 +3944,12 @@ public Builder removeAttributionScoreSkewThresholds(java.lang.String key) { public Builder putAttributionScoreSkewThresholds( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAttributionScoreSkewThresholds().getMutableMap().put(key, value); return this; } @@ -4079,8 +4097,12 @@ public interface PredictionDriftDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> drift_thresholds = 1; * */ + + /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); /** * * @@ -4152,8 +4174,12 @@ com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> attribution_score_drift_thresholds = 2; *
*/ + + /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue); /** * * @@ -4275,6 +4301,8 @@ private PredictionDriftDetectionConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -4363,7 +4391,7 @@ public int getDriftThresholdsCount() { @java.lang.Override public boolean containsDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDriftThresholds().getMap().containsKey(key); } @@ -4409,7 +4437,7 @@ public boolean containsDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -4432,7 +4460,7 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefaul public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -4491,7 +4519,7 @@ public int getAttributionScoreDriftThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreDriftThresholds().getMap().containsKey(key); } @@ -4536,7 +4564,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { getAttributionScoreDriftThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -4558,7 +4586,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -5057,7 +5085,7 @@ public int getDriftThresholdsCount() { @java.lang.Override public boolean containsDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDriftThresholds().getMap().containsKey(key); } @@ -5103,7 +5131,7 @@ public boolean containsDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -5126,7 +5154,7 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefaul public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -5155,7 +5183,7 @@ public Builder clearDriftThresholds() { */ public Builder removeDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableDriftThresholds().getMutableMap().remove(key); return this; @@ -5182,11 +5210,12 @@ public Builder removeDriftThresholds(java.lang.String key) { public Builder putDriftThresholds( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableDriftThresholds().getMutableMap().put(key, value); return this; } @@ -5257,7 +5286,7 @@ public int getAttributionScoreDriftThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreDriftThresholds().getMap().containsKey(key); } @@ -5302,7 +5331,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { getAttributionScoreDriftThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -5324,7 +5353,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThresholdsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -5352,7 +5381,7 @@ public Builder clearAttributionScoreDriftThresholds() { */ public Builder removeAttributionScoreDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAttributionScoreDriftThresholds().getMutableMap().remove(key); return this; @@ -5378,11 +5407,12 @@ public Builder removeAttributionScoreDriftThresholds(java.lang.String key) { public Builder putAttributionScoreDriftThresholds( java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAttributionScoreDriftThresholds().getMutableMap().put(key, value); return this; } @@ -5617,6 +5647,8 @@ private ExplanationConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -5862,6 +5894,8 @@ private ExplanationBaseline( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6838,8 +6872,9 @@ public Builder mergeGcs(com.google.cloud.aiplatform.v1.GcsDestination value) { } else { if (destinationCase_ == 2) { gcsBuilder_.mergeFrom(value); + } else { + gcsBuilder_.setMessage(value); } - gcsBuilder_.setMessage(value); } destinationCase_ = 2; return this; @@ -7048,8 +7083,9 @@ public Builder mergeBigquery(com.google.cloud.aiplatform.v1.BigQueryDestination } else { if (destinationCase_ == 3) { bigqueryBuilder_.mergeFrom(value); + } else { + bigqueryBuilder_.setMessage(value); } - bigqueryBuilder_.setMessage(value); } destinationCase_ = 3; return this; @@ -8584,7 +8620,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Next ID: 7
+   * Next ID: 8
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java index ec5f2c0db..e0357f339 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java @@ -119,6 +119,8 @@ private ModelMonitoringStatsAnomalies( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -424,6 +426,8 @@ private FeatureHistoricStatsAnomalies( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java index b74f72793..8af448361 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java @@ -1182,7 +1182,12 @@ com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType getSupportedDeploym * * map<string, string> labels = 17; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java index 55ffdffac..0cbfd23b3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java @@ -108,6 +108,8 @@ private MutateDeployedIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java index d13a0d944..b3e55febf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java @@ -104,6 +104,8 @@ private MutateDeployedIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java index 7f1590739..72d800066 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java @@ -95,6 +95,8 @@ private MutateDeployedIndexResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java index 9f5c06654..f573249c9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java @@ -105,6 +105,8 @@ private NearestNeighborSearchOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -368,6 +370,8 @@ private RecordError( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2155,6 +2159,8 @@ private ContentValidationStats( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMount.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMount.java new file mode 100644 index 000000000..acfe474f0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMount.java @@ -0,0 +1,1014 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/machine_resources.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Represents a mount configuration for Network File System (NFS) to mount.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NfsMount} + */ +public final class NfsMount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NfsMount) + NfsMountOrBuilder { + private static final long serialVersionUID = 0L; + // Use NfsMount.newBuilder() to construct. + private NfsMount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NfsMount() { + server_ = ""; + path_ = ""; + mountPoint_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NfsMount(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NfsMount( + 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(); + + server_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + mountPoint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_NfsMount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NfsMount.class, + com.google.cloud.aiplatform.v1.NfsMount.Builder.class); + } + + public static final int SERVER_FIELD_NUMBER = 1; + private volatile java.lang.Object server_; + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The server. + */ + @java.lang.Override + public java.lang.String getServer() { + java.lang.Object ref = server_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + server_ = s; + return s; + } + } + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for server. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerBytes() { + java.lang.Object ref = server_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + server_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object path_; + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOUNT_POINT_FIELD_NUMBER = 3; + private volatile java.lang.Object mountPoint_; + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mountPoint. + */ + @java.lang.Override + public java.lang.String getMountPoint() { + java.lang.Object ref = mountPoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountPoint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mountPoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMountPointBytes() { + java.lang.Object ref = mountPoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mountPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(server_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, server_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mountPoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(server_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, server_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mountPoint_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.NfsMount)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NfsMount other = (com.google.cloud.aiplatform.v1.NfsMount) obj; + + if (!getServer().equals(other.getServer())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getMountPoint().equals(other.getMountPoint())) return false; + if (!unknownFields.equals(other.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) + SERVER_FIELD_NUMBER; + hash = (53 * hash) + getServer().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + MOUNT_POINT_FIELD_NUMBER; + hash = (53 * hash) + getMountPoint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NfsMount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.NfsMount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a mount configuration for Network File System (NFS) to mount.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NfsMount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NfsMount) + com.google.cloud.aiplatform.v1.NfsMountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_NfsMount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NfsMount.class, + com.google.cloud.aiplatform.v1.NfsMount.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.NfsMount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + server_ = ""; + + path_ = ""; + + mountPoint_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NfsMount getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NfsMount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NfsMount build() { + com.google.cloud.aiplatform.v1.NfsMount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NfsMount buildPartial() { + com.google.cloud.aiplatform.v1.NfsMount result = + new com.google.cloud.aiplatform.v1.NfsMount(this); + result.server_ = server_; + result.path_ = path_; + result.mountPoint_ = mountPoint_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.NfsMount) { + return mergeFrom((com.google.cloud.aiplatform.v1.NfsMount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.NfsMount other) { + if (other == com.google.cloud.aiplatform.v1.NfsMount.getDefaultInstance()) return this; + if (!other.getServer().isEmpty()) { + server_ = other.server_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getMountPoint().isEmpty()) { + mountPoint_ = other.mountPoint_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.NfsMount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.NfsMount) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object server_ = ""; + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The server. + */ + public java.lang.String getServer() { + java.lang.Object ref = server_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + server_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for server. + */ + public com.google.protobuf.ByteString getServerBytes() { + java.lang.Object ref = server_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + server_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The server to set. + * @return This builder for chaining. + */ + public Builder setServer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + server_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServer() { + + server_ = getDefaultInstance().getServer(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for server to set. + * @return This builder for chaining. + */ + public Builder setServerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + server_ = value; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + + path_ = getDefaultInstance().getPath(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value; + onChanged(); + return this; + } + + private java.lang.Object mountPoint_ = ""; + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mountPoint. + */ + public java.lang.String getMountPoint() { + java.lang.Object ref = mountPoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountPoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mountPoint. + */ + public com.google.protobuf.ByteString getMountPointBytes() { + java.lang.Object ref = mountPoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mountPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mountPoint to set. + * @return This builder for chaining. + */ + public Builder setMountPoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mountPoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMountPoint() { + + mountPoint_ = getDefaultInstance().getMountPoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mountPoint to set. + * @return This builder for chaining. + */ + public Builder setMountPointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mountPoint_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NfsMount) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NfsMount) + private static final com.google.cloud.aiplatform.v1.NfsMount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.NfsMount(); + } + + public static com.google.cloud.aiplatform.v1.NfsMount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsMount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsMount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NfsMount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMountOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMountOrBuilder.java new file mode 100644 index 000000000..0fabe88ee --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMountOrBuilder.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/v1/machine_resources.proto + +package com.google.cloud.aiplatform.v1; + +public interface NfsMountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NfsMount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The server. + */ + java.lang.String getServer(); + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for server. + */ + com.google.protobuf.ByteString getServerBytes(); + + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mountPoint. + */ + java.lang.String getMountPoint(); + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mountPoint. + */ + com.google.protobuf.ByteString getMountPointBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java index 5153c5f50..2cf341fa4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java @@ -91,6 +91,8 @@ private PauseModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java index 0b86d621c..7936d22a8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java @@ -104,103 +104,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032&google/cloud/aiplatform/v1/value.pr" + "oto\032\034google/protobuf/struct.proto\032\037googl" + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\"\326\n\n\013PipelineJob\022\021\n\004name\030\001 \001(" + + "tatus.proto\"\321\n\n\013PipelineJob\022\021\n\004name\030\001 \001(" + "\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\0224\n\013create_t" + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + "A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf" + ".TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.goog" + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0223\n\rpipeline_spec\030\007 \001(\0132\027.google.protobu" - + "f.StructB\003\340A\002\022=\n\005state\030\010 \001(\0162).google.cl" - + "oud.aiplatform.v1.PipelineStateB\003\340A\003\022F\n\n" - + "job_detail\030\t \001(\0132-.google.cloud.aiplatfo" - + "rm.v1.PipelineJobDetailB\003\340A\003\022&\n\005error\030\n " - + "\001(\0132\022.google.rpc.StatusB\003\340A\003\022C\n\006labels\030\013" - + " \003(\01323.google.cloud.aiplatform.v1.Pipeli" - + "neJob.LabelsEntry\022M\n\016runtime_config\030\014 \001(" - + "\01325.google.cloud.aiplatform.v1.PipelineJ" - + "ob.RuntimeConfig\022C\n\017encryption_spec\030\020 \001(" - + "\0132*.google.cloud.aiplatform.v1.Encryptio" - + "nSpec\022\027\n\017service_account\030\021 \001(\t\0224\n\007networ" - + "k\030\022 \001(\tB#\372A \n\036compute.googleapis.com/Net" - + "work\032\235\003\n\rRuntimeConfig\022]\n\nparameters\030\001 \003" - + "(\0132E.google.cloud.aiplatform.v1.Pipeline" - + "Job.RuntimeConfig.ParametersEntryB\002\030\001\022!\n" - + "\024gcs_output_directory\030\002 \001(\tB\003\340A\002\022d\n\020para" - + "meter_values\030\003 \003(\0132J.google.cloud.aiplat" - + "form.v1.PipelineJob.RuntimeConfig.Parame" - + "terValuesEntry\032T\n\017ParametersEntry\022\013\n\003key" - + "\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.google.cloud.aip" - + "latform.v1.Value:\0028\001\032N\n\024ParameterValuesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.googl" - + "e.protobuf.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplat" - + "form.googleapis.com/PipelineJob\022Cproject" - + "s/{project}/locations/{location}/pipelin" - + "eJobs/{pipeline_job}\"\352\001\n\021PipelineJobDeta" - + "il\022B\n\020pipeline_context\030\001 \001(\0132#.google.cl" - + "oud.aiplatform.v1.ContextB\003\340A\003\022F\n\024pipeli" - + "ne_run_context\030\002 \001(\0132#.google.cloud.aipl" - + "atform.v1.ContextB\003\340A\003\022I\n\014task_details\030\003" - + " \003(\0132..google.cloud.aiplatform.v1.Pipeli" - + "neTaskDetailB\003\340A\003\"\235\013\n\022PipelineTaskDetail" - + "\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_task_id" - + "\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\0224\n\013c" - + "reate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022T\n\017exe" - + "cutor_detail\030\006 \001(\01326.google.cloud.aiplat" - + "form.v1.PipelineTaskExecutorDetailB\003\340A\003\022" - + "H\n\005state\030\007 \001(\01624.google.cloud.aiplatform" - + ".v1.PipelineTaskDetail.StateB\003\340A\003\022=\n\texe" - + "cution\030\010 \001(\0132%.google.cloud.aiplatform.v" - + "1.ExecutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022.google" - + ".rpc.StatusB\003\340A\003\022d\n\024pipeline_task_status" - + "\030\r \003(\0132A.google.cloud.aiplatform.v1.Pipe" - + "lineTaskDetail.PipelineTaskStatusB\003\340A\003\022O" - + "\n\006inputs\030\n \003(\0132:.google.cloud.aiplatform" - + ".v1.PipelineTaskDetail.InputsEntryB\003\340A\003\022" - + "Q\n\007outputs\030\013 \003(\0132;.google.cloud.aiplatfo" - + "rm.v1.PipelineTaskDetail.OutputsEntryB\003\340" - + "A\003\032\274\001\n\022PipelineTaskStatus\0224\n\013update_time" - + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "H\n\005state\030\002 \001(\01624.google.cloud.aiplatform" - + ".v1.PipelineTaskDetail.StateB\003\340A\003\022&\n\005err" - + "or\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032L\n\014Art" - + "ifactList\022<\n\tartifacts\030\001 \003(\0132$.google.cl" - + "oud.aiplatform.v1.ArtifactB\003\340A\003\032j\n\013Input" - + "sEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.goo" - + "gle.cloud.aiplatform.v1.PipelineTaskDeta" - + "il.ArtifactList:\0028\001\032k\n\014OutputsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.google.cloud.a" - + "iplatform.v1.PipelineTaskDetail.Artifact" - + "List:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED" - + "\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022\r" - + "\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022\021" - + "\n\rNOT_TRIGGERED\020\t\"\354\003\n\032PipelineTaskExecut" - + "orDetail\022g\n\020container_detail\030\001 \001(\0132F.goo" - + "gle.cloud.aiplatform.v1.PipelineTaskExec" - + "utorDetail.ContainerDetailB\003\340A\003H\000\022j\n\021cus" - + "tom_job_detail\030\002 \001(\0132F.google.cloud.aipl" - + "atform.v1.PipelineTaskExecutorDetail.Cus" - + "tomJobDetailB\005\030\001\340A\003H\000\032\234\001\n\017ContainerDetai" - + "l\022=\n\010main_job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform." - + "googleapis.com/CustomJob\022J\n\025pre_caching_" - + "check_job\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.goog" - + "leapis.com/CustomJob\032O\n\017CustomJobDetail\022" - + "8\n\003job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googlea" - + "pis.com/CustomJob:\002\030\001B\t\n\007detailsB\235\002\n\036com" - + ".google.cloud.aiplatform.v1B\010PipelineP\001Z" - + "Dgoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1;aiplatform\252\002\032Google.C" - + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" - + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1\352" - + "AN\n\036compute.googleapis.com/Network\022,proj" - + "ects/{project}/global/networks/{network}" - + "b\006proto3" + + "\022.\n\rpipeline_spec\030\007 \001(\0132\027.google.protobu" + + "f.Struct\022=\n\005state\030\010 \001(\0162).google.cloud.a" + + "iplatform.v1.PipelineStateB\003\340A\003\022F\n\njob_d" + + "etail\030\t \001(\0132-.google.cloud.aiplatform.v1" + + ".PipelineJobDetailB\003\340A\003\022&\n\005error\030\n \001(\0132\022" + + ".google.rpc.StatusB\003\340A\003\022C\n\006labels\030\013 \003(\0132" + + "3.google.cloud.aiplatform.v1.PipelineJob" + + ".LabelsEntry\022M\n\016runtime_config\030\014 \001(\01325.g" + + "oogle.cloud.aiplatform.v1.PipelineJob.Ru" + + "ntimeConfig\022C\n\017encryption_spec\030\020 \001(\0132*.g" + + "oogle.cloud.aiplatform.v1.EncryptionSpec" + + "\022\027\n\017service_account\030\021 \001(\t\0224\n\007network\030\022 \001" + + "(\tB#\372A \n\036compute.googleapis.com/Network\032" + + "\235\003\n\rRuntimeConfig\022]\n\nparameters\030\001 \003(\0132E." + + "google.cloud.aiplatform.v1.PipelineJob.R" + + "untimeConfig.ParametersEntryB\002\030\001\022!\n\024gcs_" + + "output_directory\030\002 \001(\tB\003\340A\002\022d\n\020parameter" + + "_values\030\003 \003(\0132J.google.cloud.aiplatform." + + "v1.PipelineJob.RuntimeConfig.ParameterVa" + + "luesEntry\032T\n\017ParametersEntry\022\013\n\003key\030\001 \001(" + + "\t\0220\n\005value\030\002 \001(\0132!.google.cloud.aiplatfo" + + "rm.v1.Value:\0028\001\032N\n\024ParameterValuesEntry\022" + + "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro" + + "tobuf.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform." + + "googleapis.com/PipelineJob\022Cprojects/{pr" + + "oject}/locations/{location}/pipelineJobs" + + "/{pipeline_job}\"\352\001\n\021PipelineJobDetail\022B\n" + + "\020pipeline_context\030\001 \001(\0132#.google.cloud.a" + + "iplatform.v1.ContextB\003\340A\003\022F\n\024pipeline_ru" + + "n_context\030\002 \001(\0132#.google.cloud.aiplatfor" + + "m.v1.ContextB\003\340A\003\022I\n\014task_details\030\003 \003(\0132" + + "..google.cloud.aiplatform.v1.PipelineTas" + + "kDetailB\003\340A\003\"\235\013\n\022PipelineTaskDetail\022\024\n\007t" + + "ask_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_task_id\030\014 \001(" + + "\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022T\n\017executor" + + "_detail\030\006 \001(\01326.google.cloud.aiplatform." + + "v1.PipelineTaskExecutorDetailB\003\340A\003\022H\n\005st" + + "ate\030\007 \001(\01624.google.cloud.aiplatform.v1.P" + + "ipelineTaskDetail.StateB\003\340A\003\022=\n\texecutio" + + "n\030\010 \001(\0132%.google.cloud.aiplatform.v1.Exe" + + "cutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022.google.rpc." + + "StatusB\003\340A\003\022d\n\024pipeline_task_status\030\r \003(" + + "\0132A.google.cloud.aiplatform.v1.PipelineT" + + "askDetail.PipelineTaskStatusB\003\340A\003\022O\n\006inp" + + "uts\030\n \003(\0132:.google.cloud.aiplatform.v1.P" + + "ipelineTaskDetail.InputsEntryB\003\340A\003\022Q\n\007ou" + + "tputs\030\013 \003(\0132;.google.cloud.aiplatform.v1" + + ".PipelineTaskDetail.OutputsEntryB\003\340A\003\032\274\001" + + "\n\022PipelineTaskStatus\0224\n\013update_time\030\001 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n\005st" + + "ate\030\002 \001(\01624.google.cloud.aiplatform.v1.P" + + "ipelineTaskDetail.StateB\003\340A\003\022&\n\005error\030\003 " + + "\001(\0132\022.google.rpc.StatusB\003\340A\003\032L\n\014Artifact" + + "List\022<\n\tartifacts\030\001 \003(\0132$.google.cloud.a" + + "iplatform.v1.ArtifactB\003\340A\003\032j\n\013InputsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.google.c" + + "loud.aiplatform.v1.PipelineTaskDetail.Ar" + + "tifactList:\0028\001\032k\n\014OutputsEntry\022\013\n\003key\030\001 " + + "\001(\t\022J\n\005value\030\002 \001(\0132;.google.cloud.aiplat" + + "form.v1.PipelineTaskDetail.ArtifactList:" + + "\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007" + + "PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n" + + "\016CANCEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCAN" + + "CELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT" + + "_TRIGGERED\020\t\"\354\003\n\032PipelineTaskExecutorDet" + + "ail\022g\n\020container_detail\030\001 \001(\0132F.google.c" + + "loud.aiplatform.v1.PipelineTaskExecutorD" + + "etail.ContainerDetailB\003\340A\003H\000\022j\n\021custom_j" + + "ob_detail\030\002 \001(\0132F.google.cloud.aiplatfor" + + "m.v1.PipelineTaskExecutorDetail.CustomJo" + + "bDetailB\005\030\001\340A\003H\000\032\234\001\n\017ContainerDetail\022=\n\010" + + "main_job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googl" + + "eapis.com/CustomJob\022J\n\025pre_caching_check" + + "_job\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.googleapi" + + "s.com/CustomJob\032O\n\017CustomJobDetail\0228\n\003jo" + + "b\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.c" + + "om/CustomJob:\002\030\001B\t\n\007detailsB\235\002\n\036com.goog" + + "le.cloud.aiplatform.v1B\010PipelineP\001ZDgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "aiplatform/v1;aiplatform\252\002\032Google.Cloud." + + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" + + "V1\352\002\035Google::Cloud::AIPlatform::V1\352AN\n\036c" + + "ompute.googleapis.com/Network\022,projects/" + + "{project}/global/networks/{network}b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java index 7188b1edf..02d11460c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -272,6 +272,8 @@ private PipelineJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -385,8 +387,11 @@ public interface RuntimeConfigOrBuilder * */ @java.lang.Deprecated + /* nullable */ com.google.cloud.aiplatform.v1.Value getParametersOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.Value defaultValue); /** * * @@ -501,8 +506,12 @@ com.google.cloud.aiplatform.v1.Value getParametersOrDefault( * * map<string, .google.protobuf.Value> parameter_values = 3; */ + + /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue); + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue); /** * * @@ -623,6 +632,8 @@ private RuntimeConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -711,7 +722,7 @@ public int getParametersCount() { @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } @@ -764,7 +775,7 @@ public java.util.Map get public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -790,7 +801,7 @@ public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( @java.lang.Deprecated public com.google.cloud.aiplatform.v1.Value getParametersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -907,7 +918,7 @@ public int getParameterValuesCount() { @java.lang.Override public boolean containsParameterValues(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameterValues().getMap().containsKey(key); } @@ -951,7 +962,7 @@ public java.util.Map getParameterVa public com.google.protobuf.Value getParameterValuesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -973,7 +984,7 @@ public com.google.protobuf.Value getParameterValuesOrDefault( @java.lang.Override public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -1427,7 +1438,7 @@ public int getParametersCount() { @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } @@ -1480,7 +1491,7 @@ public java.util.Map get public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -1506,7 +1517,7 @@ public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( @java.lang.Deprecated public com.google.cloud.aiplatform.v1.Value getParametersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -1540,7 +1551,7 @@ public Builder clearParameters() { @java.lang.Deprecated public Builder removeParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableParameters().getMutableMap().remove(key); return this; @@ -1571,11 +1582,12 @@ public Builder removeParameters(java.lang.String key) { public Builder putParameters( java.lang.String key, com.google.cloud.aiplatform.v1.Value value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableParameters().getMutableMap().put(key, value); return this; } @@ -1784,7 +1796,7 @@ public int getParameterValuesCount() { @java.lang.Override public boolean containsParameterValues(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameterValues().getMap().containsKey(key); } @@ -1828,7 +1840,7 @@ public java.util.Map getParameterVa public com.google.protobuf.Value getParameterValuesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -1850,7 +1862,7 @@ public com.google.protobuf.Value getParameterValuesOrDefault( @java.lang.Override public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -1879,7 +1891,7 @@ public Builder clearParameterValues() { */ public Builder removeParameterValues(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableParameterValues().getMutableMap().remove(key); return this; @@ -1905,11 +1917,12 @@ public Builder removeParameterValues(java.lang.String key) { */ public Builder putParameterValues(java.lang.String key, com.google.protobuf.Value value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableParameterValues().getMutableMap().put(key, value); return this; } @@ -2288,11 +2301,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return Whether the pipelineSpec field is set. */ @@ -2304,11 +2316,10 @@ public boolean hasPipelineSpec() { * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return The pipelineSpec. */ @@ -2320,11 +2331,10 @@ public com.google.protobuf.Struct getPipelineSpec() { * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { @@ -2515,7 +2525,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2558,7 +2568,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2579,7 +2589,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4509,11 +4519,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return Whether the pipelineSpec field is set. */ @@ -4524,11 +4533,10 @@ public boolean hasPipelineSpec() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return The pipelineSpec. */ @@ -4545,11 +4553,10 @@ public com.google.protobuf.Struct getPipelineSpec() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder setPipelineSpec(com.google.protobuf.Struct value) { if (pipelineSpecBuilder_ == null) { @@ -4568,11 +4575,10 @@ public Builder setPipelineSpec(com.google.protobuf.Struct value) { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValue) { if (pipelineSpecBuilder_ == null) { @@ -4588,11 +4594,10 @@ public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValu * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { if (pipelineSpecBuilder_ == null) { @@ -4613,11 +4618,10 @@ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder clearPipelineSpec() { if (pipelineSpecBuilder_ == null) { @@ -4634,11 +4638,10 @@ public Builder clearPipelineSpec() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public com.google.protobuf.Struct.Builder getPipelineSpecBuilder() { @@ -4649,11 +4652,10 @@ public com.google.protobuf.Struct.Builder getPipelineSpecBuilder() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { if (pipelineSpecBuilder_ != null) { @@ -4668,11 +4670,10 @@ public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, @@ -5219,7 +5220,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -5263,7 +5264,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -5284,7 +5285,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -5312,7 +5313,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -5337,11 +5338,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java index 4ff4abb6c..059e516b8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java @@ -127,6 +127,8 @@ private PipelineJobDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java index db63576d0..45f2be6dc 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -233,11 +233,10 @@ public interface PipelineJobOrBuilder * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return Whether the pipelineSpec field is set. */ @@ -246,11 +245,10 @@ public interface PipelineJobOrBuilder * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return The pipelineSpec. */ @@ -259,11 +257,10 @@ public interface PipelineJobOrBuilder * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder(); @@ -433,7 +430,12 @@ public interface PipelineJobOrBuilder * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java index 2ba126661..bd79ee546 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java @@ -249,6 +249,8 @@ private PipelineTaskDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -829,6 +831,8 @@ private PipelineTaskStatus( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2119,6 +2123,8 @@ private ArtifactList( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3605,7 +3611,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -3650,7 +3656,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsO java.lang.String key, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetInputs().getMap(); @@ -3671,7 +3677,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsO public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetInputs().getMap(); @@ -3729,7 +3735,7 @@ public int getOutputsCount() { @java.lang.Override public boolean containsOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetOutputs().getMap().containsKey(key); } @@ -3774,7 +3780,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputs java.lang.String key, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetOutputs().getMap(); @@ -3795,7 +3801,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputs public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetOutputs().getMap(); @@ -6437,7 +6443,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -6482,7 +6488,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsO java.lang.String key, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> @@ -6504,7 +6510,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsO public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> @@ -6532,7 +6538,7 @@ public Builder clearInputs() { */ public Builder removeInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableInputs().getMutableMap().remove(key); return this; @@ -6559,11 +6565,12 @@ public Builder putInputs( java.lang.String key, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableInputs().getMutableMap().put(key, value); return this; } @@ -6630,7 +6637,7 @@ public int getOutputsCount() { @java.lang.Override public boolean containsOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetOutputs().getMap().containsKey(key); } @@ -6675,7 +6682,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputs java.lang.String key, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> @@ -6697,7 +6704,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputs public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> @@ -6725,7 +6732,7 @@ public Builder clearOutputs() { */ public Builder removeOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableOutputs().getMutableMap().remove(key); return this; @@ -6752,11 +6759,12 @@ public Builder putOutputs( java.lang.String key, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableOutputs().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java index 8ac430ee1..52ae1f46f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java @@ -463,8 +463,11 @@ com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus getPipeline * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ + + /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue); /** * @@ -532,8 +535,11 @@ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrThrow( * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ + + /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue); /** * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java index 86ae3d72b..ffa2e68d3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java @@ -127,6 +127,8 @@ private PipelineTaskExecutorDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -298,6 +300,8 @@ private ContainerDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1202,6 +1206,8 @@ private CustomJobDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1914,6 +1920,8 @@ public boolean hasContainerDetail() { * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -1932,6 +1940,8 @@ public boolean hasCustomJobDetail() { * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 * @return The customJobDetail. */ @java.lang.Override @@ -2491,8 +2501,9 @@ public Builder mergeContainerDetail( } else { if (detailsCase_ == 1) { containerDetailBuilder_.mergeFrom(value); + } else { + containerDetailBuilder_.setMessage(value); } - containerDetailBuilder_.setMessage(value); } detailsCase_ = 1; return this; @@ -2619,6 +2630,8 @@ public Builder clearContainerDetail() { * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -2637,6 +2650,8 @@ public boolean hasCustomJobDetail() { * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 * @return The customJobDetail. */ @java.lang.Override @@ -2740,8 +2755,9 @@ public Builder mergeCustomJobDetail( } else { if (detailsCase_ == 2) { customJobDetailBuilder_.mergeFrom(value); + } else { + customJobDetailBuilder_.setMessage(value); } - customJobDetailBuilder_.setMessage(value); } detailsCase_ = 2; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java index 01e199dce..3bbf2c8e9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java @@ -76,6 +76,8 @@ public interface PipelineTaskExecutorDetailOrBuilder * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 * @return Whether the customJobDetail field is set. */ @java.lang.Deprecated @@ -91,6 +93,8 @@ public interface PipelineTaskExecutorDetailOrBuilder * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 * @return The customJobDetail. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Port.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Port.java index f809074c7..532a7c23b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Port.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Port.java @@ -84,6 +84,8 @@ private Port( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredefinedSplit.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredefinedSplit.java index d3b8ea1e1..11701ba72 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredefinedSplit.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredefinedSplit.java @@ -90,6 +90,8 @@ private PredefinedSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java index 7c54836d8..23b1280a4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java @@ -115,6 +115,8 @@ private PredictRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java index 2b1279ce3..36ad705fe 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java @@ -108,6 +108,8 @@ private PredictRequestResponseLoggingConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -175,7 +177,7 @@ public double getSamplingRate() { * *
    * BigQuery table for logging.
-   * If only given project, a new dataset will be created with name
+   * If only given a project, a new dataset will be created with name
    * `logging_<endpoint-display-name>_<endpoint-id>` where
    * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
    * most special characters will become underscores). If no table name is
@@ -195,7 +197,7 @@ public boolean hasBigqueryDestination() {
    *
    * 
    * BigQuery table for logging.
-   * If only given project, a new dataset will be created with name
+   * If only given a project, a new dataset will be created with name
    * `logging_<endpoint-display-name>_<endpoint-id>` where
    * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
    * most special characters will become underscores). If no table name is
@@ -217,7 +219,7 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination
    *
    * 
    * BigQuery table for logging.
-   * If only given project, a new dataset will be created with name
+   * If only given a project, a new dataset will be created with name
    * `logging_<endpoint-display-name>_<endpoint-id>` where
    * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
    * most special characters will become underscores). If no table name is
@@ -249,7 +251,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (enabled_ != false) {
       output.writeBool(1, enabled_);
     }
-    if (samplingRate_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(samplingRate_) != 0) {
       output.writeDouble(2, samplingRate_);
     }
     if (bigqueryDestination_ != null) {
@@ -267,7 +269,7 @@ public int getSerializedSize() {
     if (enabled_ != false) {
       size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
     }
-    if (samplingRate_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(samplingRate_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, samplingRate_);
     }
     if (bigqueryDestination_ != null) {
@@ -723,7 +725,7 @@ public Builder clearSamplingRate() {
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -742,7 +744,7 @@ public boolean hasBigqueryDestination() {
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -767,7 +769,7 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -795,7 +797,7 @@ public Builder setBigqueryDestination(
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -820,7 +822,7 @@ public Builder setBigqueryDestination(
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -852,7 +854,7 @@ public Builder mergeBigqueryDestination(
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -877,7 +879,7 @@ public Builder clearBigqueryDestination() {
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -897,7 +899,7 @@ public Builder clearBigqueryDestination() {
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
@@ -921,7 +923,7 @@ public Builder clearBigqueryDestination() {
      *
      * 
      * BigQuery table for logging.
-     * If only given project, a new dataset will be created with name
+     * If only given a project, a new dataset will be created with name
      * `logging_<endpoint-display-name>_<endpoint-id>` where
      * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
      * most special characters will become underscores). If no table name is
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfigOrBuilder.java
index 1fb9eef7f..d01f2e71a 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfigOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfigOrBuilder.java
@@ -55,7 +55,7 @@ public interface PredictRequestResponseLoggingConfigOrBuilder
    *
    * 
    * BigQuery table for logging.
-   * If only given project, a new dataset will be created with name
+   * If only given a project, a new dataset will be created with name
    * `logging_<endpoint-display-name>_<endpoint-id>` where
    * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
    * most special characters will become underscores). If no table name is
@@ -72,7 +72,7 @@ public interface PredictRequestResponseLoggingConfigOrBuilder
    *
    * 
    * BigQuery table for logging.
-   * If only given project, a new dataset will be created with name
+   * If only given a project, a new dataset will be created with name
    * `logging_<endpoint-display-name>_<endpoint-id>` where
    * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
    * most special characters will become underscores). If no table name is
@@ -89,7 +89,7 @@ public interface PredictRequestResponseLoggingConfigOrBuilder
    *
    * 
    * BigQuery table for logging.
-   * If only given project, a new dataset will be created with name
+   * If only given a project, a new dataset will be created with name
    * `logging_<endpoint-display-name>_<endpoint-id>` where
    * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
    * most special characters will become underscores). If no table name is
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java
index e55695d43..3bd8aa8e8 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java
@@ -116,6 +116,8 @@ private PredictResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java
index 892d04ff9..9d9af9fb3 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java
@@ -106,6 +106,8 @@ private PredictSchemata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java
index 5391a0f5d..366268c83 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java
@@ -116,6 +116,8 @@ private PrivateEndpoints(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java
index 37ed0c606..5b9c7262f 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java
@@ -96,6 +96,8 @@ private PurgeArtifactsMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java
index 9d91eec94..3a0ef3496 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java
@@ -101,6 +101,8 @@ private PurgeArtifactsRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java
index 2643daefe..f51255106 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java
@@ -97,6 +97,8 @@ private PurgeArtifactsResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java
index b729637ef..f9af8ce05 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java
@@ -96,6 +96,8 @@ private PurgeContextsMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java
index d44adc02b..b11872ca7 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java
@@ -101,6 +101,8 @@ private PurgeContextsRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java
index 4fe0fab19..63b9e01f2 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java
@@ -97,6 +97,8 @@ private PurgeContextsResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java
index 62fdb036b..44beb66a2 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java
@@ -96,6 +96,8 @@ private PurgeExecutionsMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java
index a797ada20..bafcaf283 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java
@@ -101,6 +101,8 @@ private PurgeExecutionsRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java
index e321135d0..1cb22758c 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java
@@ -97,6 +97,8 @@ private PurgeExecutionsResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java
index 8c8905324..11584a285 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java
@@ -131,6 +131,8 @@ private PythonPackageSpec(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java
index a32f7aca4..869cb4716 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java
@@ -103,6 +103,8 @@ private QueryArtifactLineageSubgraphRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java
index c6a9addb8..416d8ae4e 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java
@@ -89,6 +89,8 @@ private QueryContextLineageSubgraphRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java
index 0519d77df..09a1051a5 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java
@@ -90,6 +90,8 @@ private QueryExecutionInputsAndOutputsRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java
index 18b280993..0ea387e31 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java
@@ -102,6 +102,8 @@ private RawPredictRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java
index 2468cca7f..4c656b91b 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java
@@ -112,6 +112,8 @@ private ReadFeatureValuesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java
index c1340b617..3f833ccbb 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java
@@ -115,6 +115,8 @@ private ReadFeatureValuesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -238,6 +240,8 @@ private FeatureDescriptor(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -1010,6 +1014,8 @@ private Header(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2387,6 +2393,8 @@ private EntityView(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2596,6 +2604,8 @@ private Data(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -3306,8 +3316,9 @@ public Builder mergeValue(com.google.cloud.aiplatform.v1.FeatureValue value) {
           } else {
             if (dataCase_ == 1) {
               valueBuilder_.mergeFrom(value);
+            } else {
+              valueBuilder_.setMessage(value);
             }
-            valueBuilder_.setMessage(value);
           }
           dataCase_ = 1;
           return this;
@@ -3530,8 +3541,9 @@ public Builder mergeValues(com.google.cloud.aiplatform.v1.FeatureValueList value
           } else {
             if (dataCase_ == 2) {
               valuesBuilder_.mergeFrom(value);
+            } else {
+              valuesBuilder_.setMessage(value);
             }
-            valuesBuilder_.setMessage(value);
           }
           dataCase_ = 2;
           return this;
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java
index 954e44c5e..afba77847 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java
@@ -101,6 +101,8 @@ private ReadTensorboardBlobDataRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java
index 49dd13138..f783e1a63 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java
@@ -94,6 +94,8 @@ private ReadTensorboardBlobDataResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java
index dc3be0d2a..559600114 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java
@@ -103,6 +103,8 @@ private ReadTensorboardTimeSeriesDataRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java
index 5d6991d71..aa50e60e1 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java
@@ -97,6 +97,8 @@ private ReadTensorboardTimeSeriesDataResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java
index 992288340..af97bc2c3 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java
@@ -84,6 +84,8 @@ private ResourcesConsumed(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -141,7 +143,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (replicaHours_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(replicaHours_) != 0) {
       output.writeDouble(1, replicaHours_);
     }
     unknownFields.writeTo(output);
@@ -153,7 +155,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (replicaHours_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(replicaHours_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, replicaHours_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java
index bc42ce61c..3383190cf 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java
@@ -91,6 +91,8 @@ private ResumeModelDeploymentMonitoringJobRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
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 ecf6c622b..93b3fe527 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
@@ -73,14 +73,14 @@ private SampleConfig(
             break;
           case 8:
             {
-              initialBatchSampleSizeCase_ = 1;
               initialBatchSampleSize_ = input.readInt32();
+              initialBatchSampleSizeCase_ = 1;
               break;
             }
           case 24:
             {
-              followingBatchSampleSizeCase_ = 3;
               followingBatchSampleSize_ = input.readInt32();
+              followingBatchSampleSizeCase_ = 3;
               break;
             }
           case 40:
@@ -101,6 +101,8 @@ private SampleConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java
index f7a0d2194..b3f699f43 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java
@@ -86,6 +86,8 @@ private SampledShapleyAttribution(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java
index de42454e5..da766f1d9 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java
@@ -99,6 +99,8 @@ private SamplingStrategy(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -206,6 +208,8 @@ private RandomSampleConfig(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -261,7 +265,7 @@ public final boolean isInitialized() {
 
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-      if (sampleRate_ != 0D) {
+      if (java.lang.Double.doubleToRawLongBits(sampleRate_) != 0) {
         output.writeDouble(1, sampleRate_);
       }
       unknownFields.writeTo(output);
@@ -273,7 +277,7 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (sampleRate_ != 0D) {
+      if (java.lang.Double.doubleToRawLongBits(sampleRate_) != 0) {
         size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, sampleRate_);
       }
       size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java
index 5d5fb38e5..6c42550e5 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java
@@ -84,6 +84,8 @@ private Scalar(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -139,7 +141,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (value_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
       output.writeDouble(1, value_);
     }
     unknownFields.writeTo(output);
@@ -151,7 +153,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (value_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java
index 18a2d6c91..75aa8f59e 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java
@@ -99,6 +99,8 @@ private Scheduling(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java
index bbc6c4432..3f5509926 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java
@@ -109,6 +109,8 @@ private SearchFeaturesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java
index 732bf55f7..b9071126b 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java
@@ -101,6 +101,8 @@ private SearchFeaturesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java
index 0eeb54841..1fd6a01f1 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java
@@ -110,6 +110,8 @@ private SearchMigratableResourcesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java
index 2af6294dd..45d8f3f9b 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java
@@ -104,6 +104,8 @@ private SearchMigratableResourcesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java
index 09cbc59e8..e91c61cb9 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java
@@ -171,6 +171,8 @@ private SearchModelDeploymentMonitoringStatsAnomaliesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -311,6 +313,8 @@ private StatsAnomaliesObjective(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java
index 949461e1d..420440783 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java
@@ -108,6 +108,8 @@ private SearchModelDeploymentMonitoringStatsAnomaliesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java
index 67582db2e..542abca36 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java
@@ -74,8 +74,8 @@ private SmoothGradConfig(
             break;
           case 13:
             {
-              gradientNoiseSigmaCase_ = 1;
               gradientNoiseSigma_ = input.readFloat();
+              gradientNoiseSigmaCase_ = 1;
               break;
             }
           case 18:
@@ -113,6 +113,8 @@ private SmoothGradConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -976,8 +978,9 @@ public Builder mergeFeatureNoiseSigma(com.google.cloud.aiplatform.v1.FeatureNois
       } else {
         if (gradientNoiseSigmaCase_ == 2) {
           featureNoiseSigmaBuilder_.mergeFrom(value);
+        } else {
+          featureNoiseSigmaBuilder_.setMessage(value);
         }
-        featureNoiseSigmaBuilder_.setMessage(value);
       }
       gradientNoiseSigmaCase_ = 2;
       return this;
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java
index e5a6dc596..6168fbf28 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java
@@ -140,6 +140,8 @@ private SpecialistPool(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java
index ad43df4a8..a247f4709 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java
@@ -88,6 +88,8 @@ private StopTrialRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java
index 17e3a91c2..d097e4179 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java
@@ -116,6 +116,8 @@ private StratifiedSplit(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -258,13 +260,13 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (trainingFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) {
       output.writeDouble(1, trainingFraction_);
     }
-    if (validationFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) {
       output.writeDouble(2, validationFraction_);
     }
-    if (testFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) {
       output.writeDouble(3, testFraction_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
@@ -279,13 +281,13 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (trainingFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_);
     }
-    if (validationFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_);
     }
-    if (testFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java
index ab76d4d48..d9e10c33d 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java
@@ -118,6 +118,8 @@ private StreamingReadFeatureValuesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java
index 3d131476d..c74f74796 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java
@@ -92,6 +92,8 @@ private StringArray(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java
index 59f007b67..654b3a385 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java
@@ -143,6 +143,8 @@ private Study(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java
index b01f5e236..2e97db4d6 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java
@@ -95,6 +95,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
       internal_static_google_cloud_aiplatform_v1_StudySpec_MedianAutomatedStoppingSpec_descriptor;
   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_aiplatform_v1_StudySpec_MedianAutomatedStoppingSpec_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
       internal_static_google_cloud_aiplatform_v1_Measurement_descriptor;
   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -152,96 +156,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "\022\014\n\010STOPPING\020\003\022\r\n\tSUCCEEDED\020\004\022\016\n\nINFEASI"
           + "BLE\020\005:l\352Ai\n\037aiplatform.googleapis.com/Tr"
           + "ial\022Fprojects/{project}/locations/{locat"
-          + "ion}/studies/{study}/trials/{trial}\"\240\030\n\t"
+          + "ion}/studies/{study}/trials/{trial}\"\300\032\n\t"
           + "StudySpec\022j\n\031decay_curve_stopping_spec\030\004"
           + " \001(\0132E.google.cloud.aiplatform.v1.StudyS"
           + "pec.DecayCurveAutomatedStoppingSpecH\000\022k\n"
           + "\036median_automated_stopping_spec\030\005 \001(\0132A."
           + "google.cloud.aiplatform.v1.StudySpec.Med"
-          + "ianAutomatedStoppingSpecH\000\022F\n\007metrics\030\001 "
-          + "\003(\01320.google.cloud.aiplatform.v1.StudySp"
-          + "ec.MetricSpecB\003\340A\002\022L\n\nparameters\030\002 \003(\01323"
-          + ".google.cloud.aiplatform.v1.StudySpec.Pa"
-          + "rameterSpecB\003\340A\002\022B\n\talgorithm\030\003 \001(\0162/.go"
-          + "ogle.cloud.aiplatform.v1.StudySpec.Algor"
-          + "ithm\022Q\n\021observation_noise\030\006 \001(\01626.google"
-          + ".cloud.aiplatform.v1.StudySpec.Observati"
-          + "onNoise\022b\n\032measurement_selection_type\030\007 "
-          + "\001(\0162>.google.cloud.aiplatform.v1.StudySp"
-          + "ec.MeasurementSelectionType\032\265\001\n\nMetricSp"
-          + "ec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022L\n\004goal\030\002 \001(\016"
-          + "29.google.cloud.aiplatform.v1.StudySpec."
-          + "MetricSpec.GoalTypeB\003\340A\002\"A\n\010GoalType\022\031\n\025"
-          + "GOAL_TYPE_UNSPECIFIED\020\000\022\014\n\010MAXIMIZE\020\001\022\014\n"
-          + "\010MINIMIZE\020\002\032\315\016\n\rParameterSpec\022`\n\021double_"
-          + "value_spec\030\002 \001(\0132C.google.cloud.aiplatfo"
-          + "rm.v1.StudySpec.ParameterSpec.DoubleValu"
-          + "eSpecH\000\022b\n\022integer_value_spec\030\003 \001(\0132D.go"
-          + "ogle.cloud.aiplatform.v1.StudySpec.Param"
-          + "eterSpec.IntegerValueSpecH\000\022j\n\026categoric"
-          + "al_value_spec\030\004 \001(\0132H.google.cloud.aipla"
-          + "tform.v1.StudySpec.ParameterSpec.Categor"
-          + "icalValueSpecH\000\022d\n\023discrete_value_spec\030\005"
-          + " \001(\0132E.google.cloud.aiplatform.v1.StudyS"
-          + "pec.ParameterSpec.DiscreteValueSpecH\000\022\031\n"
-          + "\014parameter_id\030\001 \001(\tB\003\340A\002\022Q\n\nscale_type\030\006"
-          + " \001(\0162=.google.cloud.aiplatform.v1.StudyS"
-          + "pec.ParameterSpec.ScaleType\022q\n\033condition"
-          + "al_parameter_specs\030\n \003(\0132L.google.cloud."
-          + "aiplatform.v1.StudySpec.ParameterSpec.Co"
-          + "nditionalParameterSpec\032o\n\017DoubleValueSpe"
-          + "c\022\026\n\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\tmax_value\030\002"
-          + " \001(\001B\003\340A\002\022\032\n\rdefault_value\030\004 \001(\001H\000\210\001\001B\020\n"
-          + "\016_default_value\032p\n\020IntegerValueSpec\022\026\n\tm"
-          + "in_value\030\001 \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 \001(\003B\003"
-          + "\340A\002\022\032\n\rdefault_value\030\004 \001(\003H\000\210\001\001B\020\n\016_defa"
-          + "ult_value\032Y\n\024CategoricalValueSpec\022\023\n\006val"
-          + "ues\030\001 \003(\tB\003\340A\002\022\032\n\rdefault_value\030\003 \001(\tH\000\210"
-          + "\001\001B\020\n\016_default_value\032V\n\021DiscreteValueSpe"
-          + "c\022\023\n\006values\030\001 \003(\001B\003\340A\002\022\032\n\rdefault_value\030"
-          + "\003 \001(\001H\000\210\001\001B\020\n\016_default_value\032\244\005\n\030Conditi"
-          + "onalParameterSpec\022\205\001\n\026parent_discrete_va"
-          + "lues\030\002 \001(\0132c.google.cloud.aiplatform.v1."
-          + "StudySpec.ParameterSpec.ConditionalParam"
-          + "eterSpec.DiscreteValueConditionH\000\022{\n\021par"
-          + "ent_int_values\030\003 \001(\0132^.google.cloud.aipl"
-          + "atform.v1.StudySpec.ParameterSpec.Condit"
-          + "ionalParameterSpec.IntValueConditionH\000\022\213"
-          + "\001\n\031parent_categorical_values\030\004 \001(\0132f.goo"
-          + "gle.cloud.aiplatform.v1.StudySpec.Parame"
-          + "terSpec.ConditionalParameterSpec.Categor"
-          + "icalValueConditionH\000\022P\n\016parameter_spec\030\001"
-          + " \001(\01323.google.cloud.aiplatform.v1.StudyS"
-          + "pec.ParameterSpecB\003\340A\002\032-\n\026DiscreteValueC"
-          + "ondition\022\023\n\006values\030\001 \003(\001B\003\340A\002\032(\n\021IntValu"
-          + "eCondition\022\023\n\006values\030\001 \003(\003B\003\340A\002\0320\n\031Categ"
-          + "oricalValueCondition\022\023\n\006values\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_LIN"
-          + "EAR_SCALE\020\001\022\022\n\016UNIT_LOG_SCALE\020\002\022\032\n\026UNIT_"
-          + "REVERSE_LOG_SCALE\020\003B\026\n\024parameter_value_s"
-          + "pec\032?\n\037DecayCurveAutomatedStoppingSpec\022\034"
-          + "\n\024use_elapsed_duration\030\001 \001(\010\032;\n\033MedianAu"
-          + "tomatedStoppingSpec\022\034\n\024use_elapsed_durat"
-          + "ion\030\001 \001(\010\"J\n\tAlgorithm\022\031\n\025ALGORITHM_UNSP"
-          + "ECIFIED\020\000\022\017\n\013GRID_SEARCH\020\002\022\021\n\rRANDOM_SEA"
-          + "RCH\020\003\"H\n\020ObservationNoise\022!\n\035OBSERVATION"
-          + "_NOISE_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\010\n\004HIGH\020\002\""
-          + "r\n\030MeasurementSelectionType\022*\n&MEASUREME"
-          + "NT_SELECTION_TYPE_UNSPECIFIED\020\000\022\024\n\020LAST_"
-          + "MEASUREMENT\020\001\022\024\n\020BEST_MEASUREMENT\020\002B\031\n\027a"
-          + "utomated_stopping_spec\"\334\001\n\013Measurement\0228"
-          + "\n\020elapsed_duration\030\001 \001(\0132\031.google.protob"
-          + "uf.DurationB\003\340A\003\022\027\n\nstep_count\030\002 \001(\003B\003\340A"
-          + "\003\022D\n\007metrics\030\003 \003(\0132..google.cloud.aiplat"
-          + "form.v1.Measurement.MetricB\003\340A\003\0324\n\006Metri"
-          + "c\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\003\022\022\n\005value\030\002 \001(\001"
-          + "B\003\340A\003B\316\001\n\036com.google.cloud.aiplatform.v1"
-          + "B\nStudyProtoP\001ZDgoogle.golang.org/genpro"
-          + "to/googleapis/cloud/aiplatform/v1;aiplat"
-          + "form\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goog"
-          + "le\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::"
-          + "AIPlatform::V1b\006proto3"
+          + "ianAutomatedStoppingSpecH\000\022k\n\036convex_aut"
+          + "omated_stopping_spec\030\t \001(\0132A.google.clou"
+          + "d.aiplatform.v1.StudySpec.ConvexAutomate"
+          + "dStoppingSpecH\000\022F\n\007metrics\030\001 \003(\01320.googl"
+          + "e.cloud.aiplatform.v1.StudySpec.MetricSp"
+          + "ecB\003\340A\002\022L\n\nparameters\030\002 \003(\01323.google.clo"
+          + "ud.aiplatform.v1.StudySpec.ParameterSpec"
+          + "B\003\340A\002\022B\n\talgorithm\030\003 \001(\0162/.google.cloud."
+          + "aiplatform.v1.StudySpec.Algorithm\022Q\n\021obs"
+          + "ervation_noise\030\006 \001(\01626.google.cloud.aipl"
+          + "atform.v1.StudySpec.ObservationNoise\022b\n\032"
+          + "measurement_selection_type\030\007 \001(\0162>.googl"
+          + "e.cloud.aiplatform.v1.StudySpec.Measurem"
+          + "entSelectionType\032\265\001\n\nMetricSpec\022\026\n\tmetri"
+          + "c_id\030\001 \001(\tB\003\340A\002\022L\n\004goal\030\002 \001(\01629.google.c"
+          + "loud.aiplatform.v1.StudySpec.MetricSpec."
+          + "GoalTypeB\003\340A\002\"A\n\010GoalType\022\031\n\025GOAL_TYPE_U"
+          + "NSPECIFIED\020\000\022\014\n\010MAXIMIZE\020\001\022\014\n\010MINIMIZE\020\002"
+          + "\032\315\016\n\rParameterSpec\022`\n\021double_value_spec\030"
+          + "\002 \001(\0132C.google.cloud.aiplatform.v1.Study"
+          + "Spec.ParameterSpec.DoubleValueSpecH\000\022b\n\022"
+          + "integer_value_spec\030\003 \001(\0132D.google.cloud."
+          + "aiplatform.v1.StudySpec.ParameterSpec.In"
+          + "tegerValueSpecH\000\022j\n\026categorical_value_sp"
+          + "ec\030\004 \001(\0132H.google.cloud.aiplatform.v1.St"
+          + "udySpec.ParameterSpec.CategoricalValueSp"
+          + "ecH\000\022d\n\023discrete_value_spec\030\005 \001(\0132E.goog"
+          + "le.cloud.aiplatform.v1.StudySpec.Paramet"
+          + "erSpec.DiscreteValueSpecH\000\022\031\n\014parameter_"
+          + "id\030\001 \001(\tB\003\340A\002\022Q\n\nscale_type\030\006 \001(\0162=.goog"
+          + "le.cloud.aiplatform.v1.StudySpec.Paramet"
+          + "erSpec.ScaleType\022q\n\033conditional_paramete"
+          + "r_specs\030\n \003(\0132L.google.cloud.aiplatform."
+          + "v1.StudySpec.ParameterSpec.ConditionalPa"
+          + "rameterSpec\032o\n\017DoubleValueSpec\022\026\n\tmin_va"
+          + "lue\030\001 \001(\001B\003\340A\002\022\026\n\tmax_value\030\002 \001(\001B\003\340A\002\022\032"
+          + "\n\rdefault_value\030\004 \001(\001H\000\210\001\001B\020\n\016_default_v"
+          + "alue\032p\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\022\032\n\rdefa"
+          + "ult_value\030\004 \001(\003H\000\210\001\001B\020\n\016_default_value\032Y"
+          + "\n\024CategoricalValueSpec\022\023\n\006values\030\001 \003(\tB\003"
+          + "\340A\002\022\032\n\rdefault_value\030\003 \001(\tH\000\210\001\001B\020\n\016_defa"
+          + "ult_value\032V\n\021DiscreteValueSpec\022\023\n\006values"
+          + "\030\001 \003(\001B\003\340A\002\022\032\n\rdefault_value\030\003 \001(\001H\000\210\001\001B"
+          + "\020\n\016_default_value\032\244\005\n\030ConditionalParamet"
+          + "erSpec\022\205\001\n\026parent_discrete_values\030\002 \001(\0132"
+          + "c.google.cloud.aiplatform.v1.StudySpec.P"
+          + "arameterSpec.ConditionalParameterSpec.Di"
+          + "screteValueConditionH\000\022{\n\021parent_int_val"
+          + "ues\030\003 \001(\0132^.google.cloud.aiplatform.v1.S"
+          + "tudySpec.ParameterSpec.ConditionalParame"
+          + "terSpec.IntValueConditionH\000\022\213\001\n\031parent_c"
+          + "ategorical_values\030\004 \001(\0132f.google.cloud.a"
+          + "iplatform.v1.StudySpec.ParameterSpec.Con"
+          + "ditionalParameterSpec.CategoricalValueCo"
+          + "nditionH\000\022P\n\016parameter_spec\030\001 \001(\01323.goog"
+          + "le.cloud.aiplatform.v1.StudySpec.Paramet"
+          + "erSpecB\003\340A\002\032-\n\026DiscreteValueCondition\022\023\n"
+          + "\006values\030\001 \003(\001B\003\340A\002\032(\n\021IntValueCondition\022"
+          + "\023\n\006values\030\001 \003(\003B\003\340A\002\0320\n\031CategoricalValue"
+          + "Condition\022\023\n\006values\030\001 \003(\tB\003\340A\002B\030\n\026parent"
+          + "_value_condition\"n\n\tScaleType\022\032\n\026SCALE_T"
+          + "YPE_UNSPECIFIED\020\000\022\025\n\021UNIT_LINEAR_SCALE\020\001"
+          + "\022\022\n\016UNIT_LOG_SCALE\020\002\022\032\n\026UNIT_REVERSE_LOG"
+          + "_SCALE\020\003B\026\n\024parameter_value_spec\032?\n\037Deca"
+          + "yCurveAutomatedStoppingSpec\022\034\n\024use_elaps"
+          + "ed_duration\030\001 \001(\010\032;\n\033MedianAutomatedStop"
+          + "pingSpec\022\034\n\024use_elapsed_duration\030\001 \001(\010\032\260"
+          + "\001\n\033ConvexAutomatedStoppingSpec\022\026\n\016max_st"
+          + "ep_count\030\001 \001(\003\022\026\n\016min_step_count\030\002 \001(\003\022\035"
+          + "\n\025min_measurement_count\030\003 \001(\003\022$\n\034learnin"
+          + "g_rate_parameter_name\030\004 \001(\t\022\034\n\024use_elaps"
+          + "ed_duration\030\005 \001(\010\"J\n\tAlgorithm\022\031\n\025ALGORI"
+          + "THM_UNSPECIFIED\020\000\022\017\n\013GRID_SEARCH\020\002\022\021\n\rRA"
+          + "NDOM_SEARCH\020\003\"H\n\020ObservationNoise\022!\n\035OBS"
+          + "ERVATION_NOISE_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\010\n"
+          + "\004HIGH\020\002\"r\n\030MeasurementSelectionType\022*\n&M"
+          + "EASUREMENT_SELECTION_TYPE_UNSPECIFIED\020\000\022"
+          + "\024\n\020LAST_MEASUREMENT\020\001\022\024\n\020BEST_MEASUREMEN"
+          + "T\020\002B\031\n\027automated_stopping_spec\"\334\001\n\013Measu"
+          + "rement\0228\n\020elapsed_duration\030\001 \001(\0132\031.googl"
+          + "e.protobuf.DurationB\003\340A\003\022\027\n\nstep_count\030\002"
+          + " \001(\003B\003\340A\003\022D\n\007metrics\030\003 \003(\0132..google.clou"
+          + "d.aiplatform.v1.Measurement.MetricB\003\340A\003\032"
+          + "4\n\006Metric\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\003\022\022\n\005val"
+          + "ue\030\002 \001(\001B\003\340A\003B\316\001\n\036com.google.cloud.aipla"
+          + "tform.v1B\nStudyProtoP\001ZDgoogle.golang.or"
+          + "g/genproto/googleapis/cloud/aiplatform/v"
+          + "1;aiplatform\252\002\032Google.Cloud.AIPlatform.V"
+          + "1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google:"
+          + ":Cloud::AIPlatform::V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -304,6 +315,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             new java.lang.String[] {
               "DecayCurveStoppingSpec",
               "MedianAutomatedStoppingSpec",
+              "ConvexAutomatedStoppingSpec",
               "Metrics",
               "Parameters",
               "Algorithm",
@@ -434,6 +446,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             new java.lang.String[] {
               "UseElapsedDuration",
             });
+    internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_descriptor =
+        internal_static_google_cloud_aiplatform_v1_StudySpec_descriptor.getNestedTypes().get(4);
+    internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_descriptor,
+            new java.lang.String[] {
+              "MaxStepCount",
+              "MinStepCount",
+              "MinMeasurementCount",
+              "LearningRateParameterName",
+              "UseElapsedDuration",
+            });
     internal_static_google_cloud_aiplatform_v1_Measurement_descriptor =
         getDescriptor().getMessageTypes().get(3);
     internal_static_google_cloud_aiplatform_v1_Measurement_fieldAccessorTable =
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java
index 98e93a967..e25722a43 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java
@@ -170,6 +170,29 @@ private StudySpec(
               measurementSelectionType_ = rawValue;
               break;
             }
+          case 74:
+            {
+              com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder
+                  subBuilder = null;
+              if (automatedStoppingSpecCase_ == 9) {
+                subBuilder =
+                    ((com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec)
+                            automatedStoppingSpec_)
+                        .toBuilder();
+              }
+              automatedStoppingSpec_ =
+                  input.readMessage(
+                      com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec)
+                        automatedStoppingSpec_);
+                automatedStoppingSpec_ = subBuilder.buildPartial();
+              }
+              automatedStoppingSpecCase_ = 9;
+              break;
+            }
           default:
             {
               if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -181,6 +204,8 @@ private StudySpec(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -851,6 +876,8 @@ private MetricSpec(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2240,6 +2267,8 @@ private ParameterSpec(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2598,6 +2627,8 @@ private DoubleValueSpec(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -2715,10 +2746,10 @@ public final boolean isInitialized() {
 
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-        if (minValue_ != 0D) {
+        if (java.lang.Double.doubleToRawLongBits(minValue_) != 0) {
           output.writeDouble(1, minValue_);
         }
-        if (maxValue_ != 0D) {
+        if (java.lang.Double.doubleToRawLongBits(maxValue_) != 0) {
           output.writeDouble(2, maxValue_);
         }
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -2733,10 +2764,10 @@ public int getSerializedSize() {
         if (size != -1) return size;
 
         size = 0;
-        if (minValue_ != 0D) {
+        if (java.lang.Double.doubleToRawLongBits(minValue_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, minValue_);
         }
-        if (maxValue_ != 0D) {
+        if (java.lang.Double.doubleToRawLongBits(maxValue_) != 0) {
           size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, maxValue_);
         }
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3484,6 +3515,8 @@ private IntegerValueSpec(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -4403,6 +4436,8 @@ private CategoricalValueSpec(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -5513,6 +5548,8 @@ private DiscreteValueSpec(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -6688,6 +6725,8 @@ private ConditionalParameterSpec(
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(e)
               .setUnfinishedMessage(this);
@@ -6853,6 +6892,8 @@ private DiscreteValueCondition(
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
             throw e.setUnfinishedMessage(this);
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
             throw new com.google.protobuf.InvalidProtocolBufferException(e)
                 .setUnfinishedMessage(this);
@@ -7685,6 +7726,8 @@ private IntValueCondition(
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
             throw e.setUnfinishedMessage(this);
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
             throw new com.google.protobuf.InvalidProtocolBufferException(e)
                 .setUnfinishedMessage(this);
@@ -8516,6 +8559,8 @@ private CategoricalValueCondition(
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
             throw e.setUnfinishedMessage(this);
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
             throw new com.google.protobuf.InvalidProtocolBufferException(e)
                 .setUnfinishedMessage(this);
@@ -10230,8 +10275,9 @@ public Builder mergeParentDiscreteValues(
           } else {
             if (parentValueConditionCase_ == 2) {
               parentDiscreteValuesBuilder_.mergeFrom(value);
+            } else {
+              parentDiscreteValuesBuilder_.setMessage(value);
             }
-            parentDiscreteValuesBuilder_.setMessage(value);
           }
           parentValueConditionCase_ = 2;
           return this;
@@ -10505,8 +10551,9 @@ public Builder mergeParentIntValues(
           } else {
             if (parentValueConditionCase_ == 3) {
               parentIntValuesBuilder_.mergeFrom(value);
+            } else {
+              parentIntValuesBuilder_.setMessage(value);
             }
-            parentIntValuesBuilder_.setMessage(value);
           }
           parentValueConditionCase_ = 3;
           return this;
@@ -10780,8 +10827,9 @@ public Builder mergeParentCategoricalValues(
           } else {
             if (parentValueConditionCase_ == 4) {
               parentCategoricalValuesBuilder_.mergeFrom(value);
+            } else {
+              parentCategoricalValuesBuilder_.setMessage(value);
             }
-            parentCategoricalValuesBuilder_.setMessage(value);
           }
           parentValueConditionCase_ = 4;
           return this;
@@ -12366,8 +12414,9 @@ public Builder mergeDoubleValueSpec(
         } else {
           if (parameterValueSpecCase_ == 2) {
             doubleValueSpecBuilder_.mergeFrom(value);
+          } else {
+            doubleValueSpecBuilder_.setMessage(value);
           }
-          doubleValueSpecBuilder_.setMessage(value);
         }
         parameterValueSpecCase_ = 2;
         return this;
@@ -12610,8 +12659,9 @@ public Builder mergeIntegerValueSpec(
         } else {
           if (parameterValueSpecCase_ == 3) {
             integerValueSpecBuilder_.mergeFrom(value);
+          } else {
+            integerValueSpecBuilder_.setMessage(value);
           }
-          integerValueSpecBuilder_.setMessage(value);
         }
         parameterValueSpecCase_ = 3;
         return this;
@@ -12856,8 +12906,9 @@ public Builder mergeCategoricalValueSpec(
         } else {
           if (parameterValueSpecCase_ == 4) {
             categoricalValueSpecBuilder_.mergeFrom(value);
+          } else {
+            categoricalValueSpecBuilder_.setMessage(value);
           }
-          categoricalValueSpecBuilder_.setMessage(value);
         }
         parameterValueSpecCase_ = 4;
         return this;
@@ -13102,8 +13153,9 @@ public Builder mergeDiscreteValueSpec(
         } else {
           if (parameterValueSpecCase_ == 5) {
             discreteValueSpecBuilder_.mergeFrom(value);
+          } else {
+            discreteValueSpecBuilder_.setMessage(value);
           }
-          discreteValueSpecBuilder_.setMessage(value);
         }
         parameterValueSpecCase_ = 5;
         return this;
@@ -14055,6 +14107,8 @@ private DecayCurveAutomatedStoppingSpec(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -14650,6 +14704,8 @@ private MedianAutomatedStoppingSpec(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -15145,191 +15201,1474 @@ public com.google.protobuf.Parser getParserForType(
     }
   }
 
-  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),
-    AUTOMATEDSTOPPINGSPEC_NOT_SET(0);
-    private final int value;
+  public interface ConvexAutomatedStoppingSpecOrBuilder
+      extends
+      // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec)
+      com.google.protobuf.MessageOrBuilder {
 
-    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.
+     *
+     *
+     * 
+     * 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. If not defined, it will learn it from the completed trials. When
+     * use_steps is false, this field is set to the maximum elapsed seconds.
+     * 
+ * + * int64 max_step_count = 1; + * + * @return The maxStepCount. */ - @java.lang.Deprecated - public static AutomatedStoppingSpecCase valueOf(int value) { - return forNumber(value); - } + long getMaxStepCount(); - public static AutomatedStoppingSpecCase forNumber(int value) { - switch (value) { - case 4: - return DECAY_CURVE_STOPPING_SPEC; - case 5: - return MEDIAN_AUTOMATED_STOPPING_SPEC; - case 0: - return AUTOMATEDSTOPPINGSPEC_NOT_SET; - default: - return null; - } - } + /** + * + * + *
+     * Minimum number of steps for a trial to complete. Trials which do not have
+     * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+     * max_step_count.
+     * When use_elapsed_duration is true, this field is set to the minimum
+     * elapsed seconds.
+     * 
+ * + * int64 min_step_count = 2; + * + * @return The minStepCount. + */ + long getMinStepCount(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
+     * The minimal number of measurements in a Trial.  Early-stopping checks
+     * will not trigger if less than min_measurement_count+1 completed trials or
+     * pending trials with less than min_measurement_count measurements. If not
+     * defined, the default value is 5.
+     * 
+ * + * int64 min_measurement_count = 3; + * + * @return The minMeasurementCount. + */ + long getMinMeasurementCount(); - public AutomatedStoppingSpecCase getAutomatedStoppingSpecCase() { - return AutomatedStoppingSpecCase.forNumber(automatedStoppingSpecCase_); - } + /** + * + * + *
+     * 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(); - public static final int DECAY_CURVE_STOPPING_SPEC_FIELD_NUMBER = 4; - /** - * - * - *
-   * The automated early stopping spec using decay curve rule.
-   * 
- * - * - * .google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; - * - * - * @return Whether the decayCurveStoppingSpec field is set. - */ - @java.lang.Override - public boolean hasDecayCurveStoppingSpec() { - return automatedStoppingSpecCase_ == 4; + /** + * + * + *
+     * This bool determines whether or not the rule is applied based on
+     * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+     * decision is made according to the predicted objective values according to
+     * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @return The useElapsedDuration. + */ + boolean getUseElapsedDuration(); } /** * * *
-   * The automated early stopping spec using decay curve rule.
+   * Configuration for ConvexAutomatedStoppingSpec.
+   * When there are enough completed trials (configured by
+   * min_measurement_count), for pending trials with enough measurements and
+   * steps, the policy first computes an overestimate of the objective value at
+   * max_num_steps according to the slope of the incomplete objective value
+   * curve. No prediction can be made if the curve is completely flat. If the
+   * overestimation is worse than the best objective value of the completed
+   * trials, this pending trial will be early-stopped, but a last measurement
+   * will be added to the pending trial with max_num_steps and predicted
+   * objective value from the autoregression model.
    * 
* - * - * .google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; - * - * - * @return The decayCurveStoppingSpec. + * Protobuf type {@code google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - getDecayCurveStoppingSpec() { - if (automatedStoppingSpecCase_ == 4) { - return (com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec) - automatedStoppingSpec_; + public static final class ConvexAutomatedStoppingSpec + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + ConvexAutomatedStoppingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConvexAutomatedStoppingSpec.newBuilder() to construct. + private ConvexAutomatedStoppingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - .getDefaultInstance(); - } - /** - * - * - *
-   * The automated early stopping spec using decay curve rule.
-   * 
- * - * - * .google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder - getDecayCurveStoppingSpecOrBuilder() { - if (automatedStoppingSpecCase_ == 4) { - return (com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec) - automatedStoppingSpec_; + + private ConvexAutomatedStoppingSpec() { + learningRateParameterName_ = ""; } - return com.google.cloud.aiplatform.v1.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.v1.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.v1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; - * - * - * @return The medianAutomatedStoppingSpec. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - getMedianAutomatedStoppingSpec() { - if (automatedStoppingSpecCase_ == 5) { - return (com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec) - automatedStoppingSpec_; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConvexAutomatedStoppingSpec(); } - return com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - .getDefaultInstance(); - } - /** - * - * - *
-   * The automated early stopping spec using median rule.
-   * 
- * - * - * .google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpecOrBuilder - getMedianAutomatedStoppingSpecOrBuilder() { - if (automatedStoppingSpecCase_ == 5) { - return (com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec) - automatedStoppingSpec_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - return com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - .getDefaultInstance(); - } - public static final int METRICS_FIELD_NUMBER = 1; - private java.util.List metrics_; - /** - * - * - *
-   * Required. Metric specs for the Study.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + private ConvexAutomatedStoppingSpec( + 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: + { + maxStepCount_ = input.readInt64(); + break; + } + case 16: + { + minStepCount_ = input.readInt64(); + break; + } + case 24: + { + minMeasurementCount_ = input.readInt64(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + learningRateParameterName_ = s; + break; + } + case 40: + { + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.StudyProto + .internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.StudyProto + .internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder.class); + } + + public static final int MAX_STEP_COUNT_FIELD_NUMBER = 1; + private long maxStepCount_; + /** + * + * + *
+     * 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. If not defined, it will learn it from the completed trials. When
+     * use_steps is false, this field is set to the maximum elapsed seconds.
+     * 
+ * + * int64 max_step_count = 1; + * + * @return The maxStepCount. + */ + @java.lang.Override + public long getMaxStepCount() { + return maxStepCount_; + } + + public static final int MIN_STEP_COUNT_FIELD_NUMBER = 2; + private long minStepCount_; + /** + * + * + *
+     * Minimum number of steps for a trial to complete. Trials which do not have
+     * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+     * max_step_count.
+     * When use_elapsed_duration is true, this field is set to the minimum
+     * elapsed seconds.
+     * 
+ * + * int64 min_step_count = 2; + * + * @return The minStepCount. + */ + @java.lang.Override + public long getMinStepCount() { + return minStepCount_; + } + + public static final int MIN_MEASUREMENT_COUNT_FIELD_NUMBER = 3; + private long minMeasurementCount_; + /** + * + * + *
+     * The minimal number of measurements in a Trial.  Early-stopping checks
+     * will not trigger if less than min_measurement_count+1 completed trials or
+     * pending trials with less than min_measurement_count measurements. If not
+     * defined, the default value is 5.
+     * 
+ * + * int64 min_measurement_count = 3; + * + * @return The minMeasurementCount. + */ + @java.lang.Override + public long getMinMeasurementCount() { + return minMeasurementCount_; + } + + 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_ELAPSED_DURATION_FIELD_NUMBER = 5; + private boolean useElapsedDuration_; + /** + * + * + *
+     * This bool determines whether or not the rule is applied based on
+     * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+     * decision is made according to the predicted objective values according to
+     * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @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 (maxStepCount_ != 0L) { + output.writeInt64(1, maxStepCount_); + } + if (minStepCount_ != 0L) { + output.writeInt64(2, minStepCount_); + } + if (minMeasurementCount_ != 0L) { + output.writeInt64(3, minMeasurementCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(learningRateParameterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, learningRateParameterName_); + } + if (useElapsedDuration_ != false) { + output.writeBool(5, useElapsedDuration_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxStepCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxStepCount_); + } + if (minStepCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minStepCount_); + } + if (minMeasurementCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, minMeasurementCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(learningRateParameterName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, learningRateParameterName_); + } + if (useElapsedDuration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, 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.v1.StudySpec.ConvexAutomatedStoppingSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec other = + (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) obj; + + if (getMaxStepCount() != other.getMaxStepCount()) return false; + if (getMinStepCount() != other.getMinStepCount()) return false; + if (getMinMeasurementCount() != other.getMinMeasurementCount()) return false; + if (!getLearningRateParameterName().equals(other.getLearningRateParameterName())) + return false; + 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) + MAX_STEP_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxStepCount()); + hash = (37 * hash) + MIN_STEP_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinStepCount()); + hash = (37 * hash) + MIN_MEASUREMENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinMeasurementCount()); + hash = (37 * hash) + LEARNING_RATE_PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLearningRateParameterName().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.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ConvexAutomatedStoppingSpec.
+     * When there are enough completed trials (configured by
+     * min_measurement_count), for pending trials with enough measurements and
+     * steps, the policy first computes an overestimate of the objective value at
+     * max_num_steps according to the slope of the incomplete objective value
+     * curve. No prediction can be made if the curve is completely flat. If the
+     * overestimation is worse than the best objective value of the completed
+     * trials, this pending trial will be early-stopped, but a last measurement
+     * will be added to the pending trial with max_num_steps and predicted
+     * objective value from the autoregression model.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.StudyProto + .internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.StudyProto + .internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + maxStepCount_ = 0L; + + minStepCount_ = 0L; + + minMeasurementCount_ = 0L; + + learningRateParameterName_ = ""; + + useElapsedDuration_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.StudyProto + .internal_static_google_cloud_aiplatform_v1_StudySpec_ConvexAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec build() { + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec buildPartial() { + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec result = + new com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec(this); + result.maxStepCount_ = maxStepCount_; + result.minStepCount_ = minStepCount_; + result.minMeasurementCount_ = minMeasurementCount_; + result.learningRateParameterName_ = learningRateParameterName_; + 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.v1.StudySpec.ConvexAutomatedStoppingSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec other) { + if (other + == com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance()) return this; + if (other.getMaxStepCount() != 0L) { + setMaxStepCount(other.getMaxStepCount()); + } + if (other.getMinStepCount() != 0L) { + setMinStepCount(other.getMinStepCount()); + } + if (other.getMinMeasurementCount() != 0L) { + setMinMeasurementCount(other.getMinMeasurementCount()); + } + if (!other.getLearningRateParameterName().isEmpty()) { + learningRateParameterName_ = other.learningRateParameterName_; + onChanged(); + } + 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.v1.StudySpec.ConvexAutomatedStoppingSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxStepCount_; + /** + * + * + *
+       * 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. If not defined, it will learn it from the completed trials. When
+       * use_steps is false, this field is set to the maximum elapsed seconds.
+       * 
+ * + * int64 max_step_count = 1; + * + * @return The maxStepCount. + */ + @java.lang.Override + public long getMaxStepCount() { + return maxStepCount_; + } + /** + * + * + *
+       * 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. If not defined, it will learn it from the completed trials. When
+       * use_steps is false, this field is set to the maximum elapsed seconds.
+       * 
+ * + * int64 max_step_count = 1; + * + * @param value The maxStepCount to set. + * @return This builder for chaining. + */ + public Builder setMaxStepCount(long value) { + + maxStepCount_ = 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. If not defined, it will learn it from the completed trials. When
+       * use_steps is false, this field is set to the maximum elapsed seconds.
+       * 
+ * + * int64 max_step_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxStepCount() { + + maxStepCount_ = 0L; + onChanged(); + return this; + } + + private long minStepCount_; + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+       * max_step_count.
+       * When use_elapsed_duration is true, this field is set to the minimum
+       * elapsed seconds.
+       * 
+ * + * int64 min_step_count = 2; + * + * @return The minStepCount. + */ + @java.lang.Override + public long getMinStepCount() { + return minStepCount_; + } + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+       * max_step_count.
+       * When use_elapsed_duration is true, this field is set to the minimum
+       * elapsed seconds.
+       * 
+ * + * int64 min_step_count = 2; + * + * @param value The minStepCount to set. + * @return This builder for chaining. + */ + public Builder setMinStepCount(long value) { + + minStepCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+       * max_step_count.
+       * When use_elapsed_duration is true, this field is set to the minimum
+       * elapsed seconds.
+       * 
+ * + * int64 min_step_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinStepCount() { + + minStepCount_ = 0L; + onChanged(); + return this; + } + + private long minMeasurementCount_; + /** + * + * + *
+       * The minimal number of measurements in a Trial.  Early-stopping checks
+       * will not trigger if less than min_measurement_count+1 completed trials or
+       * pending trials with less than min_measurement_count measurements. If not
+       * defined, the default value is 5.
+       * 
+ * + * int64 min_measurement_count = 3; + * + * @return The minMeasurementCount. + */ + @java.lang.Override + public long getMinMeasurementCount() { + return minMeasurementCount_; + } + /** + * + * + *
+       * The minimal number of measurements in a Trial.  Early-stopping checks
+       * will not trigger if less than min_measurement_count+1 completed trials or
+       * pending trials with less than min_measurement_count measurements. If not
+       * defined, the default value is 5.
+       * 
+ * + * int64 min_measurement_count = 3; + * + * @param value The minMeasurementCount to set. + * @return This builder for chaining. + */ + public Builder setMinMeasurementCount(long value) { + + minMeasurementCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The minimal number of measurements in a Trial.  Early-stopping checks
+       * will not trigger if less than min_measurement_count+1 completed trials or
+       * pending trials with less than min_measurement_count measurements. If not
+       * defined, the default value is 5.
+       * 
+ * + * int64 min_measurement_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearMinMeasurementCount() { + + minMeasurementCount_ = 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 useElapsedDuration_; + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+       * decision is made according to the predicted objective values according to
+       * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @return The useElapsedDuration. + */ + @java.lang.Override + public boolean getUseElapsedDuration() { + return useElapsedDuration_; + } + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+       * decision is made according to the predicted objective values according to
+       * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @param value The useElapsedDuration to set. + * @return This builder for chaining. + */ + public Builder setUseElapsedDuration(boolean value) { + + useElapsedDuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+       * decision is made according to the predicted objective values according to
+       * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @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.v1.StudySpec.ConvexAutomatedStoppingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + private static final com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec(); + } + + public static com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConvexAutomatedStoppingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConvexAutomatedStoppingSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + 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_AUTOMATED_STOPPING_SPEC(9), + 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 9: + return CONVEX_AUTOMATED_STOPPING_SPEC; + 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.v1.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.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + * + * @return The decayCurveStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + getDecayCurveStoppingSpec() { + if (automatedStoppingSpecCase_ == 4) { + return (com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The automated early stopping spec using decay curve rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder + getDecayCurveStoppingSpecOrBuilder() { + if (automatedStoppingSpecCase_ == 4) { + return (com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.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.v1.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.v1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + * + * @return The medianAutomatedStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + getMedianAutomatedStoppingSpec() { + if (automatedStoppingSpecCase_ == 5) { + return (com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The automated early stopping spec using median rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpecOrBuilder + getMedianAutomatedStoppingSpecOrBuilder() { + if (automatedStoppingSpecCase_ == 5) { + return (com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } + + public static final int CONVEX_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER = 9; + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return Whether the convexAutomatedStoppingSpec field is set. + */ + @java.lang.Override + public boolean hasConvexAutomatedStoppingSpec() { + return automatedStoppingSpecCase_ == 9; + } + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return The convexAutomatedStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + getConvexAutomatedStoppingSpec() { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder + getConvexAutomatedStoppingSpecOrBuilder() { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + + public static final int METRICS_FIELD_NUMBER = 1; + private java.util.List metrics_; + /** + * + * + *
+   * Required. Metric specs for the Study.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getMetricsList() { @@ -15650,6 +16989,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(7, measurementSelectionType_); } + if (automatedStoppingSpecCase_ == 9) { + output.writeMessage( + 9, + (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_); + } unknownFields.writeTo(output); } @@ -15694,6 +17039,13 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, measurementSelectionType_); } + if (automatedStoppingSpecCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -15723,6 +17075,10 @@ public boolean equals(final java.lang.Object obj) { if (!getMedianAutomatedStoppingSpec().equals(other.getMedianAutomatedStoppingSpec())) return false; break; + case 9: + if (!getConvexAutomatedStoppingSpec().equals(other.getConvexAutomatedStoppingSpec())) + return false; + break; case 0: default: } @@ -15760,6 +17116,10 @@ public int hashCode() { hash = (37 * hash) + MEDIAN_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER; hash = (53 * hash) + getMedianAutomatedStoppingSpec().hashCode(); break; + case 9: + hash = (37 * hash) + CONVEX_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getConvexAutomatedStoppingSpec().hashCode(); + break; case 0: default: } @@ -15973,6 +17333,13 @@ public com.google.cloud.aiplatform.v1.StudySpec buildPartial() { result.automatedStoppingSpec_ = medianAutomatedStoppingSpecBuilder_.build(); } } + if (automatedStoppingSpecCase_ == 9) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + result.automatedStoppingSpec_ = automatedStoppingSpec_; + } else { + result.automatedStoppingSpec_ = convexAutomatedStoppingSpecBuilder_.build(); + } + } if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); @@ -16118,6 +17485,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec other) { mergeMedianAutomatedStoppingSpec(other.getMedianAutomatedStoppingSpec()); break; } + case CONVEX_AUTOMATED_STOPPING_SPEC: + { + mergeConvexAutomatedStoppingSpec(other.getConvexAutomatedStoppingSpec()); + break; + } case AUTOMATEDSTOPPINGSPEC_NOT_SET: { break; @@ -16300,8 +17672,9 @@ public Builder mergeDecayCurveStoppingSpec( } else { if (automatedStoppingSpecCase_ == 4) { decayCurveStoppingSpecBuilder_.mergeFrom(value); + } else { + decayCurveStoppingSpecBuilder_.setMessage(value); } - decayCurveStoppingSpecBuilder_.setMessage(value); } automatedStoppingSpecCase_ = 4; return this; @@ -16544,8 +17917,9 @@ public Builder mergeMedianAutomatedStoppingSpec( } else { if (automatedStoppingSpecCase_ == 5) { medianAutomatedStoppingSpecBuilder_.mergeFrom(value); + } else { + medianAutomatedStoppingSpecBuilder_.setMessage(value); } - medianAutomatedStoppingSpecBuilder_.setMessage(value); } automatedStoppingSpecCase_ = 5; return this; @@ -16656,6 +18030,251 @@ public Builder clearMedianAutomatedStoppingSpec() { return medianAutomatedStoppingSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder> + convexAutomatedStoppingSpecBuilder_; + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return Whether the convexAutomatedStoppingSpec field is set. + */ + @java.lang.Override + public boolean hasConvexAutomatedStoppingSpec() { + return automatedStoppingSpecCase_ == 9; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return The convexAutomatedStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + getConvexAutomatedStoppingSpec() { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } else { + if (automatedStoppingSpecCase_ == 9) { + return convexAutomatedStoppingSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder setConvexAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec value) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automatedStoppingSpec_ = value; + onChanged(); + } else { + convexAutomatedStoppingSpecBuilder_.setMessage(value); + } + automatedStoppingSpecCase_ = 9; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder setConvexAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder + builderForValue) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + automatedStoppingSpec_ = builderForValue.build(); + onChanged(); + } else { + convexAutomatedStoppingSpecBuilder_.setMessage(builderForValue.build()); + } + automatedStoppingSpecCase_ = 9; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder mergeConvexAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec value) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 9 + && automatedStoppingSpec_ + != com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance()) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.newBuilder( + (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + automatedStoppingSpec_ = value; + } + onChanged(); + } else { + if (automatedStoppingSpecCase_ == 9) { + convexAutomatedStoppingSpecBuilder_.mergeFrom(value); + } else { + convexAutomatedStoppingSpecBuilder_.setMessage(value); + } + } + automatedStoppingSpecCase_ = 9; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder clearConvexAutomatedStoppingSpec() { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 9) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + onChanged(); + } + } else { + if (automatedStoppingSpecCase_ == 9) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + } + convexAutomatedStoppingSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder + getConvexAutomatedStoppingSpecBuilder() { + return getConvexAutomatedStoppingSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder + getConvexAutomatedStoppingSpecOrBuilder() { + if ((automatedStoppingSpecCase_ == 9) && (convexAutomatedStoppingSpecBuilder_ != null)) { + return convexAutomatedStoppingSpecBuilder_.getMessageOrBuilder(); + } else { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder> + getConvexAutomatedStoppingSpecFieldBuilder() { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (!(automatedStoppingSpecCase_ == 9)) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + convexAutomatedStoppingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder>( + (com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_, + getParentForChildren(), + isClean()); + automatedStoppingSpec_ = null; + } + automatedStoppingSpecCase_ = 9; + onChanged(); + ; + return convexAutomatedStoppingSpecBuilder_; + } + private java.util.List metrics_ = java.util.Collections.emptyList(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java index 5ab777b76..5094869ee 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java @@ -109,6 +109,49 @@ public interface StudySpecOrBuilder com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpecOrBuilder getMedianAutomatedStoppingSpecOrBuilder(); + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return Whether the convexAutomatedStoppingSpec field is set. + */ + boolean hasConvexAutomatedStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return The convexAutomatedStoppingSpec. + */ + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + getConvexAutomatedStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder + getConvexAutomatedStoppingSpecOrBuilder(); + /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java index 9d674917b..419c30c41 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java @@ -105,6 +105,8 @@ private SuggestTrialsMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java index 1ad5467c2..c0a3d6efd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java @@ -101,6 +101,8 @@ private SuggestTrialsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java index acc58264e..ab3aac571 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java @@ -131,6 +131,8 @@ private SuggestTrialsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java index 905854dd7..fb0ed23f4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java @@ -95,6 +95,8 @@ private TFRecordDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java index f4ecb290c..be2b535ee 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java @@ -187,6 +187,8 @@ private Tensorboard( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -638,7 +640,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -689,7 +691,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -714,7 +716,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2446,7 +2448,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2498,7 +2500,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2523,7 +2525,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2555,7 +2557,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2584,11 +2586,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java index 9d45e4d75..05e4e25cc 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java @@ -94,6 +94,8 @@ private TensorboardBlob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java index b39f9f1e5..aafbd44d6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java @@ -94,6 +94,8 @@ private TensorboardBlobSequence( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java index 52ed03f0c..1ff46546f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java @@ -165,6 +165,8 @@ private TensorboardExperiment( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -496,7 +498,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -553,7 +555,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -581,7 +583,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1951,7 +1953,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2009,7 +2011,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2037,7 +2039,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2072,7 +2074,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2104,11 +2106,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java index d66a85b29..7cc34f707 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java @@ -264,7 +264,12 @@ public interface TensorboardExperimentOrBuilder * * map<string, string> labels = 6; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java index 1e5462036..6a4d1c8e4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java @@ -333,7 +333,12 @@ public interface TensorboardOrBuilder * * map<string, string> labels = 8; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java index 18f69261b..8d6e6f8bf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java @@ -157,6 +157,8 @@ private TensorboardRun( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -495,7 +497,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -558,7 +560,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -589,7 +591,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1905,7 +1907,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1969,7 +1971,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2000,7 +2002,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2038,7 +2040,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2073,11 +2075,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java index 7918afdeb..7b0045b4f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java @@ -280,7 +280,12 @@ public interface TensorboardRunOrBuilder * * map<string, string> labels = 8; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java index dbf3d595d..098341f90 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java @@ -91,6 +91,8 @@ private TensorboardTensor( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java index a237495d4..b85613fc2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java @@ -182,6 +182,8 @@ private TensorboardTimeSeries( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -554,6 +556,8 @@ private Metadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java index df37407ca..d12d424ca 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java @@ -71,8 +71,8 @@ private ThresholdConfig( break; case 9: { - thresholdCase_ = 1; threshold_ = input.readDouble(); + thresholdCase_ = 1; break; } default: @@ -86,6 +86,8 @@ private ThresholdConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java index 884a6d4e8..09cfecb54 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java @@ -111,6 +111,8 @@ private TimeSeriesData( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java index efce25abd..606075faf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java @@ -151,6 +151,8 @@ private TimeSeriesDataPoint( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1010,8 +1012,9 @@ public Builder mergeScalar(com.google.cloud.aiplatform.v1.Scalar value) { } else { if (valueCase_ == 3) { scalarBuilder_.mergeFrom(value); + } else { + scalarBuilder_.setMessage(value); } - scalarBuilder_.setMessage(value); } valueCase_ = 3; return this; @@ -1217,8 +1220,9 @@ public Builder mergeTensor(com.google.cloud.aiplatform.v1.TensorboardTensor valu } else { if (valueCase_ == 4) { tensorBuilder_.mergeFrom(value); + } else { + tensorBuilder_.setMessage(value); } - tensorBuilder_.setMessage(value); } valueCase_ = 4; return this; @@ -1427,8 +1431,9 @@ public Builder mergeBlobs(com.google.cloud.aiplatform.v1.TensorboardBlobSequence } else { if (valueCase_ == 5) { blobsBuilder_.mergeFrom(value); + } else { + blobsBuilder_.setMessage(value); } - blobsBuilder_.setMessage(value); } valueCase_ = 5; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java index bf4285c9c..67b4b29f9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java @@ -106,6 +106,8 @@ private TimestampSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -254,13 +256,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { output.writeDouble(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { output.writeDouble(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { output.writeDouble(3, testFraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -275,13 +277,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java index 4e0646ecf..96f3ce65a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java @@ -86,6 +86,8 @@ private TrainingConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java index 18130dea1..ba0aee1ea 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java @@ -282,6 +282,8 @@ private TrainingPipeline( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1085,7 +1087,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1128,7 +1130,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1149,7 +1151,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4385,7 +4387,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -4429,7 +4431,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4450,7 +4452,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4478,7 +4480,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4503,11 +4505,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java index 7debab093..e692f7cdb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java @@ -619,7 +619,12 @@ public interface TrainingPipelineOrBuilder * * map<string, string> labels = 15; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java index 1b4722dcb..48f12bfd1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java @@ -220,6 +220,8 @@ private Trial( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -652,6 +654,8 @@ private Parameter( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2188,7 +2192,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -2248,7 +2252,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2277,7 +2281,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -5046,7 +5050,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -5106,7 +5110,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -5135,7 +5139,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -5171,7 +5175,7 @@ public Builder clearWebAccessUris() { */ public Builder removeWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableWebAccessUris().getMutableMap().remove(key); return this; @@ -5204,11 +5208,12 @@ public java.util.Map getMutableWebAccessUris */ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableWebAccessUris().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java index 3f2608b1f..a39ee3612 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java @@ -540,7 +540,12 @@ public interface TrialOrBuilder * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - java.lang.String getWebAccessUrisOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java index b7e3b66c4..f3b04d2d3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java @@ -97,6 +97,8 @@ private UndeployIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java index d17df5d7c..d4275d28b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java @@ -96,6 +96,8 @@ private UndeployIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexResponse.java index 5fbe01e0f..72118dd6b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexResponse.java @@ -79,6 +79,8 @@ private UndeployIndexResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java index 653fb1873..7098116de 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java @@ -97,6 +97,8 @@ private UndeployModelOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java index 2c8cec489..cdb4d895d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java @@ -112,6 +112,8 @@ private UndeployModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -297,7 +299,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -344,7 +346,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -367,7 +369,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1032,7 +1034,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -1079,7 +1081,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1102,7 +1104,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1132,7 +1134,7 @@ public Builder clearTrafficSplit() { */ public Builder removeTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().remove(key); return this; @@ -1159,7 +1161,7 @@ public java.util.Map getMutableTrafficSplit */ public Builder putTrafficSplit(java.lang.String key, int value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().put(key, value); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelResponse.java index 219222a70..5e42381f5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelResponse.java @@ -79,6 +79,8 @@ private UndeployModelResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java index a6aa1855c..54f8f73f7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java @@ -122,6 +122,8 @@ private UnmanagedContainerModel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java index 55b73c30b..d58b0faac 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java @@ -115,6 +115,8 @@ private UpdateArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -210,11 +212,11 @@ public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactOrBuilder() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -227,11 +229,11 @@ public boolean hasUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -244,11 +246,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -897,11 +899,11 @@ public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -913,11 +915,11 @@ public boolean hasUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -935,11 +937,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -959,11 +961,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -980,11 +982,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -1006,11 +1008,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -1028,11 +1030,11 @@ public Builder clearUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1044,11 +1046,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1064,11 +1066,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequestOrBuilder.java index 650552633..48d40cd23 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequestOrBuilder.java @@ -80,11 +80,11 @@ public interface UpdateArtifactRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -94,11 +94,11 @@ public interface UpdateArtifactRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -108,11 +108,11 @@ public interface UpdateArtifactRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java index 6bc5d0d31..c24cee93c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java @@ -115,6 +115,8 @@ private UpdateContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -210,11 +212,11 @@ public com.google.cloud.aiplatform.v1.ContextOrBuilder getContextOrBuilder() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -227,11 +229,11 @@ public boolean hasUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -244,11 +246,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -897,11 +899,11 @@ public com.google.cloud.aiplatform.v1.ContextOrBuilder getContextOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -913,11 +915,11 @@ public boolean hasUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -935,11 +937,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -959,11 +961,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -980,11 +982,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -1006,11 +1008,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -1028,11 +1030,11 @@ public Builder clearUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1044,11 +1046,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1064,11 +1066,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequestOrBuilder.java index 8ac401063..13dfb46bd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequestOrBuilder.java @@ -80,11 +80,11 @@ public interface UpdateContextRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -94,11 +94,11 @@ public interface UpdateContextRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -108,11 +108,11 @@ public interface UpdateContextRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java index 10b4b47d7..a3fbd4a26 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java @@ -110,6 +110,8 @@ private UpdateDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java index 9e0458f81..54cbdaaef 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java @@ -110,6 +110,8 @@ private UpdateEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java index c7ecb2976..caa75a97d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java @@ -110,6 +110,8 @@ private UpdateEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java index 7c5ef499a..6880950ed 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java @@ -115,6 +115,8 @@ private UpdateExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -210,11 +212,11 @@ public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -227,11 +229,11 @@ public boolean hasUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -244,11 +246,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -898,11 +900,11 @@ public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -914,11 +916,11 @@ public boolean hasUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -936,11 +938,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -960,11 +962,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -981,11 +983,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -1007,11 +1009,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -1029,11 +1031,11 @@ public Builder clearUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1045,11 +1047,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1065,11 +1067,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequestOrBuilder.java index a60e8d9fb..02f461ae9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequestOrBuilder.java @@ -80,11 +80,11 @@ public interface UpdateExecutionRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -94,11 +94,11 @@ public interface UpdateExecutionRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -108,11 +108,11 @@ public interface UpdateExecutionRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java index 131230228..bbde49637 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java @@ -110,6 +110,8 @@ private UpdateFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java index 8d6d51d26..bf498eb92 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java @@ -98,6 +98,8 @@ private UpdateFeaturestoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java index 16d23940f..306312c36 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java @@ -110,6 +110,8 @@ private UpdateFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java index 82584283c..887812cba 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java @@ -110,6 +110,8 @@ private UpdateIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java index 836ef7d88..55891b981 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java @@ -115,6 +115,8 @@ private UpdateIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java index 08f22d27d..de700b6ce 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java @@ -110,6 +110,8 @@ private UpdateIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java index d2cad8b28..f42ebdb2b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java @@ -100,6 +100,8 @@ private UpdateModelDeploymentMonitoringJobOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java index 2f87417a9..9a02ed2d2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java @@ -114,6 +114,8 @@ private UpdateModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java index af877b7d5..00cea21ca 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java @@ -110,6 +110,8 @@ private UpdateModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -140,6 +142,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -156,6 +175,23 @@ public boolean hasModel() { * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -172,6 +208,23 @@ public com.google.cloud.aiplatform.v1.Model getModel() { * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -603,6 +656,23 @@ public Builder mergeFrom( * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -618,6 +688,23 @@ public boolean hasModel() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -637,6 +724,23 @@ public com.google.cloud.aiplatform.v1.Model getModel() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -660,6 +764,23 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model value) { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -680,6 +801,23 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model.Builder builderForV * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -707,6 +845,23 @@ public Builder mergeModel(com.google.cloud.aiplatform.v1.Model value) { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -728,6 +883,23 @@ public Builder clearModel() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -743,6 +915,23 @@ public com.google.cloud.aiplatform.v1.Model.Builder getModelBuilder() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -760,6 +949,23 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java index cdec555ce..85d497ffd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java @@ -28,6 +28,23 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,6 +58,23 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -54,6 +88,23 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * .google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java index a72d50341..51c6b7540 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java @@ -108,6 +108,8 @@ private UpdateSpecialistPoolOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java index 618f1dede..729ed0846 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java @@ -110,6 +110,8 @@ private UpdateSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java index 25b2d85b1..2276fbaf9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java @@ -112,6 +112,8 @@ private UpdateTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java index ba86f5124..00473d543 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java @@ -97,6 +97,8 @@ private UpdateTensorboardOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java index 8ed21156f..dddd90a5c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java @@ -110,6 +110,8 @@ private UpdateTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java index 42a73ca40..184f9d192 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java @@ -110,6 +110,8 @@ private UpdateTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java index 0279d95cf..353adf9b3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java @@ -112,6 +112,8 @@ private UpdateTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java index f64dd4e81..7120760b1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java @@ -96,6 +96,8 @@ private UploadModelOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java index 9b1c3cf5a..9889de53a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java @@ -104,6 +104,8 @@ private UploadModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java index ae5ec9d8c..5579c3ffa 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java @@ -88,6 +88,8 @@ private UploadModelResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 f80ac2c0c..2774e9d8a 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 @@ -103,6 +103,8 @@ private UserActionReference( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java index c57731153..19f828a55 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java @@ -70,14 +70,14 @@ private Value( break; case 8: { - valueCase_ = 1; value_ = input.readInt64(); + valueCase_ = 1; break; } case 17: { - valueCase_ = 2; value_ = input.readDouble(); + valueCase_ = 2; break; } case 26: @@ -98,6 +98,8 @@ private Value( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java index 390d8dd35..bc8339105 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java @@ -37,7 +37,9 @@ private WorkerPoolSpec(com.google.protobuf.GeneratedMessageV3.Builder builder super(builder); } - private WorkerPoolSpec() {} + private WorkerPoolSpec() { + nfsMounts_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -58,6 +60,7 @@ private WorkerPoolSpec( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -89,6 +92,17 @@ private WorkerPoolSpec( replicaCount_ = input.readInt64(); break; } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nfsMounts_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.NfsMount.parser(), extensionRegistry)); + break; + } case 42: { com.google.cloud.aiplatform.v1.DiskSpec.Builder subBuilder = null; @@ -148,9 +162,14 @@ private WorkerPoolSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = java.util.Collections.unmodifiableList(nfsMounts_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -392,6 +411,85 @@ public long getReplicaCount() { return replicaCount_; } + public static final int NFS_MOUNTS_FIELD_NUMBER = 4; + private java.util.List nfsMounts_; + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getNfsMountsList() { + return nfsMounts_; + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNfsMountsOrBuilderList() { + return nfsMounts_; + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNfsMountsCount() { + return nfsMounts_.size(); + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NfsMount getNfsMounts(int index) { + return nfsMounts_.get(index); + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NfsMountOrBuilder getNfsMountsOrBuilder(int index) { + return nfsMounts_.get(index); + } + public static final int DISK_SPEC_FIELD_NUMBER = 5; private com.google.cloud.aiplatform.v1.DiskSpec diskSpec_; /** @@ -460,6 +558,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (replicaCount_ != 0L) { output.writeInt64(2, replicaCount_); } + for (int i = 0; i < nfsMounts_.size(); i++) { + output.writeMessage(4, nfsMounts_.get(i)); + } if (diskSpec_ != null) { output.writeMessage(5, getDiskSpec()); } @@ -484,6 +585,9 @@ public int getSerializedSize() { if (replicaCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, replicaCount_); } + for (int i = 0; i < nfsMounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, nfsMounts_.get(i)); + } if (diskSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDiskSpec()); } @@ -518,6 +622,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMachineSpec().equals(other.getMachineSpec())) return false; } if (getReplicaCount() != other.getReplicaCount()) return false; + if (!getNfsMountsList().equals(other.getNfsMountsList())) return false; if (hasDiskSpec() != other.hasDiskSpec()) return false; if (hasDiskSpec()) { if (!getDiskSpec().equals(other.getDiskSpec())) return false; @@ -550,6 +655,10 @@ public int hashCode() { } hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReplicaCount()); + if (getNfsMountsCount() > 0) { + hash = (37 * hash) + NFS_MOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getNfsMountsList().hashCode(); + } if (hasDiskSpec()) { hash = (37 * hash) + DISK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDiskSpec().hashCode(); @@ -705,7 +814,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNfsMountsFieldBuilder(); + } } @java.lang.Override @@ -719,6 +830,12 @@ public Builder clear() { } replicaCount_ = 0L; + if (nfsMountsBuilder_ == null) { + nfsMounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nfsMountsBuilder_.clear(); + } if (diskSpecBuilder_ == null) { diskSpec_ = null; } else { @@ -754,6 +871,7 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec build() { public com.google.cloud.aiplatform.v1.WorkerPoolSpec buildPartial() { com.google.cloud.aiplatform.v1.WorkerPoolSpec result = new com.google.cloud.aiplatform.v1.WorkerPoolSpec(this); + int from_bitField0_ = bitField0_; if (taskCase_ == 6) { if (containerSpecBuilder_ == null) { result.task_ = task_; @@ -774,6 +892,15 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec buildPartial() { result.machineSpec_ = machineSpecBuilder_.build(); } result.replicaCount_ = replicaCount_; + if (nfsMountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = java.util.Collections.unmodifiableList(nfsMounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nfsMounts_ = nfsMounts_; + } else { + result.nfsMounts_ = nfsMountsBuilder_.build(); + } if (diskSpecBuilder_ == null) { result.diskSpec_ = diskSpec_; } else { @@ -835,6 +962,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WorkerPoolSpec other) { if (other.getReplicaCount() != 0L) { setReplicaCount(other.getReplicaCount()); } + if (nfsMountsBuilder_ == null) { + if (!other.nfsMounts_.isEmpty()) { + if (nfsMounts_.isEmpty()) { + nfsMounts_ = other.nfsMounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNfsMountsIsMutable(); + nfsMounts_.addAll(other.nfsMounts_); + } + onChanged(); + } + } else { + if (!other.nfsMounts_.isEmpty()) { + if (nfsMountsBuilder_.isEmpty()) { + nfsMountsBuilder_.dispose(); + nfsMountsBuilder_ = null; + nfsMounts_ = other.nfsMounts_; + bitField0_ = (bitField0_ & ~0x00000001); + nfsMountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsMountsFieldBuilder() + : null; + } else { + nfsMountsBuilder_.addAllMessages(other.nfsMounts_); + } + } + } if (other.hasDiskSpec()) { mergeDiskSpec(other.getDiskSpec()); } @@ -897,6 +1051,8 @@ public Builder clearTask() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.ContainerSpec, com.google.cloud.aiplatform.v1.ContainerSpec.Builder, @@ -1009,8 +1165,9 @@ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ContainerSpec v } else { if (taskCase_ == 6) { containerSpecBuilder_.mergeFrom(value); + } else { + containerSpecBuilder_.setMessage(value); } - containerSpecBuilder_.setMessage(value); } taskCase_ = 6; return this; @@ -1218,8 +1375,9 @@ public Builder mergePythonPackageSpec(com.google.cloud.aiplatform.v1.PythonPacka } else { if (taskCase_ == 7) { pythonPackageSpecBuilder_.mergeFrom(value); + } else { + pythonPackageSpecBuilder_.setMessage(value); } - pythonPackageSpecBuilder_.setMessage(value); } taskCase_ = 7; return this; @@ -1572,6 +1730,391 @@ public Builder clearReplicaCount() { return this; } + private java.util.List nfsMounts_ = + java.util.Collections.emptyList(); + + private void ensureNfsMountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = new java.util.ArrayList(nfsMounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NfsMount, + com.google.cloud.aiplatform.v1.NfsMount.Builder, + com.google.cloud.aiplatform.v1.NfsMountOrBuilder> + nfsMountsBuilder_; + + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getNfsMountsList() { + if (nfsMountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nfsMounts_); + } else { + return nfsMountsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNfsMountsCount() { + if (nfsMountsBuilder_ == null) { + return nfsMounts_.size(); + } else { + return nfsMountsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NfsMount getNfsMounts(int index) { + if (nfsMountsBuilder_ == null) { + return nfsMounts_.get(index); + } else { + return nfsMountsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNfsMounts(int index, com.google.cloud.aiplatform.v1.NfsMount value) { + if (nfsMountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsMountsIsMutable(); + nfsMounts_.set(index, value); + onChanged(); + } else { + nfsMountsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNfsMounts( + int index, com.google.cloud.aiplatform.v1.NfsMount.Builder builderForValue) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.set(index, builderForValue.build()); + onChanged(); + } else { + nfsMountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts(com.google.cloud.aiplatform.v1.NfsMount value) { + if (nfsMountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsMountsIsMutable(); + nfsMounts_.add(value); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts(int index, com.google.cloud.aiplatform.v1.NfsMount value) { + if (nfsMountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsMountsIsMutable(); + nfsMounts_.add(index, value); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts(com.google.cloud.aiplatform.v1.NfsMount.Builder builderForValue) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.add(builderForValue.build()); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts( + int index, com.google.cloud.aiplatform.v1.NfsMount.Builder builderForValue) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.add(index, builderForValue.build()); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNfsMounts( + java.lang.Iterable values) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsMounts_); + onChanged(); + } else { + nfsMountsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNfsMounts() { + if (nfsMountsBuilder_ == null) { + nfsMounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nfsMountsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNfsMounts(int index) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.remove(index); + onChanged(); + } else { + nfsMountsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NfsMount.Builder getNfsMountsBuilder(int index) { + return getNfsMountsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NfsMountOrBuilder getNfsMountsOrBuilder(int index) { + if (nfsMountsBuilder_ == null) { + return nfsMounts_.get(index); + } else { + return nfsMountsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNfsMountsOrBuilderList() { + if (nfsMountsBuilder_ != null) { + return nfsMountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nfsMounts_); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NfsMount.Builder addNfsMountsBuilder() { + return getNfsMountsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.NfsMount.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NfsMount.Builder addNfsMountsBuilder(int index) { + return getNfsMountsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.NfsMount.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNfsMountsBuilderList() { + return getNfsMountsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NfsMount, + com.google.cloud.aiplatform.v1.NfsMount.Builder, + com.google.cloud.aiplatform.v1.NfsMountOrBuilder> + getNfsMountsFieldBuilder() { + if (nfsMountsBuilder_ == null) { + nfsMountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NfsMount, + com.google.cloud.aiplatform.v1.NfsMount.Builder, + com.google.cloud.aiplatform.v1.NfsMountOrBuilder>( + nfsMounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nfsMounts_ = null; + } + return nfsMountsBuilder_; + } + private com.google.cloud.aiplatform.v1.DiskSpec diskSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.DiskSpec, diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpecOrBuilder.java index e303ba31e..42cf3238d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpecOrBuilder.java @@ -147,6 +147,68 @@ public interface WorkerPoolSpecOrBuilder */ long getReplicaCount(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getNfsMountsList(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.NfsMount getNfsMounts(int index); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNfsMountsCount(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNfsMountsOrBuilderList(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.NfsMountOrBuilder getNfsMountsOrBuilder(int index); + /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java index 0da37d644..f751f9258 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java @@ -106,6 +106,8 @@ private WriteTensorboardExperimentDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataResponse.java index d56fa696f..3da98b942 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataResponse.java @@ -81,6 +81,8 @@ private WriteTensorboardExperimentDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java index 496a78570..279c76e30 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java @@ -103,6 +103,8 @@ private WriteTensorboardRunDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataResponse.java index 8b3e6882f..c4f8f8c55 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataResponse.java @@ -80,6 +80,8 @@ private WriteTensorboardRunDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java index 27621eea9..f356adc0e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java @@ -121,6 +121,8 @@ private XraiAttribution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java index b6d66302a..97edfebee 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java @@ -99,6 +99,8 @@ private ImageClassificationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java index 69267d61a..80dedbfa5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java @@ -99,6 +99,8 @@ private ImageObjectDetectionPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java index 838f3a7a2..035901613 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java @@ -99,6 +99,8 @@ private ImageSegmentationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java index e99b2d1f9..d2c8d13d5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java @@ -99,6 +99,8 @@ private TextClassificationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java index 941cbde18..d6b2d0cb1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java @@ -106,6 +106,8 @@ private TextExtractionPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java index 75edaf3ea..db0fbd8d2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java @@ -98,6 +98,8 @@ private TextSentimentPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java index 266cdb2b7..1da76f112 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java @@ -115,6 +115,8 @@ private VideoActionRecognitionPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java index 4e4320d65..3b5ba3744 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java @@ -115,6 +115,8 @@ private VideoClassificationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java index b7ad63b0a..e43a6c5a8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java @@ -115,6 +115,8 @@ private VideoObjectTrackingPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java index 94e6f30e2..930685972 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java @@ -92,6 +92,8 @@ private ImageClassificationPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -172,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -187,7 +189,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java index 38ec0465a..01a8e06ab 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java @@ -92,6 +92,8 @@ private ImageObjectDetectionPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -172,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -187,7 +189,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java index 02148026a..d67fe67ae 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java @@ -86,6 +86,8 @@ private ImageSegmentationPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -148,7 +150,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } unknownFields.writeTo(output); @@ -160,7 +162,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java index 29c781e7a..d36b05d2d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java @@ -92,6 +92,8 @@ private VideoActionRecognitionPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -172,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -187,7 +189,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java index 4611b8ece..e38aa86eb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java @@ -107,6 +107,8 @@ private VideoClassificationPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -257,7 +259,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -281,7 +283,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java index 52e35ae1a..30723bb49 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java @@ -97,6 +97,8 @@ private VideoObjectTrackingPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -196,13 +198,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { output.writeInt32(2, maxPredictions_); } - if (minBoundingBoxSize_ != 0F) { + if (java.lang.Float.floatToRawIntBits(minBoundingBoxSize_) != 0) { output.writeFloat(3, minBoundingBoxSize_); } unknownFields.writeTo(output); @@ -214,13 +216,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxPredictions_); } - if (minBoundingBoxSize_ != 0F) { + if (java.lang.Float.floatToRawIntBits(minBoundingBoxSize_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, minBoundingBoxSize_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java index fbed54d8f..aa6da230d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java @@ -142,6 +142,8 @@ private ClassificationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java index a0943e783..9c97a5ab7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java @@ -154,6 +154,8 @@ private ImageObjectDetectionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java index 7851b40b8..c21fa0947 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java @@ -98,6 +98,8 @@ private ImageSegmentationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java index 522477425..ddf47a6d9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java @@ -119,6 +119,8 @@ private TabularClassificationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java index 388897084..a3589912f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java @@ -96,6 +96,8 @@ private TabularRegressionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -191,13 +193,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (value_ != 0F) { + if (java.lang.Float.floatToRawIntBits(value_) != 0) { output.writeFloat(1, value_); } - if (lowerBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(lowerBound_) != 0) { output.writeFloat(2, lowerBound_); } - if (upperBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(upperBound_) != 0) { output.writeFloat(3, upperBound_); } unknownFields.writeTo(output); @@ -209,13 +211,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (value_ != 0F) { + if (java.lang.Float.floatToRawIntBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, value_); } - if (lowerBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(lowerBound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, lowerBound_); } - if (upperBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(upperBound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, upperBound_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java index 7f4ebd2fc..f6a8f2cd3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java @@ -190,6 +190,8 @@ private TextExtractionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java index c5cb57099..9a86fe276 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java @@ -85,6 +85,8 @@ private TextSentimentPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java index ea5176135..a92043090 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java @@ -144,6 +144,8 @@ private VideoActionRecognitionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java index 9a39a8c2e..dbdbe6c69 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java @@ -152,6 +152,8 @@ private VideoClassificationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java index 206a84a6d..18a6fd7ea 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java @@ -162,6 +162,8 @@ private VideoObjectTrackingPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -521,6 +523,8 @@ private Frame( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java index e6256ddc2..29e0a43fa 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java @@ -121,6 +121,8 @@ private AutoMlImageClassification( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java index ad8c43c8e..6151985d8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java @@ -108,6 +108,8 @@ private AutoMlImageClassificationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java index c3c655ccb..e310f43e5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java @@ -90,6 +90,8 @@ private AutoMlImageClassificationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java index 7e6de8a0a..2512dab0b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java @@ -121,6 +121,8 @@ private AutoMlImageObjectDetection( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java index 62c290f38..55ff4536d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java @@ -95,6 +95,8 @@ private AutoMlImageObjectDetectionInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java index 2226fd2d4..7167b3944 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java @@ -90,6 +90,8 @@ private AutoMlImageObjectDetectionMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java index ab0aac43d..3dfdd2b73 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java @@ -120,6 +120,8 @@ private AutoMlImageSegmentation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java index cefa2564d..a9c6af1ec 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java @@ -96,6 +96,8 @@ private AutoMlImageSegmentationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java index 9b22a497d..94df75847 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java @@ -89,6 +89,8 @@ private AutoMlImageSegmentationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java index b0837efaa..8254eb54d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java @@ -119,6 +119,8 @@ private AutoMlTables( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 1f6d3b45c..3beef3c48 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 @@ -109,14 +109,14 @@ private AutoMlTablesInputs( } case 45: { - additionalOptimizationObjectiveConfigCase_ = 5; additionalOptimizationObjectiveConfig_ = input.readFloat(); + additionalOptimizationObjectiveConfigCase_ = 5; break; } case 53: { - additionalOptimizationObjectiveConfigCase_ = 6; additionalOptimizationObjectiveConfig_ = input.readFloat(); + additionalOptimizationObjectiveConfigCase_ = 6; break; } case 56: @@ -177,6 +177,8 @@ private AutoMlTablesInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -705,6 +707,8 @@ private Transformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -820,6 +824,8 @@ private AutoTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -1522,6 +1528,8 @@ private NumericTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -2308,6 +2316,8 @@ private CategoricalTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3067,6 +3077,8 @@ private TimestampTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -4092,6 +4104,8 @@ private TextTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -4800,6 +4814,8 @@ private NumericArrayTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -5581,6 +5597,8 @@ private CategoricalArrayTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6265,6 +6283,8 @@ private TextArrayTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -8086,8 +8106,9 @@ public Builder mergeAuto( } else { if (transformationDetailCase_ == 1) { autoBuilder_.mergeFrom(value); + } else { + autoBuilder_.setMessage(value); } - autoBuilder_.setMessage(value); } transformationDetailCase_ = 1; return this; @@ -8298,8 +8319,9 @@ public Builder mergeNumeric( } else { if (transformationDetailCase_ == 2) { numericBuilder_.mergeFrom(value); + } else { + numericBuilder_.setMessage(value); } - numericBuilder_.setMessage(value); } transformationDetailCase_ = 2; return this; @@ -8510,8 +8532,9 @@ public Builder mergeCategorical( } else { if (transformationDetailCase_ == 3) { categoricalBuilder_.mergeFrom(value); + } else { + categoricalBuilder_.setMessage(value); } - categoricalBuilder_.setMessage(value); } transformationDetailCase_ = 3; return this; @@ -8722,8 +8745,9 @@ public Builder mergeTimestamp( } else { if (transformationDetailCase_ == 4) { timestampBuilder_.mergeFrom(value); + } else { + timestampBuilder_.setMessage(value); } - timestampBuilder_.setMessage(value); } transformationDetailCase_ = 4; return this; @@ -8934,8 +8958,9 @@ public Builder mergeText( } else { if (transformationDetailCase_ == 5) { textBuilder_.mergeFrom(value); + } else { + textBuilder_.setMessage(value); } - textBuilder_.setMessage(value); } transformationDetailCase_ = 5; return this; @@ -9146,8 +9171,9 @@ public Builder mergeRepeatedNumeric( } else { if (transformationDetailCase_ == 6) { repeatedNumericBuilder_.mergeFrom(value); + } else { + repeatedNumericBuilder_.setMessage(value); } - repeatedNumericBuilder_.setMessage(value); } transformationDetailCase_ = 6; return this; @@ -9358,8 +9384,9 @@ public Builder mergeRepeatedCategorical( } else { if (transformationDetailCase_ == 7) { repeatedCategoricalBuilder_.mergeFrom(value); + } else { + repeatedCategoricalBuilder_.setMessage(value); } - repeatedCategoricalBuilder_.setMessage(value); } transformationDetailCase_ = 7; return this; @@ -9570,8 +9597,9 @@ public Builder mergeRepeatedText( } else { if (transformationDetailCase_ == 8) { repeatedTextBuilder_.mergeFrom(value); + } else { + repeatedTextBuilder_.setMessage(value); } - repeatedTextBuilder_.setMessage(value); } transformationDetailCase_ = 8; return this; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java index ea075b70b..4b5b88ebb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java @@ -85,6 +85,8 @@ private AutoMlTablesMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java index 1963c4e5e..e35f8074a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java @@ -100,6 +100,8 @@ private AutoMlTextClassification( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java index 38239e730..4cd1ddcd8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java @@ -80,6 +80,8 @@ private AutoMlTextClassificationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java index 51e7ab30f..f25e43aa9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java @@ -100,6 +100,8 @@ private AutoMlTextExtraction( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java index 8adfc9df5..a5b934c7e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java @@ -74,6 +74,8 @@ private AutoMlTextExtractionInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java index f877ff6b6..2cd2c6787 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java @@ -100,6 +100,8 @@ private AutoMlTextSentiment( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java index 7d439dcc4..739072584 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java @@ -79,6 +79,8 @@ private AutoMlTextSentimentInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java index 9be2a544b..82445a0d1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java @@ -102,6 +102,8 @@ private AutoMlVideoActionRecognition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java index 54e1eadd0..de5814f9a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java @@ -85,6 +85,8 @@ private AutoMlVideoActionRecognitionInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java index 60f6361cd..0e4480d59 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java @@ -101,6 +101,8 @@ private AutoMlVideoClassification( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java index 6871abc7e..46089c0a0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java @@ -85,6 +85,8 @@ private AutoMlVideoClassificationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java index e2b1e010f..0388d308e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java @@ -101,6 +101,8 @@ private AutoMlVideoObjectTracking( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java index 7a7f80232..0ef57e79d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java @@ -85,6 +85,8 @@ private AutoMlVideoObjectTrackingInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java index d6a6549ee..96ed23f18 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java @@ -96,6 +96,8 @@ private ExportEvaluatedDataItemsConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto index c3c8643ba..0c7f5afa2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto @@ -140,6 +140,16 @@ message CustomJobSpec { type: "compute.googleapis.com/Network" }]; + // Optional. A list of names for the reserved ip ranges under the VPC network + // that can be used for this job. + // + // If set, we will deploy the job within the provided ip ranges. Otherwise, + // the job will be deployed to any ip ranges under the provided VPC + // network. + // + // Example: ['vertex-ai-ip-range']. + repeated string reserved_ip_ranges = 13 [(google.api.field_behavior) = OPTIONAL]; + // The Cloud Storage location to store the output of this CustomJob or // HyperparameterTuningJob. For HyperparameterTuningJob, // the baseOutputDirectory of @@ -204,6 +214,9 @@ message WorkerPoolSpec { // Optional. The number of worker replicas to use for this worker pool. int64 replica_count = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of NFS mount spec. + repeated NfsMount nfs_mounts = 4 [(google.api.field_behavior) = OPTIONAL]; + // Disk spec. DiskSpec disk_spec = 5; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index 3ff9d693a..453cc89a9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -109,7 +109,7 @@ message Endpoint { type: "compute.googleapis.com/Network" }]; - // If true, expose the Endpoint via private service connect. + // Deprecated: If true, expose the Endpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], @@ -243,7 +243,7 @@ message PredictRequestResponseLoggingConfig { double sampling_rate = 2; // BigQuery table for logging. - // If only given project, a new dataset will be created with name + // If only given a project, a new dataset will be created with name // `logging__` where // will be made BigQuery-dataset-name compatible (e.g. // most special characters will become underscores). If no table name is diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/entity_type.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/entity_type.proto index 524c8e694..073b53398 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/entity_type.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/entity_type.proto @@ -74,15 +74,13 @@ message EntityType { // "overwrite" update happens. string etag = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The default monitoring configuration for all Features with value - // type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, - // STRING, DOUBLE or INT64 under this EntityType. + // Optional. The default monitoring configuration for all Features with value type + // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this + // EntityType. // // If this is populated with // [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is // disabled. - FeaturestoreMonitoringConfig monitoring_config = 8 - [(google.api.field_behavior) = OPTIONAL]; + FeaturestoreMonitoringConfig monitoring_config = 8 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature.proto index 47b1bc807..690bb3641 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature.proto @@ -41,9 +41,7 @@ message Feature { // A list of historical [Snapshot // Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature // Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats - // requested by user, sorted by - // [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] - // descending. + // requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] descending. message MonitoringStatsAnomaly { // If the objective in the request is both // Import Feature Analysis and Snapshot Analysis, this objective could be @@ -64,8 +62,7 @@ message Feature { Objective objective = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The stats and anomalies generated at specific timestamp. - FeatureStatsAnomaly feature_stats_anomaly = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + FeatureStatsAnomaly feature_stats_anomaly = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // An enum representing the value type of a feature. @@ -143,17 +140,15 @@ message Feature { // "overwrite" update happens. string etag = 7; - // Optional. If not set, use the monitoring_config defined for the EntityType - // this Feature belongs to. Only Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, - // STRING, DOUBLE or INT64 can enable monitoring. + // Optional. If not set, use the monitoring_config defined for the EntityType this + // Feature belongs to. + // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or + // INT64 can enable monitoring. // // If set to true, all types of data monitoring are disabled despite the // config on EntityType. bool disable_monitoring = 12 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The list of historical stats and anomalies with specified - // objectives. - repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 - [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The list of historical stats and anomalies with specified objectives. + repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto index 7ff841d81..535ca6b94 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto @@ -41,32 +41,33 @@ message Featurestore { // OnlineServingConfig specifies the details for provisioning online serving // resources. message OnlineServingConfig { - // The number of nodes for each cluster. The number of nodes will not - // scale automatically but can be scaled manually by providing different - // values when updating. - // Only one of `fixed_node_count` and `scaling` can be set. Setting one will - // reset the other. + // The number of nodes for the online store. The number of nodes doesn't + // scale automatically, but you can manually update the number of + // nodes. If set to 0, the featurestore will not have an + // online store and cannot be used for online serving. int32 fixed_node_count = 2; } - // Possible states a Featurestore can have. + // Possible states a featurestore can have. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; - // State when the Featurestore configuration is not being updated and the - // fields reflect the current configuration of the Featurestore. The - // Featurestore is usable in this state. + // State when the featurestore configuration is not being updated and the + // fields reflect the current configuration of the featurestore. The + // featurestore is usable in this state. STABLE = 1; - // State when the Featurestore configuration is being updated and the fields - // reflect the updated configuration of the Featurestore, not the current - // one. For example, `online_serving_config.fixed_node_count` can take - // minutes to update. While the update is in progress, the Featurestore - // will be in the UPDATING state and the value of `fixed_node_count` will be - // the updated value. Until the update completes, the actual number of nodes - // can still be the original value of `fixed_node_count`. The Featurestore - // is still usable in this state. + // The state of the featurestore configuration when it is being updated. + // During an update, the fields reflect either the original configuration + // or the updated configuration of the featurestore. For example, + // `online_serving_config.fixed_node_count` can take minutes to update. + // While the update is in progress, the featurestore is in the UPDATING + // state, and the value of `fixed_node_count` can be the original value or + // the updated value, depending on the progress of the operation. Until the + // update completes, the actual number of nodes can still be the original + // value of `fixed_node_count`. The featurestore is still usable in this + // state. UPDATING = 2; } @@ -97,8 +98,9 @@ message Featurestore { // and are immutable. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - // Required. Config for online serving resources. - OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = REQUIRED]; + // Optional. Config for online storage resources. If unset, the featurestore will + // not have an online store and cannot be used for online serving. + OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. State of the featurestore. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_monitoring.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_monitoring.proto index 071f6a246..7233658b0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_monitoring.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_monitoring.proto @@ -139,15 +139,11 @@ message FeaturestoreMonitoringConfig { // Threshold for numerical features of anomaly detection. // This is shared by all objectives of Featurestore Monitoring for numerical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE - // or INT64). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64). ThresholdConfig numerical_threshold_config = 3; // Threshold for categorical features of anomaly detection. // This is shared by all types of Featurestore Monitoring for categorical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or - // STRING). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING). ThresholdConfig categorical_threshold_config = 4; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto index a90066066..9f1e9941b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto @@ -80,9 +80,9 @@ message IndexEndpoint { // Private services access must already be configured for the network. If left // unspecified, the Endpoint is not peered with any network. // - // Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - // [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - // can be set. + // [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. // // [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): // projects/{project}/global/networks/{network}. @@ -90,12 +90,15 @@ message IndexEndpoint { // network name. string network = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If true, expose the IndexEndpoint via private service connect. + // Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], // can be set. - bool enable_private_service_connect = 10 [(google.api.field_behavior) = OPTIONAL]; + bool enable_private_service_connect = 10 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto index 57c37e01c..45b101c01 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto @@ -56,4 +56,11 @@ enum JobState { // The job has expired. JOB_STATE_EXPIRED = 9; + + // The job is being updated. The job is only able to be updated at RUNNING + // state; if the update operation succeeds, job goes back to RUNNING state; if + // the update operation fails, the job goes back to RUNNING state with error + // messages written to [ModelDeploymentMonitoringJob.partial_errors][] field + // if it is a ModelDeploymentMonitoringJob. + JOB_STATE_UPDATING = 10; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto index 3850cf4cf..9bcf37c16 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto @@ -78,6 +78,11 @@ message DedicatedResources { // replicas at maximum may handle, a portion of the traffic will be dropped. // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the // default value. + // + // The value of this field impacts the charge against Vertex CPU and GPU + // quotas. Specifically, you will be charged for (max_replica_count * + // number of cores in the selected machine type) and (max_replica_count * + // number of GPUs per replica in the selected machine type). int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. The metric specifications that overrides a resource @@ -164,6 +169,21 @@ message DiskSpec { int32 boot_disk_size_gb = 2; } +// Represents a mount configuration for Network File System (NFS) to mount. +message NfsMount { + // Required. IP address of the NFS server. + string server = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Source path exported from NFS server. + // Has to start with '/', and combined with the ip address, it indicates + // the source mount path in the form of `server:path` + string path = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Destination mount path. The NFS will be mounted for the user under + // /mnt/nfs/ + string mount_point = 3 [(google.api.field_behavior) = REQUIRED]; +} + // The metric specification that defines the target resource utilization // (CPU utilization, accelerator's duty cycle, and so on) for calculating the // desired replica count. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/metadata_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/metadata_service.proto index 6d081e93f..c601d46af 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/metadata_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/metadata_service.proto @@ -571,9 +571,9 @@ message UpdateArtifactRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` Artifact artifact = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Artifact][google.cloud.aiplatform.v1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1.Artifact] is // created. @@ -757,9 +757,9 @@ message UpdateContextRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context context = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Context][google.cloud.aiplatform.v1.Context] is not found, a new [Context][google.cloud.aiplatform.v1.Context] is // created. @@ -1021,9 +1021,9 @@ message UpdateExecutionRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution execution = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Execution][google.cloud.aiplatform.v1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1.Execution] // is created. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index e5c5a3217..822e59263 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -67,6 +67,16 @@ message ModelDeploymentMonitoringJob { pattern: "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" }; + // All metadata of most recent monitoring pipelines. + message LatestMonitoringPipelineMetadata { + // The time that most recent monitoring pipelines that is related to this + // run. + google.protobuf.Timestamp run_time = 1; + + // The status of the most recent monitoring pipeline. + google.rpc.Status status = 2; + } + // The state to Specify the monitoring pipeline. enum MonitoringScheduleState { // Unspecified state. @@ -110,6 +120,9 @@ message ModelDeploymentMonitoringJob { // Output only. Schedule state when the monitoring job is in Running state. MonitoringScheduleState schedule_state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Latest triggered monitoring pipeline metadata. + LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The config for monitoring objectives. This is a per DeployedModel config. // Each DeployedModel needs to be configured separately. repeated ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto index 1b9a2b906..0daff79d7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto @@ -27,7 +27,7 @@ option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; -// Next ID: 7 +// Next ID: 8 message ModelMonitoringObjectiveConfig { // Training Dataset information. message TrainingDataset { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index 4799a22e9..726d3ec2e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -258,6 +258,23 @@ message ListModelsResponse { // Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. message UpdateModelRequest { // Required. The Model which replaces the resource on the server. + // When Model Versioning is enabled, the model.name will be used to determine + // whether to update the model or model version. + // 1. model.name with the @ value, e.g. models/123@1, refers to a version + // specific update. + // 2. model.name without the @ value, e.g. models/123, refers to a model + // update. + // 3. model.name with @-, e.g. models/123@-, refers to a model update. + // 4. Supported model fields: display_name, description; supported + // version-specific fields: version_description. Labels are supported in both + // scenarios. Both the model labels and the version labels are merged when a + // model is returned. When updating labels, if the request is for + // model-specific update, model label gets updated. Otherwise, version labels + // get updated. + // 5. A model name or model version name fields update mismatch will cause a + // precondition error. + // 6. One request cannot update both the model and the version fields. You + // must update them separately. Model model = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto index 9325436cd..21f929264 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -94,8 +94,8 @@ message PipelineJob { // Output only. Timestamp when this PipelineJob was most recently updated. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The spec of the pipeline. - google.protobuf.Struct pipeline_spec = 7 [(google.api.field_behavior) = REQUIRED]; + // The spec of the pipeline. + google.protobuf.Struct pipeline_spec = 7; // Output only. The detailed state of the job. PipelineState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto index fa79813c2..d749ecc8a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto @@ -322,6 +322,9 @@ message ListPipelineJobsRequest { // * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. // Values must be in RFC 3339 format. // * `labels`: Supports key-value equality and key presence. + // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + // * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + // wildcard. // // Filter expressions can be combined together using logical operators // (`AND` & `OR`). diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto index 7d336dc10..96b3c8ff2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto @@ -398,6 +398,54 @@ message StudySpec { bool use_elapsed_duration = 1; } + // Configuration for ConvexAutomatedStoppingSpec. + // When there are enough completed trials (configured by + // min_measurement_count), for pending trials with enough measurements and + // steps, the policy first computes an overestimate of the objective value at + // max_num_steps according to the slope of the incomplete objective value + // curve. No prediction can be made if the curve is completely flat. If the + // overestimation is worse than the best objective value of the completed + // trials, this pending trial will be early-stopped, but a last measurement + // will be added to the pending trial with max_num_steps and predicted + // objective value from the autoregression model. + message ConvexAutomatedStoppingSpec { + // 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. If not defined, it will learn it from the completed trials. When + // use_steps is false, this field is set to the maximum elapsed seconds. + int64 max_step_count = 1; + + // Minimum number of steps for a trial to complete. Trials which do not have + // a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the + // max_step_count. + // When use_elapsed_duration is true, this field is set to the minimum + // elapsed seconds. + int64 min_step_count = 2; + + // The minimal number of measurements in a Trial. Early-stopping checks + // will not trigger if less than min_measurement_count+1 completed trials or + // pending trials with less than min_measurement_count measurements. If not + // defined, the default value is 5. + int64 min_measurement_count = 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_elapsed_duration==false, the early stopping + // decision is made according to the predicted objective values according to + // the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + } + // The available search algorithms for the Study. enum Algorithm { // The default algorithm used by Vertex AI for [hyperparameter @@ -461,6 +509,9 @@ message StudySpec { // The automated early stopping spec using median rule. MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + + // The automated early stopping spec using convex stopping rule. + ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; } // Required. Metric specs for the Study. diff --git a/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml index ca1d35040..60e5482a6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml @@ -72,4 +72,43 @@ com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/*OrBuilder boolean has*(*) + + 6011 + com/google/cloud/aiplatform/v1beta1/ExplanationParameters* + SIMILARITY* + + + 6001 + com/google/cloud/aiplatform/v1beta1/ExplanationParameters* + SIMILARITY* + + + 7002 + com/google/cloud/aiplatform/v1beta1/ExplanationParameters* + * getSimilarity*(*) + + + 7002 + com/google/cloud/aiplatform/v1beta1/ExplanationParameters* + boolean hasSimilarity*(*) + + + 7002 + com/google/cloud/aiplatform/v1beta1/ExplanationParameters* + * clearSimilarity*(*) + + + 7002 + com/google/cloud/aiplatform/v1beta1/ExplanationParameters* + * mergeSimilarity*(*) + + + 7002 + com/google/cloud/aiplatform/v1beta1/ExplanationParameters* + * setSimilarity*(*) + + + 8001 + com/google/cloud/aiplatform/v1beta1/Similarity* + diff --git a/proto-google-cloud-aiplatform-v1beta1/pom.xml b/proto-google-cloud-aiplatform-v1beta1/pom.xml index e2576a45c..abbe799c1 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.14.9 + 0.15.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 2.8.9 + 2.9.0 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 eb49ed211..9c3fd3789 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 @@ -72,14 +72,14 @@ private ActiveLearningConfig( break; case 8: { - humanLabelingBudgetCase_ = 1; humanLabelingBudget_ = input.readInt64(); + humanLabelingBudgetCase_ = 1; break; } case 16: { - humanLabelingBudgetCase_ = 2; humanLabelingBudget_ = input.readInt32(); + humanLabelingBudgetCase_ = 2; break; } case 26: @@ -126,6 +126,8 @@ private ActiveLearningConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java index d19da7d4c..f2a059b9e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java @@ -113,6 +113,8 @@ private AddContextArtifactsAndExecutionsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsResponse.java index 19bee539b..c42c38a71 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsResponse.java @@ -81,6 +81,8 @@ private AddContextArtifactsAndExecutionsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java index e339fe872..530d8ca3b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java @@ -100,6 +100,8 @@ private AddContextChildrenRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenResponse.java index 8fee0291b..bbf24d3f5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenResponse.java @@ -79,6 +79,8 @@ private AddContextChildrenResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java index 3ab894cce..29184f99d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java @@ -101,6 +101,8 @@ private AddExecutionEventsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsResponse.java index f144943a6..0d2767504 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsResponse.java @@ -79,6 +79,8 @@ private AddExecutionEventsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 2c527c328..a38f1e56b 100644 --- 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 @@ -104,6 +104,8 @@ private AddTrialMeasurementRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 a21745323..8d0547b2d 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 @@ -180,6 +180,8 @@ private Annotation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -628,7 +630,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -691,7 +693,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -722,7 +724,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2437,7 +2439,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2501,7 +2503,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2532,7 +2534,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2570,7 +2572,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2605,11 +2607,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } 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 dfd343267..a9d697ccd 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 @@ -365,7 +365,12 @@ public interface AnnotationOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java index 721cc2a67..37fb1be29 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java @@ -46,39 +46,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n0google/cloud/aiplatform/v1beta1/annota" + "tion.proto\022\037google.cloud.aiplatform.v1be" - + "ta1\032\034google/api/annotations.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\032;google/cloud/aiplatform/v" - + "1beta1/user_action_reference.proto\032\034goog" - + "le/protobuf/struct.proto\032\037google/protobu" - + "f/timestamp.proto\"\330\004\n\nAnnotation\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\037\n\022payload_schema_uri\030\002 \001(\tB" - + "\003\340A\002\022,\n\007payload\030\003 \001(\0132\026.google.protobuf." - + "ValueB\003\340A\002\0224\n\013create_time\030\004 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021" - + "\n\004etag\030\010 \001(\tB\003\340A\001\022T\n\021annotation_source\030\005" - + " \001(\01324.google.cloud.aiplatform.v1beta1.U" - + "serActionReferenceB\003\340A\003\022L\n\006labels\030\006 \003(\0132" - + "7.google.cloud.aiplatform.v1beta1.Annota" - + "tion.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n$aip" - + "latform.googleapis.com/Annotation\022iproje" - + "cts/{project}/locations/{location}/datas" - + "ets/{dataset}/dataItems/{data_item}/anno" - + "tations/{annotation}B\354\001\n#com.google.clou" - + "d.aiplatform.v1beta1B\017AnnotationProtoP\001Z" - + "Igoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1beta1;aiplatform\252\002\037Goo" - + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" - + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" - + "AIPlatform::V1beta1b\006proto3" + + "ta1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032;google/cloud/ai" + + "platform/v1beta1/user_action_reference.p" + + "roto\032\034google/protobuf/struct.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\330\004\n\nAnnotati" + + "on\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\037\n\022payload_schema_" + + "uri\030\002 \001(\tB\003\340A\002\022,\n\007payload\030\003 \001(\0132\026.google" + + ".protobuf.ValueB\003\340A\002\0224\n\013create_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\021\n\004etag\030\010 \001(\tB\003\340A\001\022T\n\021annotatio" + + "n_source\030\005 \001(\01324.google.cloud.aiplatform" + + ".v1beta1.UserActionReferenceB\003\340A\003\022L\n\006lab" + + "els\030\006 \003(\01327.google.cloud.aiplatform.v1be" + + "ta1.Annotation.LabelsEntryB\003\340A\001\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225" + + "\001\352A\221\001\n$aiplatform.googleapis.com/Annotat" + + "ion\022iprojects/{project}/locations/{locat" + + "ion}/datasets/{dataset}/dataItems/{data_" + + "item}/annotations/{annotation}B\354\001\n#com.g" + + "oogle.cloud.aiplatform.v1beta1B\017Annotati" + + "onProtoP\001ZIgoogle.golang.org/genproto/go" + + "ogleapis/cloud/aiplatform/v1beta1;aiplat" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.UserActionReferenceProto.getDescriptor(), @@ -116,7 +114,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.UserActionReferenceProto.getDescriptor(); 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 926a73218..ad68e6e94 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 @@ -134,6 +134,8 @@ private AnnotationSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java index 4c3168436..9c3bbcd06 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java @@ -42,30 +42,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/aiplatform/v1beta1/annota" + "tion_spec.proto\022\037google.cloud.aiplatform" - + ".v1beta1\032\034google/api/annotations.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\"\314\002\n\016AnnotationSpec\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0224\n\013" - + "create_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003" - + "\340A\001:\214\001\352A\210\001\n(aiplatform.googleapis.com/An" - + "notationSpec\022\\projects/{project}/locatio" - + "ns/{location}/datasets/{dataset}/annotat" - + "ionSpecs/{annotation_spec}B\360\001\n#com.googl" - + "e.cloud.aiplatform.v1beta1B\023AnnotationSp" - + "ecProtoP\001ZIgoogle.golang.org/genproto/go" - + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\314\002\n\016AnnotationSpec" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(" + + "\tB\003\340A\002\0224\n\013create_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n\004et" + + "ag\030\005 \001(\tB\003\340A\001:\214\001\352A\210\001\n(aiplatform.googlea" + + "pis.com/AnnotationSpec\022\\projects/{projec" + + "t}/locations/{location}/datasets/{datase" + + "t}/annotationSpecs/{annotation_spec}B\360\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\023An" + + "notationSpecProtoP\001ZIgoogle.golang.org/g" + + "enproto/googleapis/cloud/aiplatform/v1be" + + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -84,7 +83,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java index 7ef436009..39fff55aa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java @@ -202,6 +202,8 @@ private Artifact( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -641,7 +643,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -686,7 +688,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -708,7 +710,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2105,7 +2107,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2151,7 +2153,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2173,7 +2175,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2202,7 +2204,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2228,11 +2230,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java index f512e0db8..8424375e4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java @@ -191,7 +191,12 @@ public interface ArtifactOrBuilder * * map<string, string> labels = 10; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java index 537a9dcc0..804c4179b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java @@ -46,43 +46,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n.google/cloud/aiplatform/v1beta1/artifa" + "ct.proto\022\037google.cloud.aiplatform.v1beta" - + "1\032\034google/api/annotations.proto\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032+google/cloud/aiplatform/v1b" - + "eta1/value.proto\032\034google/protobuf/struct" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\236\005\n\010Artifact\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014displ" - + "ay_name\030\002 \001(\t\022\013\n\003uri\030\006 \001(\t\022\014\n\004etag\030\t \001(\t" - + "\022E\n\006labels\030\n \003(\01325.google.cloud.aiplatfo" - + "rm.v1beta1.Artifact.LabelsEntry\0224\n\013creat" - + "e_time\030\013 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013update_time\030\014 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022>\n\005state\030\r \001(\0162/.goo" - + "gle.cloud.aiplatform.v1beta1.Artifact.St" - + "ate\022\024\n\014schema_title\030\016 \001(\t\022\026\n\016schema_vers" - + "ion\030\017 \001(\t\022)\n\010metadata\030\020 \001(\0132\027.google.pro" - + "tobuf.Struct\022\023\n\013description\030\021 \001(\t\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"5\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PEND" - + "ING\020\001\022\010\n\004LIVE\020\002:\206\001\352A\202\001\n\"aiplatform.googl" - + "eapis.com/Artifact\022\\projects/{project}/l" - + "ocations/{location}/metadataStores/{meta" - + "data_store}/artifacts/{artifact}B\352\001\n#com" - + ".google.cloud.aiplatform.v1beta1B\rArtifa" - + "ctProtoP\001ZIgoogle.golang.org/genproto/go" - + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\034google/protobuf/s" + + "truct.proto\032\037google/protobuf/timestamp.p" + + "roto\"\236\005\n\010Artifact\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014" + + "display_name\030\002 \001(\t\022\013\n\003uri\030\006 \001(\t\022\014\n\004etag\030" + + "\t \001(\t\022E\n\006labels\030\n \003(\01325.google.cloud.aip" + + "latform.v1beta1.Artifact.LabelsEntry\0224\n\013" + + "create_time\030\013 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\014 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022>\n\005state\030\r \001(\0162" + + "/.google.cloud.aiplatform.v1beta1.Artifa" + + "ct.State\022\024\n\014schema_title\030\016 \001(\t\022\026\n\016schema" + + "_version\030\017 \001(\t\022)\n\010metadata\030\020 \001(\0132\027.googl" + + "e.protobuf.Struct\022\023\n\013description\030\021 \001(\t\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"5\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007PENDING\020\001\022\010\n\004LIVE\020\002:\206\001\352A\202\001\n\"aiplatform." + + "googleapis.com/Artifact\022\\projects/{proje" + + "ct}/locations/{location}/metadataStores/" + + "{metadata_store}/artifacts/{artifact}B\352\001" + + "\n#com.google.cloud.aiplatform.v1beta1B\rA" + + "rtifactProtoP\001ZIgoogle.golang.org/genpro" + + "to/googleapis/cloud/aiplatform/v1beta1;a" + + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -119,10 +116,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java index 87ca492b4..b1e99a4f5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java @@ -151,6 +151,8 @@ private Attribution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -555,10 +557,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (baselineOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(baselineOutputValue_) != 0) { output.writeDouble(1, baselineOutputValue_); } - if (instanceOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(instanceOutputValue_) != 0) { output.writeDouble(2, instanceOutputValue_); } if (featureAttributions_ != null) { @@ -574,7 +576,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputDisplayName_); } - if (approximationError_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(approximationError_) != 0) { output.writeDouble(6, approximationError_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) { @@ -589,10 +591,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (baselineOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(baselineOutputValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, baselineOutputValue_); } - if (instanceOutputValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(instanceOutputValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, instanceOutputValue_); } if (featureAttributions_ != null) { @@ -614,7 +616,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputDisplayName_); } - if (approximationError_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(approximationError_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, approximationError_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputName_)) { 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 e5f39a56d..65a6b8f27 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 @@ -91,6 +91,8 @@ private AutomaticResources( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index f25e7cd03..74b7b3ef9 100644 --- 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 @@ -95,6 +95,8 @@ private AutoscalingMetricSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java index f7280adc3..cdf04e095 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java @@ -95,6 +95,8 @@ private AvroSource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java index cba13cfd7..1570c6507 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java @@ -99,6 +99,8 @@ private BatchCreateFeaturesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java index 8092548dd..3388b3a52 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java @@ -104,6 +104,8 @@ private BatchCreateFeaturesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java index 4b2028c32..731ab473c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java @@ -93,6 +93,8 @@ private BatchCreateFeaturesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java index 4cd69282e..4444f684d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java @@ -105,6 +105,8 @@ private BatchCreateTensorboardRunsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java index 796eabd2a..7d6e8b349 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java @@ -96,6 +96,8 @@ private BatchCreateTensorboardRunsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java index 954bb4592..5f735c1d1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java @@ -107,6 +107,8 @@ private BatchCreateTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java index fd0e0ee54..0c8fb7e76 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java @@ -98,6 +98,8 @@ private BatchCreateTensorboardTimeSeriesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java index 4f99a1c4a..2fa629059 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java @@ -106,6 +106,8 @@ private BatchDedicatedResources( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 cf089b05f..130eb5e23 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 @@ -118,6 +118,8 @@ private BatchMigrateResourcesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -410,6 +412,8 @@ private PartialResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1328,8 +1332,9 @@ public Builder mergeError(com.google.rpc.Status value) { } else { if (resultCase_ == 2) { errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); } - errorBuilder_.setMessage(value); } resultCase_ = 2; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java index ebda24d60..d7173f4df 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java @@ -104,6 +104,8 @@ private BatchMigrateResourcesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java index 033b9f73e..46023f6ea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java @@ -96,6 +96,8 @@ private BatchMigrateResourcesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 0743b1980..ab8735d5c 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 @@ -44,6 +44,7 @@ private BatchPredictionJob() { name_ = ""; displayName_ = ""; model_ = ""; + modelVersionId_ = ""; serviceAccount_ = ""; state_ = 0; partialFailures_ = java.util.Collections.emptyList(); @@ -405,6 +406,13 @@ private BatchPredictionJob( serviceAccount_ = s; break; } + case 242: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelVersionId_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -416,6 +424,8 @@ private BatchPredictionJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -680,6 +690,8 @@ private InputConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1449,8 +1461,9 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource valu } else { if (sourceCase_ == 2) { gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); } - gcsSourceBuilder_.setMessage(value); } sourceCase_ = 2; return this; @@ -1679,8 +1692,9 @@ public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1beta1.BigQueryS } else { if (sourceCase_ == 3) { bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); } - bigquerySourceBuilder_.setMessage(value); } sourceCase_ = 3; return this; @@ -2292,6 +2306,8 @@ private OutputConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3255,8 +3271,9 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestin } else { if (destinationCase_ == 2) { gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); } - gcsDestinationBuilder_.setMessage(value); } destinationCase_ = 2; return this; @@ -3629,8 +3646,9 @@ public Builder mergeBigqueryDestination( } else { if (destinationCase_ == 3) { bigqueryDestinationBuilder_.mergeFrom(value); + } else { + bigqueryDestinationBuilder_.setMessage(value); } - bigqueryDestinationBuilder_.setMessage(value); } destinationCase_ = 3; return this; @@ -4175,6 +4193,8 @@ private OutputInfo( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -5482,6 +5502,55 @@ public com.google.protobuf.ByteString getModelBytes() { } } + public static final int MODEL_VERSION_ID_FIELD_NUMBER = 30; + private volatile java.lang.Object modelVersionId_; + /** + * + * + *
+   * Output only. The version ID of the Model that produces the predictions via this job.
+   * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + @java.lang.Override + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The version ID of the Model that produces the predictions via this job.
+   * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int UNMANAGED_CONTAINER_MODEL_FIELD_NUMBER = 28; private com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel unmanagedContainerModel_; /** @@ -6619,7 +6688,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -6662,7 +6731,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -6683,7 +6752,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -6831,6 +6900,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, serviceAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, modelVersionId_); + } unknownFields.writeTo(output); } @@ -6923,6 +6995,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, serviceAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, modelVersionId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6942,6 +7017,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getModel().equals(other.getModel())) return false; + if (!getModelVersionId().equals(other.getModelVersionId())) return false; if (hasUnmanagedContainerModel() != other.hasUnmanagedContainerModel()) return false; if (hasUnmanagedContainerModel()) { if (!getUnmanagedContainerModel().equals(other.getUnmanagedContainerModel())) return false; @@ -7029,6 +7105,8 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelVersionId().hashCode(); if (hasUnmanagedContainerModel()) { hash = (37 * hash) + UNMANAGED_CONTAINER_MODEL_FIELD_NUMBER; hash = (53 * hash) + getUnmanagedContainerModel().hashCode(); @@ -7284,6 +7362,8 @@ public Builder clear() { model_ = ""; + modelVersionId_ = ""; + if (unmanagedContainerModelBuilder_ == null) { unmanagedContainerModel_ = null; } else { @@ -7424,6 +7504,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob buildPartial() { result.name_ = name_; result.displayName_ = displayName_; result.model_ = model_; + result.modelVersionId_ = modelVersionId_; if (unmanagedContainerModelBuilder_ == null) { result.unmanagedContainerModel_ = unmanagedContainerModel_; } else { @@ -7580,6 +7661,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob model_ = other.model_; onChanged(); } + if (!other.getModelVersionId().isEmpty()) { + modelVersionId_ = other.modelVersionId_; + onChanged(); + } if (other.hasUnmanagedContainerModel()) { mergeUnmanagedContainerModel(other.getUnmanagedContainerModel()); } @@ -8036,6 +8121,112 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object modelVersionId_ = ""; + /** + * + * + *
+     * Output only. The version ID of the Model that produces the predictions via this job.
+     * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the Model that produces the predictions via this job.
+     * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the Model that produces the predictions via this job.
+     * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelVersionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the Model that produces the predictions via this job.
+     * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersionId() { + + modelVersionId_ = getDefaultInstance().getModelVersionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the Model that produces the predictions via this job.
+     * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelVersionId_ = value; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel unmanagedContainerModel_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, @@ -12134,7 +12325,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -12178,7 +12369,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -12199,7 +12390,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -12227,7 +12418,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -12252,11 +12443,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } 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 22ddedd0b..1d8c43cb6 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 @@ -106,6 +106,31 @@ public interface BatchPredictionJobOrBuilder */ com.google.protobuf.ByteString getModelBytes(); + /** + * + * + *
+   * Output only. The version ID of the Model that produces the predictions via this job.
+   * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + java.lang.String getModelVersionId(); + /** + * + * + *
+   * Output only. The version ID of the Model that produces the predictions via this job.
+   * 
+ * + * string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + com.google.protobuf.ByteString getModelVersionIdBytes(); + /** * * @@ -1012,7 +1037,12 @@ public interface BatchPredictionJobOrBuilder * * map<string, string> labels = 19; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java index e36f947e9..c421d56a7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java @@ -58,94 +58,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n:google/cloud/aiplatform/v1beta1/batch_" + "prediction_job.proto\022\037google.cloud.aipla" - + "tform.v1beta1\032\034google/api/annotations.pr" - + "oto\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\0326google/cloud/ai" - + "platform/v1beta1/completion_stats.proto\032" - + "5google/cloud/aiplatform/v1beta1/encrypt" - + "ion_spec.proto\0321google/cloud/aiplatform/" - + "v1beta1/explanation.proto\032(google/cloud/" - + "aiplatform/v1beta1/io.proto\032/google/clou" - + "d/aiplatform/v1beta1/job_state.proto\0327go" - + "ogle/cloud/aiplatform/v1beta1/machine_re" - + "sources.proto\032Dgoogle/cloud/aiplatform/v" - + "1beta1/manual_batch_tuning_parameters.pr" - + "oto\0326google/cloud/aiplatform/v1beta1/mod" - + "el_monitoring.proto\032?google/cloud/aiplat" - + "form/v1beta1/unmanaged_container_model.p" - + "roto\032\034google/protobuf/struct.proto\032\037goog" - + "le/protobuf/timestamp.proto\032\027google/rpc/" - + "status.proto\"\203\022\n\022BatchPredictionJob\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A" - + "\002\0223\n\005model\030\003 \001(\tB$\372A!\n\037aiplatform.google" - + "apis.com/Model\022[\n\031unmanaged_container_mo" - + "del\030\034 \001(\01328.google.cloud.aiplatform.v1be" - + "ta1.UnmanagedContainerModel\022Z\n\014input_con" - + "fig\030\004 \001(\0132?.google.cloud.aiplatform.v1be" - + "ta1.BatchPredictionJob.InputConfigB\003\340A\002\022" - + "0\n\020model_parameters\030\005 \001(\0132\026.google.proto" - + "buf.Value\022\\\n\routput_config\030\006 \001(\0132@.googl" - + "e.cloud.aiplatform.v1beta1.BatchPredicti" - + "onJob.OutputConfigB\003\340A\002\022U\n\023dedicated_res" - + "ources\030\007 \001(\01328.google.cloud.aiplatform.v" - + "1beta1.BatchDedicatedResources\022\027\n\017servic" - + "e_account\030\035 \001(\t\022i\n\036manual_batch_tuning_p" - + "arameters\030\010 \001(\0132<.google.cloud.aiplatfor" - + "m.v1beta1.ManualBatchTuningParametersB\003\340" - + "A\005\022\034\n\024generate_explanation\030\027 \001(\010\022J\n\020expl" - + "anation_spec\030\031 \001(\01320.google.cloud.aiplat" - + "form.v1beta1.ExplanationSpec\022X\n\013output_i" - + "nfo\030\t \001(\0132>.google.cloud.aiplatform.v1be" - + "ta1.BatchPredictionJob.OutputInfoB\003\340A\003\022=" - + "\n\005state\030\n \001(\0162).google.cloud.aiplatform." - + "v1beta1.JobStateB\003\340A\003\022&\n\005error\030\013 \001(\0132\022.g" - + "oogle.rpc.StatusB\003\340A\003\0221\n\020partial_failure" - + "s\030\014 \003(\0132\022.google.rpc.StatusB\003\340A\003\022S\n\022reso" - + "urces_consumed\030\r \001(\01322.google.cloud.aipl" - + "atform.v1beta1.ResourcesConsumedB\003\340A\003\022O\n" - + "\020completion_stats\030\016 \001(\01320.google.cloud.a" - + "iplatform.v1beta1.CompletionStatsB\003\340A\003\0224" - + "\n\013create_time\030\017 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0223\n\nstart_time\030\020 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\021 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\022 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022O\n\006labels\030\023 \003(\0132?.google.clou" - + "d.aiplatform.v1beta1.BatchPredictionJob." - + "LabelsEntry\022H\n\017encryption_spec\030\030 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1beta1.Encryptio" - + "nSpec\032\304\001\n\013InputConfig\022@\n\ngcs_source\030\002 \001(" - + "\0132*.google.cloud.aiplatform.v1beta1.GcsS" - + "ourceH\000\022J\n\017bigquery_source\030\003 \001(\0132/.googl" - + "e.cloud.aiplatform.v1beta1.BigQuerySourc" - + "eH\000\022\035\n\020instances_format\030\001 \001(\tB\003\340A\002B\010\n\006so" - + "urce\032\340\001\n\014OutputConfig\022J\n\017gcs_destination" - + "\030\002 \001(\0132/.google.cloud.aiplatform.v1beta1" - + ".GcsDestinationH\000\022T\n\024bigquery_destinatio" - + "n\030\003 \001(\01324.google.cloud.aiplatform.v1beta" - + "1.BigQueryDestinationH\000\022\037\n\022predictions_f" - + "ormat\030\001 \001(\tB\003\340A\002B\r\n\013destination\032\220\001\n\nOutp" - + "utInfo\022#\n\024gcs_output_directory\030\001 \001(\tB\003\340A" - + "\003H\000\022&\n\027bigquery_output_dataset\030\002 \001(\tB\003\340A" - + "\003H\000\022\"\n\025bigquery_output_table\030\004 \001(\tB\003\340A\003B" - + "\021\n\017output_location\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n,aiplat" - + "form.googleapis.com/BatchPredictionJob\022R" - + "projects/{project}/locations/{location}/" - + "batchPredictionJobs/{batch_prediction_jo" - + "b}B\364\001\n#com.google.cloud.aiplatform.v1bet" - + "a1B\027BatchPredictionJobProtoP\001ZIgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatform\252\002\037Google.Cloud." - + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" - + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" - + "::V1beta1b\006proto3" + + "tform.v1beta1\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\0326googl" + + "e/cloud/aiplatform/v1beta1/completion_st" + + "ats.proto\0325google/cloud/aiplatform/v1bet" + + "a1/encryption_spec.proto\0321google/cloud/a" + + "iplatform/v1beta1/explanation.proto\032(goo" + + "gle/cloud/aiplatform/v1beta1/io.proto\032/g" + + "oogle/cloud/aiplatform/v1beta1/job_state" + + ".proto\0327google/cloud/aiplatform/v1beta1/" + + "machine_resources.proto\032Dgoogle/cloud/ai" + + "platform/v1beta1/manual_batch_tuning_par" + + "ameters.proto\032?google/cloud/aiplatform/v" + + "1beta1/unmanaged_container_model.proto\032\034" + + "google/protobuf/struct.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\027google/rpc/status" + + ".proto\"\242\022\n\022BatchPredictionJob\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0223\n\005m" + + "odel\030\003 \001(\tB$\372A!\n\037aiplatform.googleapis.c" + + "om/Model\022\035\n\020model_version_id\030\036 \001(\tB\003\340A\003\022" + + "[\n\031unmanaged_container_model\030\034 \001(\01328.goo" + + "gle.cloud.aiplatform.v1beta1.UnmanagedCo" + + "ntainerModel\022Z\n\014input_config\030\004 \001(\0132?.goo" + + "gle.cloud.aiplatform.v1beta1.BatchPredic" + + "tionJob.InputConfigB\003\340A\002\0220\n\020model_parame" + + "ters\030\005 \001(\0132\026.google.protobuf.Value\022\\\n\rou" + + "tput_config\030\006 \001(\0132@.google.cloud.aiplatf" + + "orm.v1beta1.BatchPredictionJob.OutputCon" + + "figB\003\340A\002\022U\n\023dedicated_resources\030\007 \001(\01328." + + "google.cloud.aiplatform.v1beta1.BatchDed" + + "icatedResources\022\027\n\017service_account\030\035 \001(\t" + + "\022i\n\036manual_batch_tuning_parameters\030\010 \001(\013" + + "2<.google.cloud.aiplatform.v1beta1.Manua" + + "lBatchTuningParametersB\003\340A\005\022\034\n\024generate_" + + "explanation\030\027 \001(\010\022J\n\020explanation_spec\030\031 " + + "\001(\01320.google.cloud.aiplatform.v1beta1.Ex" + + "planationSpec\022X\n\013output_info\030\t \001(\0132>.goo" + + "gle.cloud.aiplatform.v1beta1.BatchPredic" + + "tionJob.OutputInfoB\003\340A\003\022=\n\005state\030\n \001(\0162)" + + ".google.cloud.aiplatform.v1beta1.JobStat" + + "eB\003\340A\003\022&\n\005error\030\013 \001(\0132\022.google.rpc.Statu" + + "sB\003\340A\003\0221\n\020partial_failures\030\014 \003(\0132\022.googl" + + "e.rpc.StatusB\003\340A\003\022S\n\022resources_consumed\030" + + "\r \001(\01322.google.cloud.aiplatform.v1beta1." + + "ResourcesConsumedB\003\340A\003\022O\n\020completion_sta" + + "ts\030\016 \001(\01320.google.cloud.aiplatform.v1bet" + + "a1.CompletionStatsB\003\340A\003\0224\n\013create_time\030\017" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n" + + "\nstart_time\030\020 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0221\n\010end_time\030\021 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\022 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\006l" + + "abels\030\023 \003(\0132?.google.cloud.aiplatform.v1" + + "beta1.BatchPredictionJob.LabelsEntry\022H\n\017" + + "encryption_spec\030\030 \001(\0132/.google.cloud.aip" + + "latform.v1beta1.EncryptionSpec\032\304\001\n\013Input" + + "Config\022@\n\ngcs_source\030\002 \001(\0132*.google.clou" + + "d.aiplatform.v1beta1.GcsSourceH\000\022J\n\017bigq" + + "uery_source\030\003 \001(\0132/.google.cloud.aiplatf" + + "orm.v1beta1.BigQuerySourceH\000\022\035\n\020instance" + + "s_format\030\001 \001(\tB\003\340A\002B\010\n\006source\032\340\001\n\014Output" + + "Config\022J\n\017gcs_destination\030\002 \001(\0132/.google" + + ".cloud.aiplatform.v1beta1.GcsDestination" + + "H\000\022T\n\024bigquery_destination\030\003 \001(\01324.googl" + + "e.cloud.aiplatform.v1beta1.BigQueryDesti" + + "nationH\000\022\037\n\022predictions_format\030\001 \001(\tB\003\340A" + + "\002B\r\n\013destination\032\220\001\n\nOutputInfo\022#\n\024gcs_o" + + "utput_directory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery" + + "_output_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n\025bigquery" + + "_output_table\030\004 \001(\tB\003\340A\003B\021\n\017output_locat" + + "ion\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n,aiplatform.googleapis" + + ".com/BatchPredictionJob\022Rprojects/{proje" + + "ct}/locations/{location}/batchPrediction" + + "Jobs/{batch_prediction_job}B\364\001\n#com.goog" + + "le.cloud.aiplatform.v1beta1B\027BatchPredic" + + "tionJobProtoP\001ZIgoogle.golang.org/genpro" + + "to/googleapis/cloud/aiplatform/v1beta1;a" + + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.CompletionStatsProto.getDescriptor(), @@ -155,7 +153,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModelProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -170,6 +167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "Model", + "ModelVersionId", "UnmanagedContainerModel", "InputConfig", "ModelParameters", @@ -242,7 +240,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.CompletionStatsProto.getDescriptor(); @@ -252,7 +249,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModelProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java index 05cb36cb2..c66cbfbf3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java @@ -99,6 +99,8 @@ private BatchReadFeatureValuesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java index 2cfdee235..f33dc4447 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java @@ -176,6 +176,8 @@ private BatchReadFeatureValuesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -308,6 +310,8 @@ private PassThroughField( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1142,6 +1146,8 @@ private EntityTypeSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3833,8 +3839,9 @@ public Builder mergeCsvReadInstances(com.google.cloud.aiplatform.v1beta1.CsvSour } else { if (readOptionCase_ == 3) { csvReadInstancesBuilder_.mergeFrom(value); + } else { + csvReadInstancesBuilder_.setMessage(value); } - csvReadInstancesBuilder_.setMessage(value); } readOptionCase_ = 3; return this; @@ -4109,8 +4116,9 @@ public Builder mergeBigqueryReadInstances( } else { if (readOptionCase_ == 5) { bigqueryReadInstancesBuilder_.mergeFrom(value); + } else { + bigqueryReadInstancesBuilder_.setMessage(value); } - bigqueryReadInstancesBuilder_.setMessage(value); } readOptionCase_ = 5; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponse.java index 9d147be34..0b1e72aa1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponse.java @@ -80,6 +80,8 @@ private BatchReadFeatureValuesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java index 7eb84b3fe..493615a5c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java @@ -103,6 +103,8 @@ private BatchReadTensorboardTimeSeriesDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java index df0e1e7b2..b84480f67 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java @@ -98,6 +98,8 @@ private BatchReadTensorboardTimeSeriesDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 35452efd6..bb11384bf 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 @@ -88,6 +88,8 @@ private BigQueryDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java index 8ee6be8bd..f305e7aa8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java @@ -88,6 +88,8 @@ private BigQuerySource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java index 34f0a429d..66b85be71 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java @@ -88,6 +88,8 @@ private BlurBaselineConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -146,7 +148,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxBlurSigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(maxBlurSigma_) != 0) { output.writeFloat(1, maxBlurSigma_); } unknownFields.writeTo(output); @@ -158,7 +160,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maxBlurSigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(maxBlurSigma_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, maxBlurSigma_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java index 4d182f370..7ce88b13a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java @@ -105,6 +105,8 @@ private BoolArray( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java index 1e93681c5..3d1a293a4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java @@ -89,6 +89,8 @@ private CancelBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java index b23ce94d8..337267360 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java @@ -88,6 +88,8 @@ private CancelCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java index 7ec4d3365..0124d5200 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java @@ -88,6 +88,8 @@ private CancelDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java index a8fc6dbf8..706bfa542 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java @@ -90,6 +90,8 @@ private CancelHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java index cb6d11eb7..585057f9f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java @@ -88,6 +88,8 @@ private CancelPipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java index 9eb96fd86..25e25b801 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java @@ -88,6 +88,8 @@ private CancelTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 1766439e0..4f9b91698 100644 --- 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 @@ -118,6 +118,8 @@ private CheckTrialEarlyStoppingStateMetatdata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 96226a0be..775dd2495 100644 --- 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 @@ -90,6 +90,8 @@ private CheckTrialEarlyStoppingStateRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index c67c9c7aa..ff80095e4 100644 --- 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 @@ -86,6 +86,8 @@ private CheckTrialEarlyStoppingStateResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 734f8e2a0..297e23d96 100644 --- 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 @@ -117,6 +117,8 @@ private CompleteTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java index e826b42af..dadba6eee 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java @@ -95,6 +95,8 @@ private CompletionStats( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java index dd1a2af90..2453376c3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java @@ -42,26 +42,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/comple" + "tion_stats.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1\032\034google/api/annotations.proto\032" - + "\037google/api/field_behavior.proto\032\027google" - + "/rpc/status.proto\"j\n\017CompletionStats\022\035\n\020" - + "successful_count\030\001 \001(\003B\003\340A\003\022\031\n\014failed_co" - + "unt\030\002 \001(\003B\003\340A\003\022\035\n\020incomplete_count\030\003 \001(\003" - + "B\003\340A\003B\361\001\n#com.google.cloud.aiplatform.v1" - + "beta1B\024CompletionStatsProtoP\001ZIgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatform\252\002\037Google.Cloud." - + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" - + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" - + "::V1beta1b\006proto3" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "to\"j\n\017CompletionStats\022\035\n\020successful_coun" + + "t\030\001 \001(\003B\003\340A\003\022\031\n\014failed_count\030\002 \001(\003B\003\340A\003\022" + + "\035\n\020incomplete_count\030\003 \001(\003B\003\340A\003B\361\001\n#com.g" + + "oogle.cloud.aiplatform.v1beta1B\024Completi" + + "onStatsProtoP\001ZIgoogle.golang.org/genpro" + + "to/googleapis/cloud/aiplatform/v1beta1;a" + + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_CompletionStats_descriptor = getDescriptor().getMessageTypes().get(0); @@ -76,9 +73,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) 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 d2801479e..399bb5d22 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 @@ -88,6 +88,8 @@ private ContainerRegistryDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java index 85c8deb76..af9bc27bb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java @@ -111,6 +111,8 @@ private ContainerSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java index 4eda87e54..50723b34c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java @@ -197,6 +197,8 @@ private Context( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -427,7 +429,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -472,7 +474,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -494,7 +496,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1809,7 +1811,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1855,7 +1857,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1877,7 +1879,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1906,7 +1908,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1932,11 +1934,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java index ffb6a0552..cee75ab79 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java @@ -164,7 +164,12 @@ public interface ContextOrBuilder * * map<string, string> labels = 9; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java index dfdc205ce..c98e57da6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java @@ -46,42 +46,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/aiplatform/v1beta1/contex" + "t.proto\022\037google.cloud.aiplatform.v1beta1" - + "\032\034google/api/annotations.proto\032\037google/a" - + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\032+google/cloud/aiplatform/v1be" - + "ta1/value.proto\032\034google/protobuf/struct." - + "proto\032\037google/protobuf/timestamp.proto\"\330" - + "\004\n\007Context\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display" - + "_name\030\002 \001(\t\022\014\n\004etag\030\010 \001(\t\022D\n\006labels\030\t \003(" - + "\01324.google.cloud.aiplatform.v1beta1.Cont" - + "ext.LabelsEntry\0224\n\013create_time\030\n \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\013 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022B\n\017parent_contexts\030\014 \003(\tB)\340A\003\372A#\n!ai" - + "platform.googleapis.com/Context\022\024\n\014schem" - + "a_title\030\r \001(\t\022\026\n\016schema_version\030\016 \001(\t\022)\n" - + "\010metadata\030\017 \001(\0132\027.google.protobuf.Struct" - + "\022\023\n\013description\030\020 \001(\t\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n!aipl" - + "atform.googleapis.com/Context\022Zprojects/" - + "{project}/locations/{location}/metadataS" - + "tores/{metadata_store}/contexts/{context" - + "}B\351\001\n#com.google.cloud.aiplatform.v1beta" - + "1B\014ContextProtoP\001ZIgoogle.golang.org/gen" - + "proto/googleapis/cloud/aiplatform/v1beta" - + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" - + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" - + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" - + "roto3" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032\034google/protobuf/st" + + "ruct.proto\032\037google/protobuf/timestamp.pr" + + "oto\"\330\004\n\007Context\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014di" + + "splay_name\030\002 \001(\t\022\014\n\004etag\030\010 \001(\t\022D\n\006labels" + + "\030\t \003(\01324.google.cloud.aiplatform.v1beta1" + + ".Context.LabelsEntry\0224\n\013create_time\030\n \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\013 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022B\n\017parent_contexts\030\014 \003(\tB)\340A\003\372A" + + "#\n!aiplatform.googleapis.com/Context\022\024\n\014" + + "schema_title\030\r \001(\t\022\026\n\016schema_version\030\016 \001" + + "(\t\022)\n\010metadata\030\017 \001(\0132\027.google.protobuf.S" + + "truct\022\023\n\013description\030\020 \001(\t\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n" + + "!aiplatform.googleapis.com/Context\022Zproj" + + "ects/{project}/locations/{location}/meta" + + "dataStores/{metadata_store}/contexts/{co" + + "ntext}B\351\001\n#com.google.cloud.aiplatform.v" + + "1beta1B\014ContextProtoP\001ZIgoogle.golang.or" + + "g/genproto/googleapis/cloud/aiplatform/v" + + "1beta1;aiplatform\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -118,10 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java index 8fe1a607e..22d3ead0e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java @@ -112,6 +112,8 @@ private CreateArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java index dabda4f50..ecc2ec265 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java @@ -106,6 +106,8 @@ private CreateBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java index c32bac371..3a8bb561a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java @@ -112,6 +112,8 @@ private CreateContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java index 499be7351..f29f436c2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java @@ -104,6 +104,8 @@ private CreateCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java index 6b400962e..4c863dbba 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java @@ -105,6 +105,8 @@ private CreateDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java index ba05c919d..27a005279 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java @@ -98,6 +98,8 @@ private CreateDatasetOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java index 5aedfe863..202e460fb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java @@ -104,6 +104,8 @@ private CreateDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java index a0d025f00..fb0acd4b7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java @@ -98,6 +98,8 @@ private CreateEndpointOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java index 55ce61179..40237d94a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java @@ -112,6 +112,8 @@ private CreateEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java index dd90ddac9..5df61c02c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java @@ -98,6 +98,8 @@ private CreateEntityTypeOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java index a47e0a600..aa141c52b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java @@ -112,6 +112,8 @@ private CreateEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java index 1a6843ffd..ffdf844f4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java @@ -112,6 +112,8 @@ private CreateExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java index 8114087b3..6b5fc5c4c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java @@ -98,6 +98,8 @@ private CreateFeatureOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java index 0a531d810..0039c7380 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java @@ -112,6 +112,8 @@ private CreateFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java index 37d93abc4..01a4a4bf3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java @@ -99,6 +99,8 @@ private CreateFeaturestoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java index d9d2fa0d4..39348f3ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java @@ -112,6 +112,8 @@ private CreateFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java index 49c830d1a..08f1637cd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java @@ -107,6 +107,8 @@ private CreateHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java index 4f4e7aac6..5901cedb5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java @@ -100,6 +100,8 @@ private CreateIndexEndpointOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java index 5846842d4..9edbd7fb8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java @@ -105,6 +105,8 @@ private CreateIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java index 1437138b4..35de07e7f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java @@ -116,6 +116,8 @@ private CreateIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java index 3faa5d768..e3ee73e4a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java @@ -104,6 +104,8 @@ private CreateIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java index 16b0f03fa..86b7551ec 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java @@ -113,6 +113,8 @@ private CreateMetadataSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java index b6115a68f..7a5a847bd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java @@ -99,6 +99,8 @@ private CreateMetadataStoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java index 53c3c3108..743866830 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java @@ -113,6 +113,8 @@ private CreateMetadataStoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java index 746929d99..ff9db88ac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java @@ -109,6 +109,8 @@ private CreateModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java index 14c6904b8..da3f4952e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java @@ -112,6 +112,8 @@ private CreatePipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java index dde3e6571..3ce616f3c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java @@ -100,6 +100,8 @@ private CreateSpecialistPoolOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java index ea05a0e31..b5580988a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java @@ -105,6 +105,8 @@ private CreateSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index be8d71ded..1b7f1b43a 100644 --- 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 @@ -104,6 +104,8 @@ private CreateStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java index cc5ab9f46..063b0bb33 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java @@ -114,6 +114,8 @@ private CreateTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java index 3d5a78946..d45820ba4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java @@ -98,6 +98,8 @@ private CreateTensorboardOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java index 5a7bab732..c978c4727 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java @@ -104,6 +104,8 @@ private CreateTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java index a6725e2d4..5288cf7e6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java @@ -113,6 +113,8 @@ private CreateTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java index 7b6e3b5d5..8e33e825a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java @@ -114,6 +114,8 @@ private CreateTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java index 5a4404765..0c3c9ed5f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java @@ -105,6 +105,8 @@ private CreateTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 345f202e3..b5ac63c10 100644 --- 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 @@ -104,6 +104,8 @@ private CreateTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java index 437baeadf..3f350a34c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java @@ -96,6 +96,8 @@ private CsvDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java index d756ac74d..7bba37b06 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java @@ -95,6 +95,8 @@ private CsvSource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java index ca34c9b19..379097746 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java @@ -246,6 +246,8 @@ private CustomJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -770,7 +772,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -813,7 +815,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -834,7 +836,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -946,7 +948,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -1002,7 +1004,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1029,7 +1031,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -3199,7 +3201,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3243,7 +3245,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3264,7 +3266,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3292,7 +3294,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -3317,11 +3319,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -3598,7 +3601,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -3654,7 +3657,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3681,7 +3684,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -3715,7 +3718,7 @@ public Builder clearWebAccessUris() { */ public Builder removeWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableWebAccessUris().getMutableMap().remove(key); return this; @@ -3746,11 +3749,12 @@ public java.util.Map getMutableWebAccessUris */ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableWebAccessUris().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java index a8aa1c602..752f1e8ee 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java @@ -401,7 +401,12 @@ public interface CustomJobOrBuilder * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -540,7 +545,12 @@ public interface CustomJobOrBuilder * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
*/ - java.lang.String getWebAccessUrisOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index b77b64559..d7c6756d1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -70,82 +70,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n0google/cloud/aiplatform/v1beta1/custom" + "_job.proto\022\037google.cloud.aiplatform.v1be" - + "ta1\032\034google/api/annotations.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\0325google/cloud/aiplatform/v" - + "1beta1/encryption_spec.proto\032-google/clo" - + "ud/aiplatform/v1beta1/env_var.proto\032(goo" - + "gle/cloud/aiplatform/v1beta1/io.proto\032/g" - + "oogle/cloud/aiplatform/v1beta1/job_state" - + ".proto\0327google/cloud/aiplatform/v1beta1/" - + "machine_resources.proto\032\036google/protobuf" - + "/duration.proto\032\037google/protobuf/timesta" - + "mp.proto\032\027google/rpc/status.proto\"\372\006\n\tCu" - + "stomJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_na" - + "me\030\002 \001(\tB\003\340A\002\022E\n\010job_spec\030\004 \001(\0132..google" - + ".cloud.aiplatform.v1beta1.CustomJobSpecB" - + "\003\340A\002\022=\n\005state\030\005 \001(\0162).google.cloud.aipla" - + "tform.v1beta1.JobStateB\003\340A\003\0224\n\013create_ti" - + "me\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0223\n\nstart_time\030\007 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "&\n\005error\030\n \001(\0132\022.google.rpc.StatusB\003\340A\003\022" - + "F\n\006labels\030\013 \003(\01326.google.cloud.aiplatfor" - + "m.v1beta1.CustomJob.LabelsEntry\022H\n\017encry" - + "ption_spec\030\014 \001(\0132/.google.cloud.aiplatfo" - + "rm.v1beta1.EncryptionSpec\022[\n\017web_access_" - + "uris\030\020 \003(\0132=.google.cloud.aiplatform.v1b" - + "eta1.CustomJob.WebAccessUrisEntryB\003\340A\003\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\0324\n\022WebAccessUrisEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aiplatform.goo" - + "gleapis.com/CustomJob\022?projects/{project" - + "}/locations/{location}/customJobs/{custo" - + "m_job}\"\244\003\n\rCustomJobSpec\022O\n\021worker_pool_" - + "specs\030\001 \003(\0132/.google.cloud.aiplatform.v1" - + "beta1.WorkerPoolSpecB\003\340A\002\022?\n\nscheduling\030" - + "\003 \001(\0132+.google.cloud.aiplatform.v1beta1." - + "Scheduling\022\027\n\017service_account\030\004 \001(\t\0224\n\007n" - + "etwork\030\005 \001(\tB#\372A \n\036compute.googleapis.co" - + "m/Network\022N\n\025base_output_directory\030\006 \001(\013" - + "2/.google.cloud.aiplatform.v1beta1.GcsDe" - + "stination\022B\n\013tensorboard\030\007 \001(\tB-\340A\001\372A\'\n%" - + "aiplatform.googleapis.com/Tensorboard\022\036\n" - + "\021enable_web_access\030\n \001(\010B\003\340A\001\"\333\002\n\016Worker" - + "PoolSpec\022H\n\016container_spec\030\006 \001(\0132..googl" - + "e.cloud.aiplatform.v1beta1.ContainerSpec" - + "H\000\022Q\n\023python_package_spec\030\007 \001(\01322.google" - + ".cloud.aiplatform.v1beta1.PythonPackageS" - + "pecH\000\022J\n\014machine_spec\030\001 \001(\0132,.google.clo" - + "ud.aiplatform.v1beta1.MachineSpecB\006\340A\001\340A" - + "\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022<\n\tdisk_sp" - + "ec\030\005 \001(\0132).google.cloud.aiplatform.v1bet" - + "a1.DiskSpecB\006\n\004task\"F\n\rContainerSpec\022\026\n\t" - + "image_uri\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n" - + "\004args\030\003 \003(\t\"y\n\021PythonPackageSpec\022\037\n\022exec" - + "utor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014package_uri" - + "s\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001(\tB\003\340A\002" - + "\022\014\n\004args\030\004 \003(\t\"_\n\nScheduling\022*\n\007timeout\030" - + "\001 \001(\0132\031.google.protobuf.Duration\022%\n\035rest" - + "art_job_on_worker_restart\030\003 \001(\010B\353\001\n#com." - + "google.cloud.aiplatform.v1beta1B\016CustomJ" - + "obProtoP\001ZIgoogle.golang.org/genproto/go" - + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + "ta1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\0325google/cloud/ai" + + "platform/v1beta1/encryption_spec.proto\032(" + + "google/cloud/aiplatform/v1beta1/io.proto" + + "\032/google/cloud/aiplatform/v1beta1/job_st" + + "ate.proto\0327google/cloud/aiplatform/v1bet" + + "a1/machine_resources.proto\032\036google/proto" + + "buf/duration.proto\032\037google/protobuf/time" + + "stamp.proto\032\027google/rpc/status.proto\"\372\006\n" + + "\tCustomJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display" + + "_name\030\002 \001(\tB\003\340A\002\022E\n\010job_spec\030\004 \001(\0132..goo" + + "gle.cloud.aiplatform.v1beta1.CustomJobSp" + + "ecB\003\340A\002\022=\n\005state\030\005 \001(\0162).google.cloud.ai" + + "platform.v1beta1.JobStateB\003\340A\003\0224\n\013create" + + "_time\030\006 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022&\n\005error\030\n \001(\0132\022.google.rpc.StatusB\003\340" + + "A\003\022F\n\006labels\030\013 \003(\01326.google.cloud.aiplat" + + "form.v1beta1.CustomJob.LabelsEntry\022H\n\017en" + + "cryption_spec\030\014 \001(\0132/.google.cloud.aipla" + + "tform.v1beta1.EncryptionSpec\022[\n\017web_acce" + + "ss_uris\030\020 \003(\0132=.google.cloud.aiplatform." + + "v1beta1.CustomJob.WebAccessUrisEntryB\003\340A" + + "\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\0324\n\022WebAccessUrisEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aiplatform." + + "googleapis.com/CustomJob\022?projects/{proj" + + "ect}/locations/{location}/customJobs/{cu" + + "stom_job}\"\305\003\n\rCustomJobSpec\022O\n\021worker_po" + + "ol_specs\030\001 \003(\0132/.google.cloud.aiplatform" + + ".v1beta1.WorkerPoolSpecB\003\340A\002\022?\n\nscheduli" + + "ng\030\003 \001(\0132+.google.cloud.aiplatform.v1bet" + + "a1.Scheduling\022\027\n\017service_account\030\004 \001(\t\0224" + + "\n\007network\030\005 \001(\tB#\372A \n\036compute.googleapis" + + ".com/Network\022\037\n\022reserved_ip_ranges\030\r \003(\t" + + "B\003\340A\001\022N\n\025base_output_directory\030\006 \001(\0132/.g" + + "oogle.cloud.aiplatform.v1beta1.GcsDestin" + + "ation\022B\n\013tensorboard\030\007 \001(\tB-\340A\001\372A\'\n%aipl" + + "atform.googleapis.com/Tensorboard\022\036\n\021ena" + + "ble_web_access\030\n \001(\010B\003\340A\001\"\237\003\n\016WorkerPool" + + "Spec\022H\n\016container_spec\030\006 \001(\0132..google.cl" + + "oud.aiplatform.v1beta1.ContainerSpecH\000\022Q" + + "\n\023python_package_spec\030\007 \001(\01322.google.clo" + + "ud.aiplatform.v1beta1.PythonPackageSpecH" + + "\000\022J\n\014machine_spec\030\001 \001(\0132,.google.cloud.a" + + "iplatform.v1beta1.MachineSpecB\006\340A\001\340A\005\022\032\n" + + "\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nnfs_mounts\030" + + "\004 \003(\0132).google.cloud.aiplatform.v1beta1." + + "NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001(\0132).googl" + + "e.cloud.aiplatform.v1beta1.DiskSpecB\006\n\004t" + + "ask\"F\n\rContainerSpec\022\026\n\timage_uri\030\001 \001(\tB" + + "\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\"y\n\021P" + + "ythonPackageSpec\022\037\n\022executor_image_uri\030\001" + + " \001(\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\r" + + "python_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\"_" + + "\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.google.p" + + "rotobuf.Duration\022%\n\035restart_job_on_worke" + + "r_restart\030\003 \001(\010B\353\001\n#com.google.cloud.aip" + + "latform.v1beta1B\016CustomJobProtoP\001ZIgoogl" + + "e.golang.org/genproto/googleapis/cloud/a" + + "iplatform/v1beta1;aiplatform\252\002\037Google.Cl" + + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" + + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" + + "form::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.EnvVarProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), @@ -202,6 +201,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scheduling", "ServiceAccount", "Network", + "ReservedIpRanges", "BaseOutputDirectory", "Tensorboard", "EnableWebAccess", @@ -216,6 +216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PythonPackageSpec", "MachineSpec", "ReplicaCount", + "NfsMounts", "DiskSpec", "Task", }); @@ -250,11 +251,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.EnvVarProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); diff --git a/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 951628650..691cfb2ad 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 @@ -42,6 +42,7 @@ private CustomJobSpec() { workerPoolSpecs_ = java.util.Collections.emptyList(); serviceAccount_ = ""; network_ = ""; + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; tensorboard_ = ""; } @@ -147,6 +148,16 @@ private CustomJobSpec( enableWebAccess_ = input.readBool(); break; } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + reservedIpRanges_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -158,12 +169,17 @@ private CustomJobSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { workerPoolSpecs_ = java.util.Collections.unmodifiableList(workerPoolSpecs_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -449,6 +465,87 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } + public static final int RESERVED_IP_RANGES_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList reservedIpRanges_; + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the reservedIpRanges. + */ + public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { + return reservedIpRanges_; + } + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of reservedIpRanges. + */ + public int getReservedIpRangesCount() { + return reservedIpRanges_.size(); + } + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + public java.lang.String getReservedIpRanges(int index) { + return reservedIpRanges_.get(index); + } + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { + return reservedIpRanges_.getByteString(index); + } + public static final int BASE_OUTPUT_DIRECTORY_FIELD_NUMBER = 6; private com.google.cloud.aiplatform.v1beta1.GcsDestination baseOutputDirectory_; /** @@ -660,6 +757,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableWebAccess_ != false) { output.writeBool(10, enableWebAccess_); } + for (int i = 0; i < reservedIpRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, reservedIpRanges_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -690,6 +790,14 @@ public int getSerializedSize() { if (enableWebAccess_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableWebAccess_); } + { + int dataSize = 0; + for (int i = 0; i < reservedIpRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(reservedIpRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getReservedIpRangesList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -713,6 +821,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getNetwork().equals(other.getNetwork())) return false; + if (!getReservedIpRangesList().equals(other.getReservedIpRangesList())) return false; if (hasBaseOutputDirectory() != other.hasBaseOutputDirectory()) return false; if (hasBaseOutputDirectory()) { if (!getBaseOutputDirectory().equals(other.getBaseOutputDirectory())) return false; @@ -742,6 +851,10 @@ public int hashCode() { hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + if (getReservedIpRangesCount() > 0) { + hash = (37 * hash) + RESERVED_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getReservedIpRangesList().hashCode(); + } if (hasBaseOutputDirectory()) { hash = (37 * hash) + BASE_OUTPUT_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getBaseOutputDirectory().hashCode(); @@ -914,6 +1027,8 @@ public Builder clear() { network_ = ""; + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); if (baseOutputDirectoryBuilder_ == null) { baseOutputDirectory_ = null; } else { @@ -968,6 +1083,11 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec buildPartial() { } result.serviceAccount_ = serviceAccount_; result.network_ = network_; + if (((bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.reservedIpRanges_ = reservedIpRanges_; if (baseOutputDirectoryBuilder_ == null) { result.baseOutputDirectory_ = baseOutputDirectory_; } else { @@ -1063,6 +1183,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other network_ = other.network_; onChanged(); } + if (!other.reservedIpRanges_.isEmpty()) { + if (reservedIpRanges_.isEmpty()) { + reservedIpRanges_ = other.reservedIpRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.addAll(other.reservedIpRanges_); + } + onChanged(); + } if (other.hasBaseOutputDirectory()) { mergeBaseOutputDirectory(other.getBaseOutputDirectory()); } @@ -2007,6 +2137,228 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList reservedIpRanges_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureReservedIpRangesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reservedIpRanges. + */ + public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { + return reservedIpRanges_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reservedIpRanges. + */ + public int getReservedIpRangesCount() { + return reservedIpRanges_.size(); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + public java.lang.String getReservedIpRanges(int index) { + return reservedIpRanges_.get(index); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { + return reservedIpRanges_.getByteString(index); + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The reservedIpRanges to set. + * @return This builder for chaining. + */ + public Builder setReservedIpRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addReservedIpRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addAllReservedIpRanges(java.lang.Iterable values) { + ensureReservedIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservedIpRanges_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReservedIpRanges() { + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * that can be used for this job.
+     * If set, we will deploy the job within the provided ip ranges. Otherwise,
+     * the job will be deployed to any ip ranges under the provided VPC
+     * network.
+     * Example: ['vertex-ai-ip-range'].
+     * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.add(value); + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1beta1.GcsDestination baseOutputDirectory_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, 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 31e1aa844..6017548b6 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 @@ -209,6 +209,77 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr */ com.google.protobuf.ByteString getNetworkBytes(); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the reservedIpRanges. + */ + java.util.List getReservedIpRangesList(); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of reservedIpRanges. + */ + int getReservedIpRangesCount(); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + java.lang.String getReservedIpRanges(int index); + /** + * + * + *
+   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * that can be used for this job.
+   * If set, we will deploy the job within the provided ip ranges. Otherwise,
+   * the job will be deployed to any ip ranges under the provided VPC
+   * network.
+   * Example: ['vertex-ai-ip-range'].
+   * 
+ * + * repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + com.google.protobuf.ByteString getReservedIpRangesBytes(int index); + /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java index 7710e3875..a08ed666e 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 @@ -155,6 +155,8 @@ private DataItem( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -381,7 +383,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -432,7 +434,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -457,7 +459,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1583,7 +1585,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1635,7 +1637,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1660,7 +1662,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1692,7 +1694,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1721,11 +1723,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } 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 d649c854b..ba0f4c291 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 @@ -198,7 +198,12 @@ public interface DataItemOrBuilder * * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java index f6a956fc9..b5414ce9f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java @@ -46,34 +46,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/aiplatform/v1beta1/data_i" + "tem.proto\022\037google.cloud.aiplatform.v1bet" - + "a1\032\034google/api/annotations.proto\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032\034google/protobuf/struct.pro" - + "to\032\037google/protobuf/timestamp.proto\"\300\003\n\010" - + "DataItem\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_ti" - + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022J\n\006labels\030\003 \003(\01325.google" - + ".cloud.aiplatform.v1beta1.DataItem.Label" - + "sEntryB\003\340A\001\022,\n\007payload\030\004 \001(\0132\026.google.pr" - + "otobuf.ValueB\003\340A\002\022\021\n\004etag\030\007 \001(\tB\003\340A\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001:y\352Av\n\"aiplatform.googleapis.com/Data" - + "Item\022Pprojects/{project}/locations/{loca" - + "tion}/datasets/{dataset}/dataItems/{data" - + "_item}B\352\001\n#com.google.cloud.aiplatform.v" - + "1beta1B\rDataItemProtoP\001ZIgoogle.golang.o" - + "rg/genproto/googleapis/cloud/aiplatform/" - + "v1beta1;aiplatform\252\002\037Google.Cloud.AIPlat" - + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" - + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" - + "ta1b\006proto3" + + "a1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\034google/protobuf/" + + "struct.proto\032\037google/protobuf/timestamp." + + "proto\"\300\003\n\010DataItem\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022J\n\006labels\030\003 \003(" + + "\01325.google.cloud.aiplatform.v1beta1.Data" + + "Item.LabelsEntryB\003\340A\001\022,\n\007payload\030\004 \001(\0132\026" + + ".google.protobuf.ValueB\003\340A\002\022\021\n\004etag\030\007 \001(" + + "\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:y\352Av\n\"aiplatform.googleapi" + + "s.com/DataItem\022Pprojects/{project}/locat" + + "ions/{location}/datasets/{dataset}/dataI" + + "tems/{data_item}B\352\001\n#com.google.cloud.ai" + + "platform.v1beta1B\rDataItemProtoP\001ZIgoogl" + + "e.golang.org/genproto/googleapis/cloud/a" + + "iplatform/v1beta1;aiplatform\252\002\037Google.Cl" + + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" + + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" + + "form::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -101,7 +99,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); 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 b3f6946c5..d01d2bb1e 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 @@ -290,6 +290,8 @@ private DataLabelingJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -562,7 +564,7 @@ public int getAnnotationLabelsCount() { @java.lang.Override public boolean containsAnnotationLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotationLabels().getMap().containsKey(key); } @@ -610,7 +612,7 @@ public java.util.Map getAnnotationLabelsMap( public java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -633,7 +635,7 @@ public java.lang.String getAnnotationLabelsOrDefault( @java.lang.Override public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); if (!map.containsKey(key)) { @@ -1119,7 +1121,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1170,7 +1172,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1195,7 +1197,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2608,7 +2610,7 @@ public int getAnnotationLabelsCount() { @java.lang.Override public boolean containsAnnotationLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAnnotationLabels().getMap().containsKey(key); } @@ -2656,7 +2658,7 @@ public java.util.Map getAnnotationLabelsMap( public java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); @@ -2680,7 +2682,7 @@ public java.lang.String getAnnotationLabelsOrDefault( @java.lang.Override public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationLabels().getMap(); @@ -2711,7 +2713,7 @@ public Builder clearAnnotationLabels() { */ public Builder removeAnnotationLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAnnotationLabels().getMutableMap().remove(key); return this; @@ -2738,11 +2740,12 @@ public java.util.Map getMutableAnnotationLab */ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAnnotationLabels().getMutableMap().put(key, value); return this; } @@ -4216,7 +4219,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -4268,7 +4271,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4293,7 +4296,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4325,7 +4328,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4354,11 +4357,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } 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 d65cafe29..bd7ca7f60 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 @@ -216,8 +216,12 @@ public interface DataLabelingJobOrBuilder * * map<string, string> annotation_labels = 12; */ + + /* nullable */ java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue); + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -617,7 +621,12 @@ java.lang.String getAnnotationLabelsOrDefault( * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java index 55817d340..56d62de38 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java @@ -62,80 +62,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n7google/cloud/aiplatform/v1beta1/data_l" + "abeling_job.proto\022\037google.cloud.aiplatfo" - + "rm.v1beta1\032\034google/api/annotations.proto" - + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\0326google/cloud/aipla" - + "tform/v1beta1/accelerator_type.proto\0325go" - + "ogle/cloud/aiplatform/v1beta1/encryption" - + "_spec.proto\032/google/cloud/aiplatform/v1b" - + "eta1/job_state.proto\0325google/cloud/aipla" - + "tform/v1beta1/specialist_pool.proto\032\034goo" - + "gle/protobuf/struct.proto\032\037google/protob" - + "uf/timestamp.proto\032\027google/rpc/status.pr" - + "oto\032\027google/type/money.proto\"\370\010\n\017DataLab" - + "elingJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_n" - + "ame\030\002 \001(\tB\003\340A\002\022;\n\010datasets\030\003 \003(\tB)\340A\002\372A#" - + "\n!aiplatform.googleapis.com/Dataset\022a\n\021a" - + "nnotation_labels\030\014 \003(\0132F.google.cloud.ai" - + "platform.v1beta1.DataLabelingJob.Annotat" - + "ionLabelsEntry\022\032\n\rlabeler_count\030\004 \001(\005B\003\340" - + "A\002\022\034\n\017instruction_uri\030\005 \001(\tB\003\340A\002\022\036\n\021inpu" - + "ts_schema_uri\030\006 \001(\tB\003\340A\002\022+\n\006inputs\030\007 \001(\013" - + "2\026.google.protobuf.ValueB\003\340A\002\022=\n\005state\030\010" - + " \001(\0162).google.cloud.aiplatform.v1beta1.J" - + "obStateB\003\340A\003\022\036\n\021labeling_progress\030\r \001(\005B" - + "\003\340A\003\022.\n\rcurrent_spend\030\016 \001(\0132\022.google.typ" - + "e.MoneyB\003\340A\003\0224\n\013create_time\030\t \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022&\n\005error\030\026 \001(\0132\022.google.rpc.StatusB\003\340A\003" - + "\022L\n\006labels\030\013 \003(\0132<.google.cloud.aiplatfo" - + "rm.v1beta1.DataLabelingJob.LabelsEntry\022\030" - + "\n\020specialist_pools\030\020 \003(\t\022H\n\017encryption_s" - + "pec\030\024 \001(\0132/.google.cloud.aiplatform.v1be" - + "ta1.EncryptionSpec\022U\n\026active_learning_co" - + "nfig\030\025 \001(\01325.google.cloud.aiplatform.v1b" - + "eta1.ActiveLearningConfig\0327\n\025AnnotationL" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001:|\352Ay\n)aiplatform.googleapis.co" - + "m/DataLabelingJob\022Lprojects/{project}/lo" - + "cations/{location}/dataLabelingJobs/{dat" - + "a_labeling_job}\"\202\002\n\024ActiveLearningConfig" - + "\022\035\n\023max_data_item_count\030\001 \001(\003H\000\022\"\n\030max_d" - + "ata_item_percentage\030\002 \001(\005H\000\022D\n\rsample_co" - + "nfig\030\003 \001(\0132-.google.cloud.aiplatform.v1b" - + "eta1.SampleConfig\022H\n\017training_config\030\004 \001" - + "(\0132/.google.cloud.aiplatform.v1beta1.Tra" - + "iningConfigB\027\n\025human_labeling_budget\"\275\002\n" - + "\014SampleConfig\022)\n\037initial_batch_sample_pe" - + "rcentage\030\001 \001(\005H\000\022+\n!following_batch_samp" - + "le_percentage\030\003 \001(\005H\001\022U\n\017sample_strategy" - + "\030\005 \001(\0162<.google.cloud.aiplatform.v1beta1" - + ".SampleConfig.SampleStrategy\"B\n\016SampleSt" - + "rategy\022\037\n\033SAMPLE_STRATEGY_UNSPECIFIED\020\000\022" - + "\017\n\013UNCERTAINTY\020\001B\033\n\031initial_batch_sample" - + "_sizeB\035\n\033following_batch_sample_size\"6\n\016" - + "TrainingConfig\022$\n\034timeout_training_milli" - + "_hours\030\001 \001(\003B\361\001\n#com.google.cloud.aiplat" - + "form.v1beta1B\024DataLabelingJobProtoP\001ZIgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" - + "latform::V1beta1b\006proto3" + + "rm.v1beta1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\0325google/c" + + "loud/aiplatform/v1beta1/encryption_spec." + + "proto\032/google/cloud/aiplatform/v1beta1/j" + + "ob_state.proto\032\034google/protobuf/struct.p" + + "roto\032\037google/protobuf/timestamp.proto\032\027g" + + "oogle/rpc/status.proto\032\027google/type/mone" + + "y.proto\"\370\010\n\017DataLabelingJob\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022;\n\010dat" + + "asets\030\003 \003(\tB)\340A\002\372A#\n!aiplatform.googleap" + + "is.com/Dataset\022a\n\021annotation_labels\030\014 \003(" + + "\0132F.google.cloud.aiplatform.v1beta1.Data" + + "LabelingJob.AnnotationLabelsEntry\022\032\n\rlab" + + "eler_count\030\004 \001(\005B\003\340A\002\022\034\n\017instruction_uri" + + "\030\005 \001(\tB\003\340A\002\022\036\n\021inputs_schema_uri\030\006 \001(\tB\003" + + "\340A\002\022+\n\006inputs\030\007 \001(\0132\026.google.protobuf.Va" + + "lueB\003\340A\002\022=\n\005state\030\010 \001(\0162).google.cloud.a" + + "iplatform.v1beta1.JobStateB\003\340A\003\022\036\n\021label" + + "ing_progress\030\r \001(\005B\003\340A\003\022.\n\rcurrent_spend" + + "\030\016 \001(\0132\022.google.type.MoneyB\003\340A\003\0224\n\013creat" + + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022&\n\005error\030\026 \001(\0132\022.goo" + + "gle.rpc.StatusB\003\340A\003\022L\n\006labels\030\013 \003(\0132<.go" + + "ogle.cloud.aiplatform.v1beta1.DataLabeli" + + "ngJob.LabelsEntry\022\030\n\020specialist_pools\030\020 " + + "\003(\t\022H\n\017encryption_spec\030\024 \001(\0132/.google.cl" + + "oud.aiplatform.v1beta1.EncryptionSpec\022U\n" + + "\026active_learning_config\030\025 \001(\01325.google.c" + + "loud.aiplatform.v1beta1.ActiveLearningCo" + + "nfig\0327\n\025AnnotationLabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:|\352Ay\n)aipla" + + "tform.googleapis.com/DataLabelingJob\022Lpr" + + "ojects/{project}/locations/{location}/da" + + "taLabelingJobs/{data_labeling_job}\"\202\002\n\024A" + + "ctiveLearningConfig\022\035\n\023max_data_item_cou" + + "nt\030\001 \001(\003H\000\022\"\n\030max_data_item_percentage\030\002" + + " \001(\005H\000\022D\n\rsample_config\030\003 \001(\0132-.google.c" + + "loud.aiplatform.v1beta1.SampleConfig\022H\n\017" + + "training_config\030\004 \001(\0132/.google.cloud.aip" + + "latform.v1beta1.TrainingConfigB\027\n\025human_" + + "labeling_budget\"\275\002\n\014SampleConfig\022)\n\037init" + + "ial_batch_sample_percentage\030\001 \001(\005H\000\022+\n!f" + + "ollowing_batch_sample_percentage\030\003 \001(\005H\001" + + "\022U\n\017sample_strategy\030\005 \001(\0162<.google.cloud" + + ".aiplatform.v1beta1.SampleConfig.SampleS" + + "trategy\"B\n\016SampleStrategy\022\037\n\033SAMPLE_STRA" + + "TEGY_UNSPECIFIED\020\000\022\017\n\013UNCERTAINTY\020\001B\033\n\031i" + + "nitial_batch_sample_sizeB\035\n\033following_ba" + + "tch_sample_size\"6\n\016TrainingConfig\022$\n\034tim" + + "eout_training_milli_hours\030\001 \001(\003B\361\001\n#com." + + "google.cloud.aiplatform.v1beta1B\024DataLab" + + "elingJobProtoP\001ZIgoogle.golang.org/genpr" + + "oto/googleapis/cloud/aiplatform/v1beta1;" + + "aiplatform\252\002\037Google.Cloud.AIPlatform.V1B" + + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002" + + "\"Google::Cloud::AIPlatform::V1beta1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.AcceleratorTypeProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.SpecialistPoolProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -225,13 +219,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.AcceleratorTypeProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.SpecialistPoolProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java index 8d35c29f9..6f9836b6d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java @@ -195,6 +195,8 @@ private Dataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -679,7 +681,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -734,7 +736,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -761,7 +763,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2550,7 +2552,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2606,7 +2608,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2633,7 +2635,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2667,7 +2669,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2698,11 +2700,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java index ef5b9ca05..23528e09b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java @@ -355,7 +355,12 @@ public interface DatasetOrBuilder * * map<string, string> labels = 7; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java index a270e0dca..082715100 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java @@ -58,50 +58,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/aiplatform/v1beta1/datase" + "t.proto\022\037google.cloud.aiplatform.v1beta1" - + "\032\034google/api/annotations.proto\032\037google/a" - + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\0325google/cloud/aiplatform/v1be" - + "ta1/encryption_spec.proto\032(google/cloud/" - + "aiplatform/v1beta1/io.proto\032\034google/prot" - + "obuf/struct.proto\032\037google/protobuf/times" - + "tamp.proto\"\277\004\n\007Dataset\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n\013descript" - + "ion\030\020 \001(\tB\003\340A\001\022 \n\023metadata_schema_uri\030\003 " - + "\001(\tB\003\340A\002\022-\n\010metadata\030\010 \001(\0132\026.google.prot" - + "obuf.ValueB\003\340A\002\0224\n\013create_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022\014\n\004etag\030\006 \001(\t\022D\n\006labels\030\007 \003(\01324.goog" - + "le.cloud.aiplatform.v1beta1.Dataset.Labe" - + "lsEntry\022H\n\017encryption_spec\030\013 \001(\0132/.googl" - + "e.cloud.aiplatform.v1beta1.EncryptionSpe" - + "c\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:b\352A_\n!aiplatform.googleapis.com" - + "/Dataset\022:projects/{project}/locations/{" - + "location}/datasets/{dataset}\"\226\002\n\020ImportD" - + "ataConfig\022@\n\ngcs_source\030\001 \001(\0132*.google.c" - + "loud.aiplatform.v1beta1.GcsSourceH\000\022_\n\020d" - + "ata_item_labels\030\002 \003(\0132E.google.cloud.aip" - + "latform.v1beta1.ImportDataConfig.DataIte" - + "mLabelsEntry\022\036\n\021import_schema_uri\030\004 \001(\tB" - + "\003\340A\002\0325\n\023DataItemLabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"\211\001\n\020Export" - + "DataConfig\022J\n\017gcs_destination\030\001 \001(\0132/.go" - + "ogle.cloud.aiplatform.v1beta1.GcsDestina" - + "tionH\000\022\032\n\022annotations_filter\030\002 \001(\tB\r\n\013de" - + "stinationB\351\001\n#com.google.cloud.aiplatfor" - + "m.v1beta1B\014DatasetProtoP\001ZIgoogle.golang" - + ".org/genproto/googleapis/cloud/aiplatfor" - + "m/v1beta1;aiplatform\252\002\037Google.Cloud.AIPl" - + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" - + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" - + "beta1b\006proto3" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0325google/cloud/aipla" + + "tform/v1beta1/encryption_spec.proto\032(goo" + + "gle/cloud/aiplatform/v1beta1/io.proto\032\034g" + + "oogle/protobuf/struct.proto\032\037google/prot" + + "obuf/timestamp.proto\"\277\004\n\007Dataset\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030" + + "\n\013description\030\020 \001(\tB\003\340A\001\022 \n\023metadata_sch" + + "ema_uri\030\003 \001(\tB\003\340A\002\022-\n\010metadata\030\010 \001(\0132\026.g" + + "oogle.protobuf.ValueB\003\340A\002\0224\n\013create_time" + + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\014\n\004etag\030\006 \001(\t\022D\n\006labels\030\007 " + + "\003(\01324.google.cloud.aiplatform.v1beta1.Da" + + "taset.LabelsEntry\022H\n\017encryption_spec\030\013 \001" + + "(\0132/.google.cloud.aiplatform.v1beta1.Enc" + + "ryptionSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:b\352A_\n!aiplatform.goog" + + "leapis.com/Dataset\022:projects/{project}/l" + + "ocations/{location}/datasets/{dataset}\"\226" + + "\002\n\020ImportDataConfig\022@\n\ngcs_source\030\001 \001(\0132" + + "*.google.cloud.aiplatform.v1beta1.GcsSou" + + "rceH\000\022_\n\020data_item_labels\030\002 \003(\0132E.google" + + ".cloud.aiplatform.v1beta1.ImportDataConf" + + "ig.DataItemLabelsEntry\022\036\n\021import_schema_" + + "uri\030\004 \001(\tB\003\340A\002\0325\n\023DataItemLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"" + + "\211\001\n\020ExportDataConfig\022J\n\017gcs_destination\030" + + "\001 \001(\0132/.google.cloud.aiplatform.v1beta1." + + "GcsDestinationH\000\022\032\n\022annotations_filter\030\002" + + " \001(\tB\r\n\013destinationB\351\001\n#com.google.cloud" + + ".aiplatform.v1beta1B\014DatasetProtoP\001ZIgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1beta1;aiplatform\252\002\037Google." + + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\" + + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl" + + "atform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), @@ -166,7 +164,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java index a1d3a177f..c8ca462a9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java @@ -119,132 +119,131 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud/aiplatform/v1beta1/data_item.proto\032-g" + "oogle/cloud/aiplatform/v1beta1/dataset.p" + "roto\032/google/cloud/aiplatform/v1beta1/op" - + "eration.proto\0327google/cloud/aiplatform/v" - + "1beta1/training_pipeline.proto\032#google/l" - + "ongrunning/operations.proto\032 google/prot" - + "obuf/field_mask.proto\"\221\001\n\024CreateDatasetR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/Location\022>\n\007dataset\030\002 \001" - + "(\0132(.google.cloud.aiplatform.v1beta1.Dat" - + "asetB\003\340A\002\"u\n\036CreateDatasetOperationMetad" - + "ata\022S\n\020generic_metadata\030\001 \001(\01329.google.c" - + "loud.aiplatform.v1beta1.GenericOperation" - + "Metadata\"{\n\021GetDatasetRequest\0227\n\004name\030\001 " - + "\001(\tB)\340A\002\372A#\n!aiplatform.googleapis.com/D" - + "ataset\022-\n\tread_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"\214\001\n\024UpdateDatasetRequest\022>" - + "\n\007dataset\030\001 \001(\0132(.google.cloud.aiplatfor" - + "m.v1beta1.DatasetB\003\340A\002\0224\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\310\001\n" - + "\023ListDatasetsRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" - + "ge_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.goog" - + "le.protobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"" - + "k\n\024ListDatasetsResponse\022:\n\010datasets\030\001 \003(" - + "\0132(.google.cloud.aiplatform.v1beta1.Data" - + "set\022\027\n\017next_page_token\030\002 \001(\t\"O\n\024DeleteDa" + + "eration.proto\032#google/longrunning/operat" + + "ions.proto\032 google/protobuf/field_mask.p" + + "roto\"\221\001\n\024CreateDatasetRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022>\n\007dataset\030\002 \001(\0132(.google.cloud" + + ".aiplatform.v1beta1.DatasetB\003\340A\002\"u\n\036Crea" + + "teDatasetOperationMetadata\022S\n\020generic_me" + + "tadata\030\001 \001(\01329.google.cloud.aiplatform.v" + + "1beta1.GenericOperationMetadata\"{\n\021GetDa" + "tasetRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aipl" - + "atform.googleapis.com/Dataset\"\234\001\n\021Import" + + "atform.googleapis.com/Dataset\022-\n\tread_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\214\001\n" + + "\024UpdateDatasetRequest\022>\n\007dataset\030\001 \001(\0132(" + + ".google.cloud.aiplatform.v1beta1.Dataset" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"\310\001\n\023ListDatasetsRequ" + + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.g" + + "oogleapis.com/Location\022\016\n\006filter\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n" + + "\tread_mask\030\005 \001(\0132\032.google.protobuf.Field" + + "Mask\022\020\n\010order_by\030\006 \001(\t\"k\n\024ListDatasetsRe" + + "sponse\022:\n\010datasets\030\001 \003(\0132(.google.cloud." + + "aiplatform.v1beta1.Dataset\022\027\n\017next_page_" + + "token\030\002 \001(\t\"O\n\024DeleteDatasetRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis" + + ".com/Dataset\"\234\001\n\021ImportDataRequest\0227\n\004na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis." + + "com/Dataset\022N\n\016import_configs\030\002 \003(\01321.go" + + "ogle.cloud.aiplatform.v1beta1.ImportData" + + "ConfigB\003\340A\002\"\024\n\022ImportDataResponse\"r\n\033Imp" + + "ortDataOperationMetadata\022S\n\020generic_meta" + + "data\030\001 \001(\01329.google.cloud.aiplatform.v1b" + + "eta1.GenericOperationMetadata\"\233\001\n\021Export" + "DataRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aipla" - + "tform.googleapis.com/Dataset\022N\n\016import_c" - + "onfigs\030\002 \003(\01321.google.cloud.aiplatform.v" - + "1beta1.ImportDataConfigB\003\340A\002\"\024\n\022ImportDa" - + "taResponse\"r\n\033ImportDataOperationMetadat" - + "a\022S\n\020generic_metadata\030\001 \001(\01329.google.clo" - + "ud.aiplatform.v1beta1.GenericOperationMe" - + "tadata\"\233\001\n\021ExportDataRequest\0227\n\004name\030\001 \001" - + "(\tB)\340A\002\372A#\n!aiplatform.googleapis.com/Da" - + "taset\022M\n\rexport_config\030\002 \001(\01321.google.cl" - + "oud.aiplatform.v1beta1.ExportDataConfigB" - + "\003\340A\002\",\n\022ExportDataResponse\022\026\n\016exported_f" - + "iles\030\001 \003(\t\"\220\001\n\033ExportDataOperationMetada" - + "ta\022S\n\020generic_metadata\030\001 \001(\01329.google.cl" - + "oud.aiplatform.v1beta1.GenericOperationM" - + "etadata\022\034\n\024gcs_output_directory\030\002 \001(\t\"\311\001" - + "\n\024ListDataItemsRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\n!aiplatform.googleapis.com/Datase" - + "t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" - + "page_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\022\020\n\010order_by\030\006 \001(" - + "\t\"o\n\025ListDataItemsResponse\022=\n\ndata_items" - + "\030\001 \003(\0132).google.cloud.aiplatform.v1beta1" - + ".DataItem\022\027\n\017next_page_token\030\002 \001(\t\"\211\001\n\030G" - + "etAnnotationSpecRequest\022>\n\004name\030\001 \001(\tB0\340" - + "A\002\372A*\n(aiplatform.googleapis.com/Annotat" - + "ionSpec\022-\n\tread_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"\314\001\n\026ListAnnotationsReques" - + "t\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.go" - + "ogleapis.com/DataItem\022\016\n\006filter\030\002 \001(\t\022\021\n" - + "\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\t" - + "read_mask\030\005 \001(\0132\032.google.protobuf.FieldM" - + "ask\022\020\n\010order_by\030\006 \001(\t\"t\n\027ListAnnotations" - + "Response\022@\n\013annotations\030\001 \003(\0132+.google.c" - + "loud.aiplatform.v1beta1.Annotation\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t2\332\021\n\016DatasetService\022\346" - + "\001\n\rCreateDataset\0225.google.cloud.aiplatfo" - + "rm.v1beta1.CreateDatasetRequest\032\035.google" - + ".longrunning.Operation\"\177\202\323\344\223\002<\"1/v1beta1" - + "/{parent=projects/*/locations/*}/dataset" - + "s:\007dataset\332A\016parent,dataset\312A)\n\007Dataset\022" - + "\036CreateDatasetOperationMetadata\022\254\001\n\nGetD" - + "ataset\0222.google.cloud.aiplatform.v1beta1" - + ".GetDatasetRequest\032(.google.cloud.aiplat" - + "form.v1beta1.Dataset\"@\202\323\344\223\0023\0221/v1beta1/{" + + "tform.googleapis.com/Dataset\022M\n\rexport_c" + + "onfig\030\002 \001(\01321.google.cloud.aiplatform.v1" + + "beta1.ExportDataConfigB\003\340A\002\",\n\022ExportDat" + + "aResponse\022\026\n\016exported_files\030\001 \003(\t\"\220\001\n\033Ex" + + "portDataOperationMetadata\022S\n\020generic_met" + + "adata\030\001 \001(\01329.google.cloud.aiplatform.v1" + + "beta1.GenericOperationMetadata\022\034\n\024gcs_ou" + + "tput_directory\030\002 \001(\t\"\311\001\n\024ListDataItemsRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!aiplatfor" + + "m.googleapis.com/Dataset\022\016\n\006filter\030\002 \001(\t" + + "\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022" + + "-\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fie" + + "ldMask\022\020\n\010order_by\030\006 \001(\t\"o\n\025ListDataItem" + + "sResponse\022=\n\ndata_items\030\001 \003(\0132).google.c" + + "loud.aiplatform.v1beta1.DataItem\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\211\001\n\030GetAnnotationSpecR" + + "equest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(aiplatform" + + ".googleapis.com/AnnotationSpec\022-\n\tread_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\314\001" + + "\n\026ListAnnotationsRequest\022:\n\006parent\030\001 \001(\t" + + "B*\340A\002\372A$\n\"aiplatform.googleapis.com/Data" + + "Item\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" + + "\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032" + + ".google.protobuf.FieldMask\022\020\n\010order_by\030\006" + + " \001(\t\"t\n\027ListAnnotationsResponse\022@\n\013annot" + + "ations\030\001 \003(\0132+.google.cloud.aiplatform.v" + + "1beta1.Annotation\022\027\n\017next_page_token\030\002 \001" + + "(\t2\332\021\n\016DatasetService\022\346\001\n\rCreateDataset\022" + + "5.google.cloud.aiplatform.v1beta1.Create" + + "DatasetRequest\032\035.google.longrunning.Oper" + + "ation\"\177\202\323\344\223\002<\"1/v1beta1/{parent=projects" + + "/*/locations/*}/datasets:\007dataset\332A\016pare" + + "nt,dataset\312A)\n\007Dataset\022\036CreateDatasetOpe" + + "rationMetadata\022\254\001\n\nGetDataset\0222.google.c" + + "loud.aiplatform.v1beta1.GetDatasetReques" + + "t\032(.google.cloud.aiplatform.v1beta1.Data" + + "set\"@\202\323\344\223\0023\0221/v1beta1/{name=projects/*/l" + + "ocations/*/datasets/*}\332A\004name\022\322\001\n\rUpdate" + + "Dataset\0225.google.cloud.aiplatform.v1beta" + + "1.UpdateDatasetRequest\032(.google.cloud.ai" + + "platform.v1beta1.Dataset\"`\202\323\344\223\002D29/v1bet" + + "a1/{dataset.name=projects/*/locations/*/" + + "datasets/*}:\007dataset\332A\023dataset,update_ma" + + "sk\022\277\001\n\014ListDatasets\0224.google.cloud.aipla" + + "tform.v1beta1.ListDatasetsRequest\0325.goog" + + "le.cloud.aiplatform.v1beta1.ListDatasets" + + "Response\"B\202\323\344\223\0023\0221/v1beta1/{parent=proje" + + "cts/*/locations/*}/datasets\332A\006parent\022\332\001\n" + + "\rDeleteDataset\0225.google.cloud.aiplatform" + + ".v1beta1.DeleteDatasetRequest\032\035.google.l" + + "ongrunning.Operation\"s\202\323\344\223\0023*1/v1beta1/{" + "name=projects/*/locations/*/datasets/*}\332" - + "A\004name\022\322\001\n\rUpdateDataset\0225.google.cloud." - + "aiplatform.v1beta1.UpdateDatasetRequest\032" - + "(.google.cloud.aiplatform.v1beta1.Datase" - + "t\"`\202\323\344\223\002D29/v1beta1/{dataset.name=projec" - + "ts/*/locations/*/datasets/*}:\007dataset\332A\023" - + "dataset,update_mask\022\277\001\n\014ListDatasets\0224.g" - + "oogle.cloud.aiplatform.v1beta1.ListDatas" - + "etsRequest\0325.google.cloud.aiplatform.v1b" - + "eta1.ListDatasetsResponse\"B\202\323\344\223\0023\0221/v1be" - + "ta1/{parent=projects/*/locations/*}/data" - + "sets\332A\006parent\022\332\001\n\rDeleteDataset\0225.google" - + ".cloud.aiplatform.v1beta1.DeleteDatasetR" - + "equest\032\035.google.longrunning.Operation\"s\202" - + "\323\344\223\0023*1/v1beta1/{name=projects/*/locatio" - + "ns/*/datasets/*}\332A\004name\312A0\n\025google.proto" - + "buf.Empty\022\027DeleteOperationMetadata\022\357\001\n\nI" - + "mportData\0222.google.cloud.aiplatform.v1be" - + "ta1.ImportDataRequest\032\035.google.longrunni" - + "ng.Operation\"\215\001\202\323\344\223\002=\"8/v1beta1/{name=pr" - + "ojects/*/locations/*/datasets/*}:import:" - + "\001*\332A\023name,import_configs\312A1\n\022ImportDataR" - + "esponse\022\033ImportDataOperationMetadata\022\356\001\n" - + "\nExportData\0222.google.cloud.aiplatform.v1" - + "beta1.ExportDataRequest\032\035.google.longrun" - + "ning.Operation\"\214\001\202\323\344\223\002=\"8/v1beta1/{name=" - + "projects/*/locations/*/datasets/*}:expor" - + "t:\001*\332A\022name,export_config\312A1\n\022ExportData" - + "Response\022\033ExportDataOperationMetadata\022\316\001" - + "\n\rListDataItems\0225.google.cloud.aiplatfor" - + "m.v1beta1.ListDataItemsRequest\0326.google." - + "cloud.aiplatform.v1beta1.ListDataItemsRe" - + "sponse\"N\202\323\344\223\002?\022=/v1beta1/{parent=project" - + "s/*/locations/*/datasets/*}/dataItems\332A\006" - + "parent\022\323\001\n\021GetAnnotationSpec\0229.google.cl" - + "oud.aiplatform.v1beta1.GetAnnotationSpec" - + "Request\032/.google.cloud.aiplatform.v1beta" - + "1.AnnotationSpec\"R\202\323\344\223\002E\022C/v1beta1/{name" - + "=projects/*/locations/*/datasets/*/annot" - + "ationSpecs/*}\332A\004name\022\342\001\n\017ListAnnotations" - + "\0227.google.cloud.aiplatform.v1beta1.ListA" - + "nnotationsRequest\0328.google.cloud.aiplatf" - + "orm.v1beta1.ListAnnotationsResponse\"\\\202\323\344" - + "\223\002M\022K/v1beta1/{parent=projects/*/locatio" - + "ns/*/datasets/*/dataItems/*}/annotations" - + "\332A\006parent\032M\312A\031aiplatform.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-" - + "platformB\360\001\n#com.google.cloud.aiplatform" - + ".v1beta1B\023DatasetServiceProtoP\001ZIgoogle." - + "golang.org/genproto/googleapis/cloud/aip" - + "latform/v1beta1;aiplatform\252\002\037Google.Clou" - + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" - + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatfo" - + "rm::V1beta1b\006proto3" + + "A\004name\312A0\n\025google.protobuf.Empty\022\027Delete" + + "OperationMetadata\022\357\001\n\nImportData\0222.googl" + + "e.cloud.aiplatform.v1beta1.ImportDataReq" + + "uest\032\035.google.longrunning.Operation\"\215\001\202\323" + + "\344\223\002=\"8/v1beta1/{name=projects/*/location" + + "s/*/datasets/*}:import:\001*\332A\023name,import_" + + "configs\312A1\n\022ImportDataResponse\022\033ImportDa" + + "taOperationMetadata\022\356\001\n\nExportData\0222.goo" + + "gle.cloud.aiplatform.v1beta1.ExportDataR" + + "equest\032\035.google.longrunning.Operation\"\214\001" + + "\202\323\344\223\002=\"8/v1beta1/{name=projects/*/locati" + + "ons/*/datasets/*}:export:\001*\332A\022name,expor" + + "t_config\312A1\n\022ExportDataResponse\022\033ExportD" + + "ataOperationMetadata\022\316\001\n\rListDataItems\0225" + + ".google.cloud.aiplatform.v1beta1.ListDat" + + "aItemsRequest\0326.google.cloud.aiplatform." + + "v1beta1.ListDataItemsResponse\"N\202\323\344\223\002?\022=/" + + "v1beta1/{parent=projects/*/locations/*/d" + + "atasets/*}/dataItems\332A\006parent\022\323\001\n\021GetAnn" + + "otationSpec\0229.google.cloud.aiplatform.v1" + + "beta1.GetAnnotationSpecRequest\032/.google." + + "cloud.aiplatform.v1beta1.AnnotationSpec\"" + + "R\202\323\344\223\002E\022C/v1beta1/{name=projects/*/locat" + + "ions/*/datasets/*/annotationSpecs/*}\332A\004n" + + "ame\022\342\001\n\017ListAnnotations\0227.google.cloud.a" + + "iplatform.v1beta1.ListAnnotationsRequest" + + "\0328.google.cloud.aiplatform.v1beta1.ListA" + + "nnotationsResponse\"\\\202\323\344\223\002M\022K/v1beta1/{pa" + + "rent=projects/*/locations/*/datasets/*/d" + + "ataItems/*}/annotations\332A\006parent\032M\312A\031aip" + + "latform.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\360\001\n#com." + + "google.cloud.aiplatform.v1beta1B\023Dataset" + + "ServiceProtoP\001ZIgoogle.golang.org/genpro" + + "to/googleapis/cloud/aiplatform/v1beta1;a" + + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -259,7 +258,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.DataItemProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.TrainingPipelineProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), }); @@ -425,7 +423,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.DataItemProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.TrainingPipelineProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); } 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 8a3bffcb6..a6c4c4260 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 @@ -123,6 +123,8 @@ private DedicatedResources( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -241,6 +243,10 @@ public int getMinReplicaCount() { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). *
* * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1126,6 +1132,10 @@ public Builder clearMinReplicaCount() { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). *
* * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1148,6 +1158,10 @@ public int getMaxReplicaCount() { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). *
* * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1173,6 +1187,10 @@ public Builder setMaxReplicaCount(int value) { * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). *
* * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; 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 0388ae35d..696b0ccf1 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 @@ -95,6 +95,10 @@ public interface DedicatedResourcesOrBuilder * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the * default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). *
* * int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java index f9725ecc0..56e6f18e0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java @@ -96,6 +96,8 @@ private DeleteArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java index f382e6d3c..108e5efa9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java @@ -89,6 +89,8 @@ private DeleteBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java index 84ea67d1e..7b3d4b2e8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java @@ -101,6 +101,8 @@ private DeleteContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java index 454a80502..282b126bc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java @@ -88,6 +88,8 @@ private DeleteCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java index 63685f7ad..408614bd9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java @@ -88,6 +88,8 @@ private DeleteDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java index 661492679..a5ad95487 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java @@ -88,6 +88,8 @@ private DeleteDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java index d24218640..7c2383767 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java @@ -88,6 +88,8 @@ private DeleteEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java index 67ce73630..027fac211 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java @@ -93,6 +93,8 @@ private DeleteEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java index dba22d19f..b6316a7f8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java @@ -96,6 +96,8 @@ private DeleteExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java index 498c0a29c..2abb38fdf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java @@ -88,6 +88,8 @@ private DeleteFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java index c40dee34f..17414f371 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java @@ -93,6 +93,8 @@ private DeleteFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java index aec2aad29..748d1e07c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java @@ -90,6 +90,8 @@ private DeleteHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java index 65361a55e..ec414fa11 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java @@ -88,6 +88,8 @@ private DeleteIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java index f81ee7bb4..ed7deec85 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java @@ -88,6 +88,8 @@ private DeleteIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java index e57b2d23c..0255f3225 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java @@ -99,6 +99,8 @@ private DeleteMetadataStoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java index 284829e30..60a4b35da 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java @@ -93,6 +93,8 @@ private DeleteMetadataStoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -184,6 +186,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.force is deprecated. See + * google/cloud/aiplatform/v1beta1/metadata_service.proto;l=451 * @return The force. */ @java.lang.Override @@ -665,6 +669,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.force is deprecated. + * See google/cloud/aiplatform/v1beta1/metadata_service.proto;l=451 * @return The force. */ @java.lang.Override @@ -681,6 +687,8 @@ public boolean getForce() { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.force is deprecated. + * See google/cloud/aiplatform/v1beta1/metadata_service.proto;l=451 * @param value The force to set. * @return This builder for chaining. */ @@ -700,6 +708,8 @@ public Builder setForce(boolean value) { * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.force is deprecated. + * See google/cloud/aiplatform/v1beta1/metadata_service.proto;l=451 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequestOrBuilder.java index 395d29823..aec4183ad 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequestOrBuilder.java @@ -65,6 +65,8 @@ public interface DeleteMetadataStoreRequestOrBuilder * * bool force = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.force is deprecated. See + * google/cloud/aiplatform/v1beta1/metadata_service.proto;l=451 * @return The force. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java index 86c5f9e45..3d66340ce 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java @@ -91,6 +91,8 @@ private DeleteModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java index d777f8786..9cd1a48d7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java @@ -88,6 +88,8 @@ private DeleteModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequest.java new file mode 100644 index 000000000..d161820a5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequest.java @@ -0,0 +1,671 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} + */ +public final class DeleteModelVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + DeleteModelVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteModelVersionRequest.newBuilder() to construct. + private DeleteModelVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteModelVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteModelVersionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteModelVersionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteModelVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteModelVersionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequestOrBuilder.java new file mode 100644 index 000000000..9e455b2b1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteModelVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java index 01eef9cac..55ccdf829 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java @@ -97,6 +97,8 @@ private DeleteOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java index 24bc6cfb1..c550b287d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java @@ -88,6 +88,8 @@ private DeletePipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java index f85aca47f..c689d77b9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java @@ -93,6 +93,8 @@ private DeleteSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index e68151de5..98fa9c4f4 100644 --- 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 @@ -88,6 +88,8 @@ private DeleteStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java index 267293cfd..45a53ab29 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java @@ -89,6 +89,8 @@ private DeleteTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java index 1aa3c823a..06d6eabcf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java @@ -88,6 +88,8 @@ private DeleteTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java index 109a61d77..7613f7aea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java @@ -88,6 +88,8 @@ private DeleteTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java index 51025a512..efc1885b0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java @@ -89,6 +89,8 @@ private DeleteTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java index d88bea81a..2fbcaa0d6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java @@ -88,6 +88,8 @@ private DeleteTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index bb6482158..f8304c24c 100644 --- 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 @@ -88,6 +88,8 @@ private DeleteTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java index 50e02a95c..ada5a60f3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java @@ -106,6 +106,8 @@ private DeployIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java index 786281bc5..881671e7f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java @@ -105,6 +105,8 @@ private DeployIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java index ab56bfb94..70fabd56c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java @@ -96,6 +96,8 @@ private DeployIndexResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java index 82d97c70e..b9c7d24f5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java @@ -97,6 +97,8 @@ private DeployModelOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java index 861d7f25d..ef6dd1036 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java @@ -121,6 +121,8 @@ private DeployModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -322,7 +324,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -373,7 +375,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -398,7 +400,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1203,7 +1205,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -1254,7 +1256,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1279,7 +1281,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1311,7 +1313,7 @@ public Builder clearTrafficSplit() { */ public Builder removeTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().remove(key); return this; @@ -1340,7 +1342,7 @@ public java.util.Map getMutableTrafficSplit */ public Builder putTrafficSplit(java.lang.String key, int value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().put(key, value); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java index 7cc98e666..66aaad70c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java @@ -96,6 +96,8 @@ private DeployModelResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java index ba62868f8..a9be8ea85 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java @@ -227,6 +227,8 @@ private DeployedIndex( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java index 162e6ea27..304742780 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java @@ -98,6 +98,8 @@ private DeployedIndexAuthConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -335,6 +337,8 @@ private AuthProvider( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java index 18e1ee317..71eab0f7a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java @@ -96,6 +96,8 @@ private DeployedIndexRef( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java index d5a479046..686b159c7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java @@ -42,24 +42,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n8google/cloud/aiplatform/v1beta1/deploy" + "ed_index_ref.proto\022\037google.cloud.aiplatf" - + "orm.v1beta1\032\034google/api/annotations.prot" - + "o\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\"{\n\020DeployedIndexRe" - + "f\022G\n\016index_endpoint\030\001 \001(\tB/\340A\005\372A)\n\'aipla" - + "tform.googleapis.com/IndexEndpoint\022\036\n\021de" - + "ployed_index_id\030\002 \001(\tB\003\340A\005B\362\001\n#com.googl" - + "e.cloud.aiplatform.v1beta1B\025DeployedInde" - + "xRefProtoP\001ZIgoogle.golang.org/genproto/" - + "googleapis/cloud/aiplatform/v1beta1;aipl" - + "atform\252\002\037Google.Cloud.AIPlatform.V1Beta1" - + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" - + "gle::Cloud::AIPlatform::V1beta1b\006proto3" + + "orm.v1beta1\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\"{\n\020Deplo" + + "yedIndexRef\022G\n\016index_endpoint\030\001 \001(\tB/\340A\005" + + "\372A)\n\'aiplatform.googleapis.com/IndexEndp" + + "oint\022\036\n\021deployed_index_id\030\002 \001(\tB\003\340A\005B\362\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\025De" + + "ployedIndexRefProtoP\001ZIgoogle.golang.org" + + "/genproto/googleapis/cloud/aiplatform/v1" + + "beta1;aiplatform\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); @@ -77,7 +76,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); } 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 ce50eddf2..3ee57d249 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 @@ -40,6 +40,7 @@ private DeployedModel(com.google.protobuf.GeneratedMessageV3.Builder builder) private DeployedModel() { id_ = ""; model_ = ""; + modelVersionId_ = ""; displayName_ = ""; serviceAccount_ = ""; } @@ -198,6 +199,13 @@ private DeployedModel( privateEndpoints_ = subBuilder.buildPartial(); } + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelVersionId_ = s; break; } default: @@ -211,6 +219,8 @@ private DeployedModel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -499,6 +509,55 @@ public com.google.protobuf.ByteString getModelBytes() { } } + public static final int MODEL_VERSION_ID_FIELD_NUMBER = 18; + private volatile java.lang.Object modelVersionId_; + /** + * + * + *
+   * Output only. The version ID of the model that is deployed.
+   * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + @java.lang.Override + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The version ID of the model that is deployed.
+   * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** @@ -880,6 +939,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (privateEndpoints_ != null) { output.writeMessage(14, getPrivateEndpoints()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, modelVersionId_); + } unknownFields.writeTo(output); } @@ -926,6 +988,9 @@ public int getSerializedSize() { if (privateEndpoints_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPrivateEndpoints()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, modelVersionId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -944,6 +1009,7 @@ public boolean equals(final java.lang.Object obj) { if (!getId().equals(other.getId())) return false; if (!getModel().equals(other.getModel())) return false; + if (!getModelVersionId().equals(other.getModelVersionId())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { @@ -986,6 +1052,8 @@ public int hashCode() { hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelVersionId().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); if (hasCreateTime()) { @@ -1167,6 +1235,8 @@ public Builder clear() { model_ = ""; + modelVersionId_ = ""; + displayName_ = ""; if (createTimeBuilder_ == null) { @@ -1238,6 +1308,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() { } result.id_ = id_; result.model_ = model_; + result.modelVersionId_ = modelVersionId_; result.displayName_ = displayName_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -1316,6 +1387,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other model_ = other.model_; onChanged(); } + if (!other.getModelVersionId().isEmpty()) { + modelVersionId_ = other.modelVersionId_; + onChanged(); + } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -1519,8 +1594,9 @@ public Builder mergeDedicatedResources( } else { if (predictionResourcesCase_ == 7) { dedicatedResourcesBuilder_.mergeFrom(value); + } else { + dedicatedResourcesBuilder_.setMessage(value); } - dedicatedResourcesBuilder_.setMessage(value); } predictionResourcesCase_ = 7; return this; @@ -1743,8 +1819,9 @@ public Builder mergeAutomaticResources( } else { if (predictionResourcesCase_ == 8) { automaticResourcesBuilder_.mergeFrom(value); + } else { + automaticResourcesBuilder_.setMessage(value); } - automaticResourcesBuilder_.setMessage(value); } predictionResourcesCase_ = 8; return this; @@ -2084,6 +2161,112 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object modelVersionId_ = ""; + /** + * + * + *
+     * Output only. The version ID of the model that is deployed.
+     * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the model that is deployed.
+     * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the model that is deployed.
+     * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelVersionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the model that is deployed.
+     * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersionId() { + + modelVersionId_ = getDefaultInstance().getModelVersionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the model that is deployed.
+     * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelVersionId_ = value; + onChanged(); + return this; + } + private java.lang.Object displayName_ = ""; /** * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java index 266dace1a..37b422ed8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java @@ -42,24 +42,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n8google/cloud/aiplatform/v1beta1/deploy" + "ed_model_ref.proto\022\037google.cloud.aiplatf" - + "orm.v1beta1\032\034google/api/annotations.prot" - + "o\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\"p\n\020DeployedModelRe" - + "f\022<\n\010endpoint\030\001 \001(\tB*\340A\005\372A$\n\"aiplatform." - + "googleapis.com/Endpoint\022\036\n\021deployed_mode" - + "l_id\030\002 \001(\tB\003\340A\005B\363\001\n#com.google.cloud.aip" - + "latform.v1beta1B\026DeployedModelNameProtoP" - + "\001ZIgoogle.golang.org/genproto/googleapis" - + "/cloud/aiplatform/v1beta1;aiplatform\252\002\037G" - + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" - + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" - + "::AIPlatform::V1beta1b\006proto3" + + "orm.v1beta1\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\"p\n\020Deplo" + + "yedModelRef\022<\n\010endpoint\030\001 \001(\tB*\340A\005\372A$\n\"a" + + "iplatform.googleapis.com/Endpoint\022\036\n\021dep" + + "loyed_model_id\030\002 \001(\tB\003\340A\005B\363\001\n#com.google" + + ".cloud.aiplatform.v1beta1B\026DeployedModel" + + "NameProtoP\001ZIgoogle.golang.org/genproto/" + + "googleapis/cloud/aiplatform/v1beta1;aipl" + + "atform\252\002\037Google.Cloud.AIPlatform.V1Beta1" + + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" + + "gle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); @@ -77,7 +75,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); } 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 b7652a3dd..435d8ec68 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 @@ -159,6 +159,31 @@ public interface DeployedModelOrBuilder */ com.google.protobuf.ByteString getModelBytes(); + /** + * + * + *
+   * Output only. The version ID of the model that is deployed.
+   * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + java.lang.String getModelVersionId(); + /** + * + * + *
+   * Output only. The version ID of the model that is deployed.
+   * 
+ * + * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + com.google.protobuf.ByteString getModelVersionIdBytes(); + /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java index 900583d36..d09f1a6a3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java @@ -96,6 +96,8 @@ private DeployedModelRef( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java index 9c4299629..f1fb97dd0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java @@ -88,6 +88,8 @@ private DestinationFeatureSetting( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java index 40bf8cfe2..8ac362c61 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java @@ -93,6 +93,8 @@ private DiskSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java index d8f6178d3..eef28d542 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java @@ -105,6 +105,8 @@ private DoubleArray( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java index a3444f10d..6705af046 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java @@ -89,6 +89,8 @@ private EncryptionSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java index 1c638b953..a48163d5b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java @@ -42,22 +42,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/aiplatform/v1beta1/encryp" + "tion_spec.proto\022\037google.cloud.aiplatform" - + ".v1beta1\032\034google/api/annotations.proto\032\037" - + "google/api/field_behavior.proto\"+\n\016Encry" - + "ptionSpec\022\031\n\014kms_key_name\030\001 \001(\tB\003\340A\002B\360\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\023En" - + "cryptionSpecProtoP\001ZIgoogle.golang.org/g" - + "enproto/googleapis/cloud/aiplatform/v1be" - + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" - + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" - + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" - + "\006proto3" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\"+\n\016EncryptionSpec\022\031\n\014kms_key_name\030\001 \001(" + + "\tB\003\340A\002B\360\001\n#com.google.cloud.aiplatform.v" + + "1beta1B\023EncryptionSpecProtoP\001ZIgoogle.go" + + "lang.org/genproto/googleapis/cloud/aipla" + + "tform/v1beta1;aiplatform\252\002\037Google.Cloud." + + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" + + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" + + "::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_EncryptionSpec_descriptor = @@ -73,7 +71,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java index 2e0e98dc1..68877eb86 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java @@ -211,6 +211,25 @@ private Endpoint( case 136: { enablePrivateServiceConnect_ = input.readBool(); + break; + } + case 146: + { + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder + subBuilder = null; + if (predictRequestResponseLoggingConfig_ != null) { + subBuilder = predictRequestResponseLoggingConfig_.toBuilder(); + } + predictRequestResponseLoggingConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(predictRequestResponseLoggingConfig_); + predictRequestResponseLoggingConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -224,6 +243,8 @@ private Endpoint( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -548,7 +569,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -593,7 +614,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -615,7 +636,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -716,7 +737,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -759,7 +780,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -780,7 +801,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1018,17 +1039,20 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-   * If true, expose the Endpoint via private service connect.
+   * Deprecated: If true, expose the Endpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect],
    * can be set.
    * 
* - * bool enable_private_service_connect = 17; + * bool enable_private_service_connect = 17 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return The enablePrivateServiceConnect. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } @@ -1092,6 +1116,64 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { } } + public static final int PREDICT_REQUEST_RESPONSE_LOGGING_CONFIG_FIELD_NUMBER = 18; + private com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + predictRequestResponseLoggingConfig_; + /** + * + * + *
+   * Configures the request-response logging for online prediction.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + * + * @return Whether the predictRequestResponseLoggingConfig field is set. + */ + @java.lang.Override + public boolean hasPredictRequestResponseLoggingConfig() { + return predictRequestResponseLoggingConfig_ != null; + } + /** + * + * + *
+   * Configures the request-response logging for online prediction.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + * + * @return The predictRequestResponseLoggingConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + getPredictRequestResponseLoggingConfig() { + return predictRequestResponseLoggingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .getDefaultInstance() + : predictRequestResponseLoggingConfig_; + } + /** + * + * + *
+   * Configures the request-response logging for online prediction.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder + getPredictRequestResponseLoggingConfigOrBuilder() { + return getPredictRequestResponseLoggingConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1143,6 +1225,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enablePrivateServiceConnect_ != false) { output.writeBool(17, enablePrivateServiceConnect_); } + if (predictRequestResponseLoggingConfig_ != null) { + output.writeMessage(18, getPredictRequestResponseLoggingConfig()); + } unknownFields.writeTo(output); } @@ -1208,6 +1293,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enablePrivateServiceConnect_); } + if (predictRequestResponseLoggingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, getPredictRequestResponseLoggingConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1247,6 +1337,12 @@ public boolean equals(final java.lang.Object obj) { if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false; if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob())) return false; + if (hasPredictRequestResponseLoggingConfig() != other.hasPredictRequestResponseLoggingConfig()) + return false; + if (hasPredictRequestResponseLoggingConfig()) { + if (!getPredictRequestResponseLoggingConfig() + .equals(other.getPredictRequestResponseLoggingConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1296,6 +1392,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect()); hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER; hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode(); + if (hasPredictRequestResponseLoggingConfig()) { + hash = (37 * hash) + PREDICT_REQUEST_RESPONSE_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPredictRequestResponseLoggingConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1508,6 +1608,12 @@ public Builder clear() { modelDeploymentMonitoringJob_ = ""; + if (predictRequestResponseLoggingConfigBuilder_ == null) { + predictRequestResponseLoggingConfig_ = null; + } else { + predictRequestResponseLoggingConfig_ = null; + predictRequestResponseLoggingConfigBuilder_ = null; + } return this; } @@ -1571,6 +1677,12 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint buildPartial() { result.network_ = network_; result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + if (predictRequestResponseLoggingConfigBuilder_ == null) { + result.predictRequestResponseLoggingConfig_ = predictRequestResponseLoggingConfig_; + } else { + result.predictRequestResponseLoggingConfig_ = + predictRequestResponseLoggingConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1685,6 +1797,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; onChanged(); } + if (other.hasPredictRequestResponseLoggingConfig()) { + mergePredictRequestResponseLoggingConfig(other.getPredictRequestResponseLoggingConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2523,7 +2638,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -2568,7 +2683,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2590,7 +2705,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -2619,7 +2734,7 @@ public Builder clearTrafficSplit() { */ public Builder removeTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().remove(key); return this; @@ -2645,7 +2760,7 @@ public java.util.Map getMutableTrafficSplit */ public Builder putTrafficSplit(java.lang.String key, int value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().put(key, value); @@ -2822,7 +2937,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2866,7 +2981,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2887,7 +3002,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2915,7 +3030,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2940,11 +3055,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -3739,17 +3855,20 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
-     * If true, expose the Endpoint via private service connect.
+     * Deprecated: If true, expose the Endpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 17; + * bool enable_private_service_connect = 17 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return The enablePrivateServiceConnect. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } @@ -3757,17 +3876,20 @@ public boolean getEnablePrivateServiceConnect() { * * *
-     * If true, expose the Endpoint via private service connect.
+     * Deprecated: If true, expose the Endpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 17; + * bool enable_private_service_connect = 17 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnablePrivateServiceConnect(boolean value) { enablePrivateServiceConnect_ = value; @@ -3778,16 +3900,19 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * * *
-     * If true, expose the Endpoint via private service connect.
+     * Deprecated: If true, expose the Endpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 17; + * bool enable_private_service_connect = 17 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnablePrivateServiceConnect() { enablePrivateServiceConnect_ = false; @@ -3926,6 +4051,221 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri return this; } + private com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + predictRequestResponseLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder> + predictRequestResponseLoggingConfigBuilder_; + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + * + * @return Whether the predictRequestResponseLoggingConfig field is set. + */ + public boolean hasPredictRequestResponseLoggingConfig() { + return predictRequestResponseLoggingConfigBuilder_ != null + || predictRequestResponseLoggingConfig_ != null; + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + * + * @return The predictRequestResponseLoggingConfig. + */ + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + getPredictRequestResponseLoggingConfig() { + if (predictRequestResponseLoggingConfigBuilder_ == null) { + return predictRequestResponseLoggingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .getDefaultInstance() + : predictRequestResponseLoggingConfig_; + } else { + return predictRequestResponseLoggingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + public Builder setPredictRequestResponseLoggingConfig( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig value) { + if (predictRequestResponseLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictRequestResponseLoggingConfig_ = value; + onChanged(); + } else { + predictRequestResponseLoggingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + public Builder setPredictRequestResponseLoggingConfig( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder + builderForValue) { + if (predictRequestResponseLoggingConfigBuilder_ == null) { + predictRequestResponseLoggingConfig_ = builderForValue.build(); + onChanged(); + } else { + predictRequestResponseLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + public Builder mergePredictRequestResponseLoggingConfig( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig value) { + if (predictRequestResponseLoggingConfigBuilder_ == null) { + if (predictRequestResponseLoggingConfig_ != null) { + predictRequestResponseLoggingConfig_ = + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.newBuilder( + predictRequestResponseLoggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + predictRequestResponseLoggingConfig_ = value; + } + onChanged(); + } else { + predictRequestResponseLoggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + public Builder clearPredictRequestResponseLoggingConfig() { + if (predictRequestResponseLoggingConfigBuilder_ == null) { + predictRequestResponseLoggingConfig_ = null; + onChanged(); + } else { + predictRequestResponseLoggingConfig_ = null; + predictRequestResponseLoggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder + getPredictRequestResponseLoggingConfigBuilder() { + + onChanged(); + return getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder + getPredictRequestResponseLoggingConfigOrBuilder() { + if (predictRequestResponseLoggingConfigBuilder_ != null) { + return predictRequestResponseLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return predictRequestResponseLoggingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .getDefaultInstance() + : predictRequestResponseLoggingConfig_; + } + } + /** + * + * + *
+     * Configures the request-response logging for online prediction.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder> + getPredictRequestResponseLoggingConfigFieldBuilder() { + if (predictRequestResponseLoggingConfigBuilder_ == null) { + predictRequestResponseLoggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder>( + getPredictRequestResponseLoggingConfig(), getParentForChildren(), isClean()); + predictRequestResponseLoggingConfig_ = null; + } + return predictRequestResponseLoggingConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java index 6d62f3eb2..4077e9c00 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java @@ -338,7 +338,12 @@ public interface EndpointOrBuilder * * map<string, string> labels = 7; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -522,16 +527,19 @@ public interface EndpointOrBuilder * * *
-   * If true, expose the Endpoint via private service connect.
+   * Deprecated: If true, expose the Endpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect],
    * can be set.
    * 
* - * bool enable_private_service_connect = 17; + * bool enable_private_service_connect = 17 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return The enablePrivateServiceConnect. */ + @java.lang.Deprecated boolean getEnablePrivateServiceConnect(); /** @@ -568,4 +576,47 @@ public interface EndpointOrBuilder * @return The bytes for modelDeploymentMonitoringJob. */ com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes(); + + /** + * + * + *
+   * Configures the request-response logging for online prediction.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + * + * @return Whether the predictRequestResponseLoggingConfig field is set. + */ + boolean hasPredictRequestResponseLoggingConfig(); + /** + * + * + *
+   * Configures the request-response logging for online prediction.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + * + * @return The predictRequestResponseLoggingConfig. + */ + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + getPredictRequestResponseLoggingConfig(); + /** + * + * + *
+   * Configures the request-response logging for online prediction.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * + */ + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder + getPredictRequestResponseLoggingConfigOrBuilder(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index a968c4946..aa44d24b0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -47,6 +47,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -58,80 +62,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n.google/cloud/aiplatform/v1beta1/endpoi" + "nt.proto\022\037google.cloud.aiplatform.v1beta" - + "1\032\034google/api/annotations.proto\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\0325google/cloud/aiplatform/v1b" - + "eta1/encryption_spec.proto\0321google/cloud" - + "/aiplatform/v1beta1/explanation.proto\032(g" - + "oogle/cloud/aiplatform/v1beta1/io.proto\032" - + "7google/cloud/aiplatform/v1beta1/machine" - + "_resources.proto\032Egoogle/cloud/aiplatfor" - + "m/v1beta1/model_deployment_monitoring_jo" - + "b.proto\0326google/cloud/aiplatform/v1beta1" - + "/model_monitoring.proto\032\037google/protobuf" - + "/timestamp.proto\"\214\007\n\010Endpoint\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013d" - + "escription\030\003 \001(\t\022L\n\017deployed_models\030\004 \003(" - + "\0132..google.cloud.aiplatform.v1beta1.Depl" - + "oyedModelB\003\340A\003\022R\n\rtraffic_split\030\005 \003(\0132;." - + "google.cloud.aiplatform.v1beta1.Endpoint" - + ".TrafficSplitEntry\022\014\n\004etag\030\006 \001(\t\022E\n\006labe" - + "ls\030\007 \003(\01325.google.cloud.aiplatform.v1bet" - + "a1.Endpoint.LabelsEntry\0224\n\013create_time\030\010" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\t \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022H\n\017encryption_spec\030\n \001(\0132/.g" - + "oogle.cloud.aiplatform.v1beta1.Encryptio" - + "nSpec\0224\n\007network\030\r \001(\tB#\372A \n\036compute.goo" - + "gleapis.com/Network\022&\n\036enable_private_se" - + "rvice_connect\030\021 \001(\010\022g\n\037model_deployment_" - + "monitoring_job\030\016 \001(\tB>\340A\003\372A8\n6aiplatform" - + ".googleapis.com/ModelDeploymentMonitorin" - + "gJob\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:e\352Ab\n\"aiplatfor" - + "m.googleapis.com/Endpoint\022\340A\003\372A8\n6aip" + + "latform.googleapis.com/ModelDeploymentMo" + + "nitoringJob\022u\n\'predict_request_response_" + + "logging_config\030\022 \001(\0132D.google.cloud.aipl" + + "atform.v1beta1.PredictRequestResponseLog" + + "gingConfig\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:e\352Ab\n\"aip" + + "latform.googleapis.com/Endpoint\022 getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -531,7 +533,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1831,7 +1833,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1883,7 +1885,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1908,7 +1910,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1940,7 +1942,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1969,11 +1971,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java index 36dce3ccd..dba539b74 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java @@ -235,7 +235,12 @@ public interface EntityTypeOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java index 0809c9cb9..c21d06411 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java @@ -46,41 +46,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1beta1/entity" + "_type.proto\022\037google.cloud.aiplatform.v1b" - + "eta1\032\034google/api/annotations.proto\032\037goog" - + "le/api/field_behavior.proto\032\031google/api/" - + "resource.proto\032-google/cloud/aiplatform/" - + "v1beta1/feature.proto\032=google/cloud/aipl" - + "atform/v1beta1/featurestore_monitoring.p" - + "roto\032\037google/protobuf/timestamp.proto\"\241\004" - + "\n\nEntityType\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\030\n\013descr" - + "iption\030\002 \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022L\n\006labels\030\006 \003(\01327.google.cloud.aip" - + "latform.v1beta1.EntityType.LabelsEntryB\003" - + "\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022]\n\021monitoring_con" - + "fig\030\010 \001(\0132=.google.cloud.aiplatform.v1be" - + "ta1.FeaturestoreMonitoringConfigB\003\340A\001\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001:\212\001\352A\206\001\n$aiplatform.googleapis.com/E" - + "ntityType\022^projects/{project}/locations/" - + "{location}/featurestores/{featurestore}/" - + "entityTypes/{entity_type}B\354\001\n#com.google" - + ".cloud.aiplatform.v1beta1B\017EntityTypePro" - + "toP\001ZIgoogle.golang.org/genproto/googlea" - + "pis/cloud/aiplatform/v1beta1;aiplatform\252" - + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" - + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cl" - + "oud::AIPlatform::V1beta1b\006proto3" + + "eta1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032=google/cloud/a" + + "iplatform/v1beta1/featurestore_monitorin" + + "g.proto\032\037google/protobuf/timestamp.proto" + + "\"\241\004\n\nEntityType\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\030\n\013de" + + "scription\030\002 \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022L\n\006labels\030\006 \003(\01327.google.cloud." + + "aiplatform.v1beta1.EntityType.LabelsEntr" + + "yB\003\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022]\n\021monitoring_" + + "config\030\010 \001(\0132=.google.cloud.aiplatform.v" + + "1beta1.FeaturestoreMonitoringConfigB\003\340A\001" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:\212\001\352A\206\001\n$aiplatform.googleapis.co" + + "m/EntityType\022^projects/{project}/locatio" + + "ns/{location}/featurestores/{featurestor" + + "e}/entityTypes/{entity_type}B\354\001\n#com.goo" + + "gle.cloud.aiplatform.v1beta1B\017EntityType" + + "ProtoP\001ZIgoogle.golang.org/genproto/goog" + + "leapis/cloud/aiplatform/v1beta1;aiplatfo" + + "rm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" + + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" + + ":Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.FeatureProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -114,10 +110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.FeatureProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java index aa5d3fd8d..af9f21da9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java @@ -96,6 +96,8 @@ private EnvVar( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVarProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVarProto.java index e79b0341a..647e150e9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVarProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVarProto.java @@ -42,21 +42,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/aiplatform/v1beta1/env_va" + "r.proto\022\037google.cloud.aiplatform.v1beta1" - + "\032\034google/api/annotations.proto\032\037google/a" - + "pi/field_behavior.proto\"/\n\006EnvVar\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\002\022\022\n\005value\030\002 \001(\tB\003\340A\002B\350\001\n#com" - + ".google.cloud.aiplatform.v1beta1B\013EnvVar" - + "ProtoP\001ZIgoogle.golang.org/genproto/goog" - + "leapis/cloud/aiplatform/v1beta1;aiplatfo" - + "rm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" - + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" - + ":Cloud::AIPlatform::V1beta1b\006proto3" + + "\032\037google/api/field_behavior.proto\"/\n\006Env" + + "Var\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\005value\030\002 \001(\tB\003\340" + + "A\002B\350\001\n#com.google.cloud.aiplatform.v1bet" + + "a1B\013EnvVarProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_EnvVar_descriptor = @@ -72,7 +71,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java index 24399585f..93e8d9c6e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java @@ -134,6 +134,8 @@ private Event( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -565,7 +567,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -616,7 +618,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -641,7 +643,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1636,7 +1638,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1688,7 +1690,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1713,7 +1715,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1745,7 +1747,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1774,11 +1776,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java index a352ebb89..7e81f2105 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java @@ -222,7 +222,12 @@ public interface EventOrBuilder * * map<string, string> labels = 5; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventProto.java index ced76c5a6..057d0a949 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventProto.java @@ -45,33 +45,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/aiplatform/v1beta1/event." - + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" - + "google/api/annotations.proto\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\032\037google/protobuf/timestamp.prot" - + "o\"\242\003\n\005Event\022<\n\010artifact\030\001 \001(\tB*\340A\002\372A$\n\"a" - + "iplatform.googleapis.com/Artifact\022>\n\texe" - + "cution\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.googlea" - + "pis.com/Execution\0223\n\nevent_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022>\n\004type\030\004" - + " \001(\0162+.google.cloud.aiplatform.v1beta1.E" - + "vent.TypeB\003\340A\002\022B\n\006labels\030\005 \003(\01322.google." - + "cloud.aiplatform.v1beta1.Event.LabelsEnt" - + "ry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"3\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022" - + "\t\n\005INPUT\020\001\022\n\n\006OUTPUT\020\002B\347\001\n#com.google.cl" - + "oud.aiplatform.v1beta1B\nEventProtoP\001ZIgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" - + "latform::V1beta1b\006proto3" + + "proto\022\037google.cloud.aiplatform.v1beta1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\037google/protobuf/time" + + "stamp.proto\"\242\003\n\005Event\022<\n\010artifact\030\001 \001(\tB" + + "*\340A\002\372A$\n\"aiplatform.googleapis.com/Artif" + + "act\022>\n\texecution\030\002 \001(\tB+\340A\003\372A%\n#aiplatfo" + + "rm.googleapis.com/Execution\0223\n\nevent_tim" + + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022>\n\004type\030\004 \001(\0162+.google.cloud.aiplatform" + + ".v1beta1.Event.TypeB\003\340A\002\022B\n\006labels\030\005 \003(\013" + + "22.google.cloud.aiplatform.v1beta1.Event" + + ".LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\004Type\022\024\n\020TYPE_UNSP" + + "ECIFIED\020\000\022\t\n\005INPUT\020\001\022\n\n\006OUTPUT\020\002B\347\001\n#com" + + ".google.cloud.aiplatform.v1beta1B\nEventP" + + "rotoP\001ZIgoogle.golang.org/genproto/googl" + + "eapis/cloud/aiplatform/v1beta1;aiplatfor" + + "m\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Go" + + "ogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::" + + "Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -98,7 +96,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Similarity.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java similarity index 82% rename from proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Similarity.java rename to proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java index 6e90113c1..e21669e2b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Similarity.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java @@ -22,28 +22,28 @@ * * *
- * Similarity explainability that returns the nearest neighbors from the
+ * Example-based explainability that returns the nearest neighbors from the
  * provided dataset.
  * 
* - * Protobuf type {@code google.cloud.aiplatform.v1beta1.Similarity} + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Examples} */ -public final class Similarity extends com.google.protobuf.GeneratedMessageV3 +public final class Examples extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Similarity) - SimilarityOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Examples) + ExamplesOrBuilder { private static final long serialVersionUID = 0L; - // Use Similarity.newBuilder() to construct. - private Similarity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Examples.newBuilder() to construct. + private Examples(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Similarity() {} + private Examples() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Similarity(); + return new Examples(); } @java.lang.Override @@ -51,7 +51,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Similarity( + private Examples( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -98,6 +98,11 @@ private Similarity( nearestNeighborSearchConfig_ = subBuilder.buildPartial(); } + break; + } + case 24: + { + neighborCount_ = input.readInt32(); break; } default: @@ -111,6 +116,8 @@ private Similarity( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -121,17 +128,17 @@ private Similarity( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.ExplanationProto - .internal_static_google_cloud_aiplatform_v1beta1_Similarity_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.ExplanationProto - .internal_static_google_cloud_aiplatform_v1beta1_Similarity_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_Examples_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.Similarity.class, - com.google.cloud.aiplatform.v1beta1.Similarity.Builder.class); + com.google.cloud.aiplatform.v1beta1.Examples.class, + com.google.cloud.aiplatform.v1beta1.Examples.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; @@ -233,6 +240,24 @@ public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilde return getNearestNeighborSearchConfig(); } + public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 3; + private int neighborCount_; + /** + * + * + *
+   * The number of neighbors to return.
+   * 
+ * + * int32 neighbor_count = 3; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -253,6 +278,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (nearestNeighborSearchConfig_ != null) { output.writeMessage(2, getNearestNeighborSearchConfig()); } + if (neighborCount_ != 0) { + output.writeInt32(3, neighborCount_); + } unknownFields.writeTo(output); } @@ -270,6 +298,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getNearestNeighborSearchConfig()); } + if (neighborCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, neighborCount_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -280,11 +311,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Similarity)) { + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Examples)) { return super.equals(obj); } - com.google.cloud.aiplatform.v1beta1.Similarity other = - (com.google.cloud.aiplatform.v1beta1.Similarity) obj; + com.google.cloud.aiplatform.v1beta1.Examples other = + (com.google.cloud.aiplatform.v1beta1.Examples) obj; if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { @@ -295,6 +326,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNearestNeighborSearchConfig().equals(other.getNearestNeighborSearchConfig())) return false; } + if (getNeighborCount() != other.getNeighborCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -314,76 +346,78 @@ public int hashCode() { hash = (37 * hash) + NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNearestNeighborSearchConfig().hashCode(); } + hash = (37 * hash) + NEIGHBOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNeighborCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom(byte[] data) + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom(java.io.InputStream input) + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseDelimitedFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseDelimitedFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.Similarity parseFrom( + public static com.google.cloud.aiplatform.v1beta1.Examples parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -400,7 +434,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Similarity prototype) { + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Examples prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -418,32 +452,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Similarity explainability that returns the nearest neighbors from the
+   * Example-based explainability that returns the nearest neighbors from the
    * provided dataset.
    * 
* - * Protobuf type {@code google.cloud.aiplatform.v1beta1.Similarity} + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Examples} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Similarity) - com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Examples) + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.ExplanationProto - .internal_static_google_cloud_aiplatform_v1beta1_Similarity_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.ExplanationProto - .internal_static_google_cloud_aiplatform_v1beta1_Similarity_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_Examples_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.Similarity.class, - com.google.cloud.aiplatform.v1beta1.Similarity.Builder.class); + com.google.cloud.aiplatform.v1beta1.Examples.class, + com.google.cloud.aiplatform.v1beta1.Examples.Builder.class); } - // Construct using com.google.cloud.aiplatform.v1beta1.Similarity.newBuilder() + // Construct using com.google.cloud.aiplatform.v1beta1.Examples.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -472,23 +506,25 @@ public Builder clear() { nearestNeighborSearchConfig_ = null; nearestNeighborSearchConfigBuilder_ = null; } + neighborCount_ = 0; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.aiplatform.v1beta1.ExplanationProto - .internal_static_google_cloud_aiplatform_v1beta1_Similarity_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.Similarity getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance(); + public com.google.cloud.aiplatform.v1beta1.Examples getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.Similarity build() { - com.google.cloud.aiplatform.v1beta1.Similarity result = buildPartial(); + public com.google.cloud.aiplatform.v1beta1.Examples build() { + com.google.cloud.aiplatform.v1beta1.Examples result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -496,9 +532,9 @@ public com.google.cloud.aiplatform.v1beta1.Similarity build() { } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.Similarity buildPartial() { - com.google.cloud.aiplatform.v1beta1.Similarity result = - new com.google.cloud.aiplatform.v1beta1.Similarity(this); + public com.google.cloud.aiplatform.v1beta1.Examples buildPartial() { + com.google.cloud.aiplatform.v1beta1.Examples result = + new com.google.cloud.aiplatform.v1beta1.Examples(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -509,6 +545,7 @@ public com.google.cloud.aiplatform.v1beta1.Similarity buildPartial() { } else { result.nearestNeighborSearchConfig_ = nearestNeighborSearchConfigBuilder_.build(); } + result.neighborCount_ = neighborCount_; onBuilt(); return result; } @@ -548,22 +585,25 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1beta1.Similarity) { - return mergeFrom((com.google.cloud.aiplatform.v1beta1.Similarity) other); + if (other instanceof com.google.cloud.aiplatform.v1beta1.Examples) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Examples) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Similarity other) { - if (other == com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Examples other) { + if (other == com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance()) return this; if (other.hasGcsSource()) { mergeGcsSource(other.getGcsSource()); } if (other.hasNearestNeighborSearchConfig()) { mergeNearestNeighborSearchConfig(other.getNearestNeighborSearchConfig()); } + if (other.getNeighborCount() != 0) { + setNeighborCount(other.getNeighborCount()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -579,11 +619,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.aiplatform.v1beta1.Similarity parsedMessage = null; + com.google.cloud.aiplatform.v1beta1.Examples parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.aiplatform.v1beta1.Similarity) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Examples) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -974,6 +1014,58 @@ public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilde return nearestNeighborSearchConfigBuilder_; } + private int neighborCount_; + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 3; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 3; + * + * @param value The neighborCount to set. + * @return This builder for chaining. + */ + public Builder setNeighborCount(int value) { + + neighborCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearNeighborCount() { + + neighborCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -985,42 +1077,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Similarity) + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Examples) } - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Similarity) - private static final com.google.cloud.aiplatform.v1beta1.Similarity DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Examples) + private static final com.google.cloud.aiplatform.v1beta1.Examples DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Similarity(); + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Examples(); } - public static com.google.cloud.aiplatform.v1beta1.Similarity getDefaultInstance() { + public static com.google.cloud.aiplatform.v1beta1.Examples getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Similarity parsePartialFrom( + public Examples parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Similarity(input, extensionRegistry); + return new Examples(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.Similarity getDefaultInstanceForType() { + public com.google.cloud.aiplatform.v1beta1.Examples getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SimilarityOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOrBuilder.java similarity index 91% rename from proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SimilarityOrBuilder.java rename to proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOrBuilder.java index ca403f43f..17d320876 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SimilarityOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOrBuilder.java @@ -18,9 +18,9 @@ package com.google.cloud.aiplatform.v1beta1; -public interface SimilarityOrBuilder +public interface ExamplesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Similarity) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Examples) com.google.protobuf.MessageOrBuilder { /** @@ -95,4 +95,17 @@ public interface SimilarityOrBuilder * .google.protobuf.Value nearest_neighbor_search_config = 2; */ com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder(); + + /** + * + * + *
+   * The number of neighbors to return.
+   * 
+ * + * int32 neighbor_count = 3; + * + * @return The neighborCount. + */ + int getNeighborCount(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java index b708c24e3..d7da93190 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java @@ -194,6 +194,8 @@ private Execution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -710,7 +712,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -755,7 +757,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -777,7 +779,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2111,7 +2113,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2157,7 +2159,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2179,7 +2181,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2208,7 +2210,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2234,11 +2236,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java index 33f8ff63d..2088b06d5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java @@ -195,7 +195,12 @@ public interface ExecutionOrBuilder * * map<string, string> labels = 10; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java index 502e63be3..2e43a3a5d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java @@ -46,45 +46,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/aiplatform/v1beta1/execut" + "ion.proto\022\037google.cloud.aiplatform.v1bet" - + "a1\032\034google/api/annotations.proto\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032+google/cloud/aiplatform/v1" - + "beta1/value.proto\032\034google/protobuf/struc" - + "t.proto\032\037google/protobuf/timestamp.proto" - + "\"\313\005\n\tExecution\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014dis" - + "play_name\030\002 \001(\t\022?\n\005state\030\006 \001(\01620.google." - + "cloud.aiplatform.v1beta1.Execution.State" - + "\022\014\n\004etag\030\t \001(\t\022F\n\006labels\030\n \003(\01326.google." - + "cloud.aiplatform.v1beta1.Execution.Label" - + "sEntry\0224\n\013create_time\030\013 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\014sc" - + "hema_title\030\r \001(\t\022\026\n\016schema_version\030\016 \001(\t" - + "\022)\n\010metadata\030\017 \001(\0132\027.google.protobuf.Str" - + "uct\022\023\n\013description\030\020 \001(\t\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\007\n\003NEW\020\001\022\013\n\007RUNN" - + "ING\020\002\022\014\n\010COMPLETE\020\003\022\n\n\006FAILED\020\004\022\n\n\006CACHE" - + "D\020\005\022\r\n\tCANCELLED\020\006:\211\001\352A\205\001\n#aiplatform.go" - + "ogleapis.com/Execution\022^projects/{projec" - + "t}/locations/{location}/metadataStores/{" - + "metadata_store}/executions/{execution}B\353" - + "\001\n#com.google.cloud.aiplatform.v1beta1B\016" - + "ExecutionProtoP\001ZIgoogle.golang.org/genp" - + "roto/googleapis/cloud/aiplatform/v1beta1" - + ";aiplatform\252\002\037Google.Cloud.AIPlatform.V1" - + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" - + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" - + "oto3" + + "a1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\034google/protobuf/" + + "struct.proto\032\037google/protobuf/timestamp." + + "proto\"\313\005\n\tExecution\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024" + + "\n\014display_name\030\002 \001(\t\022?\n\005state\030\006 \001(\01620.go" + + "ogle.cloud.aiplatform.v1beta1.Execution." + + "State\022\014\n\004etag\030\t \001(\t\022F\n\006labels\030\n \003(\01326.go" + + "ogle.cloud.aiplatform.v1beta1.Execution." + + "LabelsEntry\0224\n\013create_time\030\013 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "\024\n\014schema_title\030\r \001(\t\022\026\n\016schema_version\030" + + "\016 \001(\t\022)\n\010metadata\030\017 \001(\0132\027.google.protobu" + + "f.Struct\022\023\n\013description\030\020 \001(\t\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\007\n\003NEW\020\001\022\013\n" + + "\007RUNNING\020\002\022\014\n\010COMPLETE\020\003\022\n\n\006FAILED\020\004\022\n\n\006" + + "CACHED\020\005\022\r\n\tCANCELLED\020\006:\211\001\352A\205\001\n#aiplatfo" + + "rm.googleapis.com/Execution\022^projects/{p" + + "roject}/locations/{location}/metadataSto" + + "res/{metadata_store}/executions/{executi" + + "on}B\353\001\n#com.google.cloud.aiplatform.v1be" + + "ta1B\016ExecutionProtoP\001ZIgoogle.golang.org" + + "/genproto/googleapis/cloud/aiplatform/v1" + + "beta1;aiplatform\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -122,10 +118,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java index f3853d1fb..310a848c9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java @@ -140,6 +140,8 @@ private ExplainRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java index dbf81071e..fe5454309 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java @@ -113,6 +113,8 @@ private ExplainResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java index eeac9701e..397f0447b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java @@ -95,6 +95,8 @@ private Explanation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 8a000d221..a63aa0bce 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 @@ -124,6 +124,8 @@ private ExplanationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -905,6 +907,8 @@ private InputMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1409,6 +1413,8 @@ private FeatureValueDomain( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -1525,16 +1531,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minValue_ != 0F) { + if (java.lang.Float.floatToRawIntBits(minValue_) != 0) { output.writeFloat(1, minValue_); } - if (maxValue_ != 0F) { + if (java.lang.Float.floatToRawIntBits(maxValue_) != 0) { output.writeFloat(2, maxValue_); } - if (originalMean_ != 0F) { + if (java.lang.Float.floatToRawIntBits(originalMean_) != 0) { output.writeFloat(3, originalMean_); } - if (originalStddev_ != 0F) { + if (java.lang.Float.floatToRawIntBits(originalStddev_) != 0) { output.writeFloat(4, originalStddev_); } unknownFields.writeTo(output); @@ -1546,16 +1552,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (minValue_ != 0F) { + if (java.lang.Float.floatToRawIntBits(minValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, minValue_); } - if (maxValue_ != 0F) { + if (java.lang.Float.floatToRawIntBits(maxValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, maxValue_); } - if (originalMean_ != 0F) { + if (java.lang.Float.floatToRawIntBits(originalMean_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, originalMean_); } - if (originalStddev_ != 0F) { + if (java.lang.Float.floatToRawIntBits(originalStddev_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, originalStddev_); } size += unknownFields.getSerializedSize(); @@ -2511,6 +2517,8 @@ private Visualization( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3645,10 +3653,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, colorMap_); } - if (clipPercentUpperbound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(clipPercentUpperbound_) != 0) { output.writeFloat(4, clipPercentUpperbound_); } - if (clipPercentLowerbound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(clipPercentLowerbound_) != 0) { output.writeFloat(5, clipPercentLowerbound_); } if (overlayType_ @@ -3684,10 +3692,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, colorMap_); } - if (clipPercentUpperbound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(clipPercentUpperbound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, clipPercentUpperbound_); } - if (clipPercentLowerbound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(clipPercentLowerbound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, clipPercentLowerbound_); } if (overlayType_ @@ -8965,6 +8973,8 @@ private OutputMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -9820,8 +9830,9 @@ public Builder mergeIndexDisplayNameMapping(com.google.protobuf.Value value) { } else { if (displayNameMappingCase_ == 1) { indexDisplayNameMappingBuilder_.mergeFrom(value); + } else { + indexDisplayNameMappingBuilder_.setMessage(value); } - indexDisplayNameMappingBuilder_.setMessage(value); } displayNameMappingCase_ = 1; return this; @@ -10337,7 +10348,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -10402,7 +10413,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata get java.lang.String key, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> @@ -10434,7 +10445,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata get public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> @@ -10500,7 +10511,7 @@ public int getOutputsCount() { @java.lang.Override public boolean containsOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetOutputs().getMap().containsKey(key); } @@ -10555,7 +10566,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata ge java.lang.String key, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -10583,7 +10594,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata ge public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -11112,7 +11123,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -11177,7 +11188,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata get java.lang.String key, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -11210,7 +11221,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata get public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -11249,7 +11260,7 @@ public Builder clearInputs() { */ public Builder removeInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableInputs().getMutableMap().remove(key); return this; @@ -11286,11 +11297,12 @@ public Builder putInputs( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableInputs().getMutableMap().put(key, value); return this; } @@ -11376,7 +11388,7 @@ public int getOutputsCount() { @java.lang.Override public boolean containsOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetOutputs().getMap().containsKey(key); } @@ -11434,7 +11446,7 @@ public boolean containsOutputs(java.lang.String key) { java.lang.String key, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -11462,7 +11474,7 @@ public boolean containsOutputs(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -11496,7 +11508,7 @@ public Builder clearOutputs() { */ public Builder removeOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableOutputs().getMutableMap().remove(key); return this; @@ -11529,11 +11541,12 @@ public Builder putOutputs( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableOutputs().getMutableMap().put(key, value); return this; } 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 c4cec2756..5f34964a1 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 @@ -117,8 +117,11 @@ public interface ExplanationMetadataOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> inputs = 1 [(.google.api.field_behavior) = REQUIRED]; *
*/ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata defaultValue); /** * @@ -218,8 +221,11 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsO * map<string, .google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata defaultValue); /** * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java index e1ed5ec8d..fd92dd7e2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java @@ -99,6 +99,8 @@ private ExplanationMetadataOverride( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -285,6 +287,8 @@ private InputMetadataOverride( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1352,7 +1356,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -1409,7 +1413,7 @@ public boolean containsInputs(java.lang.String key) { com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -1436,7 +1440,7 @@ public boolean containsInputs(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride getInputsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -1856,7 +1860,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -1913,7 +1917,7 @@ public boolean containsInputs(java.lang.String key) { com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -1940,7 +1944,7 @@ public boolean containsInputs(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride getInputsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, @@ -1973,7 +1977,7 @@ public Builder clearInputs() { */ public Builder removeInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableInputs().getMutableMap().remove(key); return this; @@ -2006,11 +2010,12 @@ public Builder putInputs( com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableInputs().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java index d668b24b2..9615086f0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java @@ -95,9 +95,12 @@ public interface ExplanationMetadataOverrideOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride> inputs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride defaultValue); /** diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java index 110b984bc..5ebfb58b8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java @@ -66,82 +66,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n:google/cloud/aiplatform/v1beta1/explan" + "ation_metadata.proto\022\037google.cloud.aipla" - + "tform.v1beta1\032\034google/api/annotations.pr" - + "oto\032\037google/api/field_behavior.proto\032\034go" - + "ogle/protobuf/struct.proto\"\351\022\n\023Explanati" - + "onMetadata\022U\n\006inputs\030\001 \003(\0132@.google.clou" - + "d.aiplatform.v1beta1.ExplanationMetadata" - + ".InputsEntryB\003\340A\002\022W\n\007outputs\030\002 \003(\0132A.goo" + + "tform.v1beta1\032\037google/api/field_behavior" + + ".proto\032\034google/protobuf/struct.proto\"\351\022\n" + + "\023ExplanationMetadata\022U\n\006inputs\030\001 \003(\0132@.g" + + "oogle.cloud.aiplatform.v1beta1.Explanati" + + "onMetadata.InputsEntryB\003\340A\002\022W\n\007outputs\030\002" + + " \003(\0132A.google.cloud.aiplatform.v1beta1.E" + + "xplanationMetadata.OutputsEntryB\003\340A\002\022\'\n\037" + + "feature_attributions_schema_uri\030\003 \001(\t\032\347\r" + + "\n\rInputMetadata\022/\n\017input_baselines\030\001 \003(\013" + + "2\026.google.protobuf.Value\022\031\n\021input_tensor" + + "_name\030\002 \001(\t\022]\n\010encoding\030\003 \001(\0162K.google.c" + + "loud.aiplatform.v1beta1.ExplanationMetad" + + "ata.InputMetadata.Encoding\022\020\n\010modality\030\004" + + " \001(\t\022s\n\024feature_value_domain\030\005 \001(\0132U.goo" + "gle.cloud.aiplatform.v1beta1.Explanation" - + "Metadata.OutputsEntryB\003\340A\002\022\'\n\037feature_at" - + "tributions_schema_uri\030\003 \001(\t\032\347\r\n\rInputMet" - + "adata\022/\n\017input_baselines\030\001 \003(\0132\026.google." - + "protobuf.Value\022\031\n\021input_tensor_name\030\002 \001(" - + "\t\022]\n\010encoding\030\003 \001(\0162K.google.cloud.aipla" - + "tform.v1beta1.ExplanationMetadata.InputM" - + "etadata.Encoding\022\020\n\010modality\030\004 \001(\t\022s\n\024fe" - + "ature_value_domain\030\005 \001(\0132U.google.cloud." + + "Metadata.InputMetadata.FeatureValueDomai" + + "n\022\033\n\023indices_tensor_name\030\006 \001(\t\022\037\n\027dense_" + + "shape_tensor_name\030\007 \001(\t\022\035\n\025index_feature" + + "_mapping\030\010 \003(\t\022\033\n\023encoded_tensor_name\030\t " + + "\001(\t\0221\n\021encoded_baselines\030\n \003(\0132\026.google." + + "protobuf.Value\022g\n\rvisualization\030\013 \001(\0132P." + + "google.cloud.aiplatform.v1beta1.Explanat" + + "ionMetadata.InputMetadata.Visualization\022" + + "\022\n\ngroup_name\030\014 \001(\t\032j\n\022FeatureValueDomai" + + "n\022\021\n\tmin_value\030\001 \001(\002\022\021\n\tmax_value\030\002 \001(\002\022" + + "\025\n\roriginal_mean\030\003 \001(\002\022\027\n\017original_stdde" + + "v\030\004 \001(\002\032\352\006\n\rVisualization\022c\n\004type\030\001 \001(\0162" + + "U.google.cloud.aiplatform.v1beta1.Explan" + + "ationMetadata.InputMetadata.Visualizatio" + + "n.Type\022k\n\010polarity\030\002 \001(\0162Y.google.cloud." + "aiplatform.v1beta1.ExplanationMetadata.I" - + "nputMetadata.FeatureValueDomain\022\033\n\023indic" - + "es_tensor_name\030\006 \001(\t\022\037\n\027dense_shape_tens" - + "or_name\030\007 \001(\t\022\035\n\025index_feature_mapping\030\010" - + " \003(\t\022\033\n\023encoded_tensor_name\030\t \001(\t\0221\n\021enc" - + "oded_baselines\030\n \003(\0132\026.google.protobuf.V" - + "alue\022g\n\rvisualization\030\013 \001(\0132P.google.clo" - + "ud.aiplatform.v1beta1.ExplanationMetadat" - + "a.InputMetadata.Visualization\022\022\n\ngroup_n" - + "ame\030\014 \001(\t\032j\n\022FeatureValueDomain\022\021\n\tmin_v" - + "alue\030\001 \001(\002\022\021\n\tmax_value\030\002 \001(\002\022\025\n\rorigina" - + "l_mean\030\003 \001(\002\022\027\n\017original_stddev\030\004 \001(\002\032\352\006" - + "\n\rVisualization\022c\n\004type\030\001 \001(\0162U.google.c" - + "loud.aiplatform.v1beta1.ExplanationMetad" - + "ata.InputMetadata.Visualization.Type\022k\n\010" - + "polarity\030\002 \001(\0162Y.google.cloud.aiplatform" + + "nputMetadata.Visualization.Polarity\022l\n\tc" + + "olor_map\030\003 \001(\0162Y.google.cloud.aiplatform" + ".v1beta1.ExplanationMetadata.InputMetada" - + "ta.Visualization.Polarity\022l\n\tcolor_map\030\003" - + " \001(\0162Y.google.cloud.aiplatform.v1beta1.E" - + "xplanationMetadata.InputMetadata.Visuali" - + "zation.ColorMap\022\037\n\027clip_percent_upperbou" - + "nd\030\004 \001(\002\022\037\n\027clip_percent_lowerbound\030\005 \001(" - + "\002\022r\n\014overlay_type\030\006 \001(\0162\\.google.cloud.a" - + "iplatform.v1beta1.ExplanationMetadata.In" - + "putMetadata.Visualization.OverlayType\"6\n" - + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006PIXELS\020\001\022" - + "\014\n\010OUTLINES\020\002\"J\n\010Polarity\022\030\n\024POLARITY_UN" - + "SPECIFIED\020\000\022\014\n\010POSITIVE\020\001\022\014\n\010NEGATIVE\020\002\022" - + "\010\n\004BOTH\020\003\"{\n\010ColorMap\022\031\n\025COLOR_MAP_UNSPE" - + "CIFIED\020\000\022\016\n\nPINK_GREEN\020\001\022\013\n\007VIRIDIS\020\002\022\007\n" - + "\003RED\020\003\022\t\n\005GREEN\020\004\022\r\n\tRED_GREEN\020\006\022\024\n\020PINK" - + "_WHITE_GREEN\020\005\"b\n\013OverlayType\022\034\n\030OVERLAY" - + "_TYPE_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\014\n\010ORIGINA" - + "L\020\002\022\r\n\tGRAYSCALE\020\003\022\016\n\nMASK_BLACK\020\004\"\240\001\n\010E" - + "ncoding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010IDE" - + "NTITY\020\001\022\023\n\017BAG_OF_FEATURES\020\002\022\032\n\026BAG_OF_F" - + "EATURES_SPARSE\020\003\022\r\n\tINDICATOR\020\004\022\026\n\022COMBI" - + "NED_EMBEDDING\020\005\022\024\n\020CONCAT_EMBEDDING\020\006\032\246\001" - + "\n\016OutputMetadata\022<\n\032index_display_name_m" - + "apping\030\001 \001(\0132\026.google.protobuf.ValueH\000\022\"" - + "\n\030display_name_mapping_key\030\002 \001(\tH\000\022\032\n\022ou" - + "tput_tensor_name\030\003 \001(\tB\026\n\024display_name_m" - + "apping\032q\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022Q\n\005va" - + "lue\030\002 \001(\0132B.google.cloud.aiplatform.v1be" - + "ta1.ExplanationMetadata.InputMetadata:\0028" - + "\001\032s\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t\022R\n\005value\030" - + "\002 \001(\0132C.google.cloud.aiplatform.v1beta1." - + "ExplanationMetadata.OutputMetadata:\0028\001B\365" - + "\001\n#com.google.cloud.aiplatform.v1beta1B\030" - + "ExplanationMetadataProtoP\001ZIgoogle.golan" - + "g.org/genproto/googleapis/cloud/aiplatfo" - + "rm/v1beta1;aiplatform\252\002\037Google.Cloud.AIP" - + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" - + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" - + "1beta1b\006proto3" + + "ta.Visualization.ColorMap\022\037\n\027clip_percen" + + "t_upperbound\030\004 \001(\002\022\037\n\027clip_percent_lower" + + "bound\030\005 \001(\002\022r\n\014overlay_type\030\006 \001(\0162\\.goog" + + "le.cloud.aiplatform.v1beta1.ExplanationM" + + "etadata.InputMetadata.Visualization.Over" + + "layType\"6\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006PIXELS\020\001\022\014\n\010OUTLINES\020\002\"J\n\010Polarity\022\030\n\024P" + + "OLARITY_UNSPECIFIED\020\000\022\014\n\010POSITIVE\020\001\022\014\n\010N" + + "EGATIVE\020\002\022\010\n\004BOTH\020\003\"{\n\010ColorMap\022\031\n\025COLOR" + + "_MAP_UNSPECIFIED\020\000\022\016\n\nPINK_GREEN\020\001\022\013\n\007VI" + + "RIDIS\020\002\022\007\n\003RED\020\003\022\t\n\005GREEN\020\004\022\r\n\tRED_GREEN" + + "\020\006\022\024\n\020PINK_WHITE_GREEN\020\005\"b\n\013OverlayType\022" + + "\034\n\030OVERLAY_TYPE_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022" + + "\014\n\010ORIGINAL\020\002\022\r\n\tGRAYSCALE\020\003\022\016\n\nMASK_BLA" + + "CK\020\004\"\240\001\n\010Encoding\022\030\n\024ENCODING_UNSPECIFIE" + + "D\020\000\022\014\n\010IDENTITY\020\001\022\023\n\017BAG_OF_FEATURES\020\002\022\032" + + "\n\026BAG_OF_FEATURES_SPARSE\020\003\022\r\n\tINDICATOR\020" + + "\004\022\026\n\022COMBINED_EMBEDDING\020\005\022\024\n\020CONCAT_EMBE" + + "DDING\020\006\032\246\001\n\016OutputMetadata\022<\n\032index_disp" + + "lay_name_mapping\030\001 \001(\0132\026.google.protobuf" + + ".ValueH\000\022\"\n\030display_name_mapping_key\030\002 \001" + + "(\tH\000\022\032\n\022output_tensor_name\030\003 \001(\tB\026\n\024disp" + + "lay_name_mapping\032q\n\013InputsEntry\022\013\n\003key\030\001" + + " \001(\t\022Q\n\005value\030\002 \001(\0132B.google.cloud.aipla" + + "tform.v1beta1.ExplanationMetadata.InputM" + + "etadata:\0028\001\032s\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t" + + "\022R\n\005value\030\002 \001(\0132C.google.cloud.aiplatfor" + + "m.v1beta1.ExplanationMetadata.OutputMeta" + + "data:\0028\001B\365\001\n#com.google.cloud.aiplatform" + + ".v1beta1B\030ExplanationMetadataProtoP\001ZIgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" + + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" + + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" + + "latform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); @@ -237,7 +235,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java index 7b92ebcb0..f939a42ae 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java @@ -150,15 +150,15 @@ private ExplanationParameters( } case 58: { - com.google.cloud.aiplatform.v1beta1.Similarity.Builder subBuilder = null; + com.google.cloud.aiplatform.v1beta1.Examples.Builder subBuilder = null; if (methodCase_ == 7) { - subBuilder = ((com.google.cloud.aiplatform.v1beta1.Similarity) method_).toBuilder(); + subBuilder = ((com.google.cloud.aiplatform.v1beta1.Examples) method_).toBuilder(); } method_ = input.readMessage( - com.google.cloud.aiplatform.v1beta1.Similarity.parser(), extensionRegistry); + com.google.cloud.aiplatform.v1beta1.Examples.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.Similarity) method_); + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.Examples) method_); method_ = subBuilder.buildPartial(); } methodCase_ = 7; @@ -175,6 +175,8 @@ private ExplanationParameters( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -208,7 +210,7 @@ public enum MethodCase SAMPLED_SHAPLEY_ATTRIBUTION(1), INTEGRATED_GRADIENTS_ATTRIBUTION(2), XRAI_ATTRIBUTION(3), - SIMILARITY(7), + EXAMPLES(7), METHOD_NOT_SET(0); private final int value; @@ -234,7 +236,7 @@ public static MethodCase forNumber(int value) { case 3: return XRAI_ATTRIBUTION; case 7: - return SIMILARITY; + return EXAMPLES; case 0: return METHOD_NOT_SET; default: @@ -457,58 +459,58 @@ public com.google.cloud.aiplatform.v1beta1.XraiAttribution getXraiAttribution() return com.google.cloud.aiplatform.v1beta1.XraiAttribution.getDefaultInstance(); } - public static final int SIMILARITY_FIELD_NUMBER = 7; + public static final int EXAMPLES_FIELD_NUMBER = 7; /** * * *
-   * Similarity explainability that returns the nearest neighbors from the
+   * Example-based explanations that returns the nearest neighbors from the
    * provided dataset.
    * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; * - * @return Whether the similarity field is set. + * @return Whether the examples field is set. */ @java.lang.Override - public boolean hasSimilarity() { + public boolean hasExamples() { return methodCase_ == 7; } /** * * *
-   * Similarity explainability that returns the nearest neighbors from the
+   * Example-based explanations that returns the nearest neighbors from the
    * provided dataset.
    * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; * - * @return The similarity. + * @return The examples. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.Similarity getSimilarity() { + public com.google.cloud.aiplatform.v1beta1.Examples getExamples() { if (methodCase_ == 7) { - return (com.google.cloud.aiplatform.v1beta1.Similarity) method_; + return (com.google.cloud.aiplatform.v1beta1.Examples) method_; } - return com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance(); } /** * * *
-   * Similarity explainability that returns the nearest neighbors from the
+   * Example-based explanations that returns the nearest neighbors from the
    * provided dataset.
    * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder getSimilarityOrBuilder() { + public com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilder() { if (methodCase_ == 7) { - return (com.google.cloud.aiplatform.v1beta1.Similarity) method_; + return (com.google.cloud.aiplatform.v1beta1.Examples) method_; } - return com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance(); } public static final int TOP_K_FIELD_NUMBER = 4; @@ -636,7 +638,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(5, getOutputIndices()); } if (methodCase_ == 7) { - output.writeMessage(7, (com.google.cloud.aiplatform.v1beta1.Similarity) method_); + output.writeMessage(7, (com.google.cloud.aiplatform.v1beta1.Examples) method_); } unknownFields.writeTo(output); } @@ -671,7 +673,7 @@ public int getSerializedSize() { if (methodCase_ == 7) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.aiplatform.v1beta1.Similarity) method_); + 7, (com.google.cloud.aiplatform.v1beta1.Examples) method_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -708,7 +710,7 @@ public boolean equals(final java.lang.Object obj) { if (!getXraiAttribution().equals(other.getXraiAttribution())) return false; break; case 7: - if (!getSimilarity().equals(other.getSimilarity())) return false; + if (!getExamples().equals(other.getExamples())) return false; break; case 0: default: @@ -744,8 +746,8 @@ public int hashCode() { hash = (53 * hash) + getXraiAttribution().hashCode(); break; case 7: - hash = (37 * hash) + SIMILARITY_FIELD_NUMBER; - hash = (53 * hash) + getSimilarity().hashCode(); + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getExamples().hashCode(); break; case 0: default: @@ -955,10 +957,10 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationParameters buildPartial() } } if (methodCase_ == 7) { - if (similarityBuilder_ == null) { + if (examplesBuilder_ == null) { result.method_ = method_; } else { - result.method_ = similarityBuilder_.build(); + result.method_ = examplesBuilder_.build(); } } result.topK_ = topK_; @@ -1040,9 +1042,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplanationParamete mergeXraiAttribution(other.getXraiAttribution()); break; } - case SIMILARITY: + case EXAMPLES: { - mergeSimilarity(other.getSimilarity()); + mergeExamples(other.getExamples()); break; } case METHOD_NOT_SET: @@ -1236,8 +1238,9 @@ public Builder mergeSampledShapleyAttribution( } else { if (methodCase_ == 1) { sampledShapleyAttributionBuilder_.mergeFrom(value); + } else { + sampledShapleyAttributionBuilder_.setMessage(value); } - sampledShapleyAttributionBuilder_.setMessage(value); } methodCase_ = 1; return this; @@ -1496,8 +1499,9 @@ public Builder mergeIntegratedGradientsAttribution( } else { if (methodCase_ == 2) { integratedGradientsAttributionBuilder_.mergeFrom(value); + } else { + integratedGradientsAttributionBuilder_.setMessage(value); } - integratedGradientsAttributionBuilder_.setMessage(value); } methodCase_ = 2; return this; @@ -1762,8 +1766,9 @@ public Builder mergeXraiAttribution(com.google.cloud.aiplatform.v1beta1.XraiAttr } else { if (methodCase_ == 3) { xraiAttributionBuilder_.mergeFrom(value); + } else { + xraiAttributionBuilder_.setMessage(value); } - xraiAttributionBuilder_.setMessage(value); } methodCase_ = 3; return this; @@ -1889,71 +1894,71 @@ public com.google.cloud.aiplatform.v1beta1.XraiAttribution.Builder getXraiAttrib } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.Similarity, - com.google.cloud.aiplatform.v1beta1.Similarity.Builder, - com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder> - similarityBuilder_; + com.google.cloud.aiplatform.v1beta1.Examples, + com.google.cloud.aiplatform.v1beta1.Examples.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder> + examplesBuilder_; /** * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; * - * @return Whether the similarity field is set. + * @return Whether the examples field is set. */ @java.lang.Override - public boolean hasSimilarity() { + public boolean hasExamples() { return methodCase_ == 7; } /** * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; * - * @return The similarity. + * @return The examples. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.Similarity getSimilarity() { - if (similarityBuilder_ == null) { + public com.google.cloud.aiplatform.v1beta1.Examples getExamples() { + if (examplesBuilder_ == null) { if (methodCase_ == 7) { - return (com.google.cloud.aiplatform.v1beta1.Similarity) method_; + return (com.google.cloud.aiplatform.v1beta1.Examples) method_; } - return com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance(); } else { if (methodCase_ == 7) { - return similarityBuilder_.getMessage(); + return examplesBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance(); } } /** * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ - public Builder setSimilarity(com.google.cloud.aiplatform.v1beta1.Similarity value) { - if (similarityBuilder_ == null) { + public Builder setExamples(com.google.cloud.aiplatform.v1beta1.Examples value) { + if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } method_ = value; onChanged(); } else { - similarityBuilder_.setMessage(value); + examplesBuilder_.setMessage(value); } methodCase_ = 7; return this; @@ -1962,19 +1967,19 @@ public Builder setSimilarity(com.google.cloud.aiplatform.v1beta1.Similarity valu * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ - public Builder setSimilarity( - com.google.cloud.aiplatform.v1beta1.Similarity.Builder builderForValue) { - if (similarityBuilder_ == null) { + public Builder setExamples( + com.google.cloud.aiplatform.v1beta1.Examples.Builder builderForValue) { + if (examplesBuilder_ == null) { method_ = builderForValue.build(); onChanged(); } else { - similarityBuilder_.setMessage(builderForValue.build()); + examplesBuilder_.setMessage(builderForValue.build()); } methodCase_ = 7; return this; @@ -1983,19 +1988,19 @@ public Builder setSimilarity( * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ - public Builder mergeSimilarity(com.google.cloud.aiplatform.v1beta1.Similarity value) { - if (similarityBuilder_ == null) { + public Builder mergeExamples(com.google.cloud.aiplatform.v1beta1.Examples value) { + if (examplesBuilder_ == null) { if (methodCase_ == 7 - && method_ != com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance()) { + && method_ != com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance()) { method_ = - com.google.cloud.aiplatform.v1beta1.Similarity.newBuilder( - (com.google.cloud.aiplatform.v1beta1.Similarity) method_) + com.google.cloud.aiplatform.v1beta1.Examples.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Examples) method_) .mergeFrom(value) .buildPartial(); } else { @@ -2004,9 +2009,10 @@ public Builder mergeSimilarity(com.google.cloud.aiplatform.v1beta1.Similarity va onChanged(); } else { if (methodCase_ == 7) { - similarityBuilder_.mergeFrom(value); + examplesBuilder_.mergeFrom(value); + } else { + examplesBuilder_.setMessage(value); } - similarityBuilder_.setMessage(value); } methodCase_ = 7; return this; @@ -2015,14 +2021,14 @@ public Builder mergeSimilarity(com.google.cloud.aiplatform.v1beta1.Similarity va * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ - public Builder clearSimilarity() { - if (similarityBuilder_ == null) { + public Builder clearExamples() { + if (examplesBuilder_ == null) { if (methodCase_ == 7) { methodCase_ = 0; method_ = null; @@ -2033,7 +2039,7 @@ public Builder clearSimilarity() { methodCase_ = 0; method_ = null; } - similarityBuilder_.clear(); + examplesBuilder_.clear(); } return this; } @@ -2041,61 +2047,61 @@ public Builder clearSimilarity() { * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ - public com.google.cloud.aiplatform.v1beta1.Similarity.Builder getSimilarityBuilder() { - return getSimilarityFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.Examples.Builder getExamplesBuilder() { + return getExamplesFieldBuilder().getBuilder(); } /** * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder getSimilarityOrBuilder() { - if ((methodCase_ == 7) && (similarityBuilder_ != null)) { - return similarityBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilder() { + if ((methodCase_ == 7) && (examplesBuilder_ != null)) { + return examplesBuilder_.getMessageOrBuilder(); } else { if (methodCase_ == 7) { - return (com.google.cloud.aiplatform.v1beta1.Similarity) method_; + return (com.google.cloud.aiplatform.v1beta1.Examples) method_; } - return com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance(); } } /** * * *
-     * Similarity explainability that returns the nearest neighbors from the
+     * Example-based explanations that returns the nearest neighbors from the
      * provided dataset.
      * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.Similarity, - com.google.cloud.aiplatform.v1beta1.Similarity.Builder, - com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder> - getSimilarityFieldBuilder() { - if (similarityBuilder_ == null) { + com.google.cloud.aiplatform.v1beta1.Examples, + com.google.cloud.aiplatform.v1beta1.Examples.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder> + getExamplesFieldBuilder() { + if (examplesBuilder_ == null) { if (!(methodCase_ == 7)) { - method_ = com.google.cloud.aiplatform.v1beta1.Similarity.getDefaultInstance(); + method_ = com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance(); } - similarityBuilder_ = + examplesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.Similarity, - com.google.cloud.aiplatform.v1beta1.Similarity.Builder, - com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.Similarity) method_, + com.google.cloud.aiplatform.v1beta1.Examples, + com.google.cloud.aiplatform.v1beta1.Examples.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Examples) method_, getParentForChildren(), isClean()); method_ = null; @@ -2103,7 +2109,7 @@ public com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder getSimilarityOrBu methodCase_ = 7; onChanged(); ; - return similarityBuilder_; + return examplesBuilder_; } private int topK_; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParametersOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParametersOrBuilder.java index 31f8ba8a6..b7383209c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParametersOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParametersOrBuilder.java @@ -183,39 +183,39 @@ public interface ExplanationParametersOrBuilder * * *
-   * Similarity explainability that returns the nearest neighbors from the
+   * Example-based explanations that returns the nearest neighbors from the
    * provided dataset.
    * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; * - * @return Whether the similarity field is set. + * @return Whether the examples field is set. */ - boolean hasSimilarity(); + boolean hasExamples(); /** * * *
-   * Similarity explainability that returns the nearest neighbors from the
+   * Example-based explanations that returns the nearest neighbors from the
    * provided dataset.
    * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; * - * @return The similarity. + * @return The examples. */ - com.google.cloud.aiplatform.v1beta1.Similarity getSimilarity(); + com.google.cloud.aiplatform.v1beta1.Examples getExamples(); /** * * *
-   * Similarity explainability that returns the nearest neighbors from the
+   * Example-based explanations that returns the nearest neighbors from the
    * provided dataset.
    * 
* - * .google.cloud.aiplatform.v1beta1.Similarity similarity = 7; + * .google.cloud.aiplatform.v1beta1.Examples examples = 7; */ - com.google.cloud.aiplatform.v1beta1.SimilarityOrBuilder getSimilarityOrBuilder(); + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilder(); /** * 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 06b237ac6..e094a4ea2 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 @@ -76,9 +76,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_BlurBaselineConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_Similarity_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_Similarity_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_Examples_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpecOverride_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -106,89 +106,88 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1beta1/explan" + "ation.proto\022\037google.cloud.aiplatform.v1b" - + "eta1\032\034google/api/annotations.proto\032\037goog" - + "le/api/field_behavior.proto\032:google/clou" - + "d/aiplatform/v1beta1/explanation_metadat" - + "a.proto\032(google/cloud/aiplatform/v1beta1" - + "/io.proto\032\034google/protobuf/struct.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\"\305\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\022A\n\nsimilarity\030\007 " - + "\001(\0132+.google.cloud.aiplatform.v1beta1.Si" - + "milarityH\000\022\r\n\005top_k\030\004 \001(\005\0222\n\016output_indi" - + "ces\030\005 \001(\0132\032.google.protobuf.ListValueB\010\n" - + "\006method\"4\n\031SampledShapleyAttribution\022\027\n\n" - + "path_count\030\001 \001(\005B\003\340A\002\"\333\001\n\036IntegratedGrad" - + "ientsAttribution\022\027\n\nstep_count\030\001 \001(\005B\003\340A" - + "\002\022M\n\022smooth_grad_config\030\002 \001(\01321.google.c" - + "loud.aiplatform.v1beta1.SmoothGradConfig" - + "\022Q\n\024blur_baseline_config\030\003 \001(\01323.google." - + "cloud.aiplatform.v1beta1.BlurBaselineCon" - + "fig\"\314\001\n\017XraiAttribution\022\027\n\nstep_count\030\001 " - + "\001(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 \001(\01321.g" - + "oogle.cloud.aiplatform.v1beta1.SmoothGra" - + "dConfig\022Q\n\024blur_baseline_config\030\003 \001(\01323." - + "google.cloud.aiplatform.v1beta1.BlurBase" - + "lineConfig\"\256\001\n\020SmoothGradConfig\022\025\n\013noise" - + "_sigma\030\001 \001(\002H\000\022Q\n\023feature_noise_sigma\030\002 " - + "\001(\01322.google.cloud.aiplatform.v1beta1.Fe" - + "atureNoiseSigmaH\000\022\032\n\022noisy_sample_count\030" - + "\003 \001(\005B\024\n\022GradientNoiseSigma\"\246\001\n\021FeatureN" - + "oiseSigma\022\\\n\013noise_sigma\030\001 \003(\0132G.google." - + "cloud.aiplatform.v1beta1.FeatureNoiseSig" - + "ma.NoiseSigmaForFeature\0323\n\024NoiseSigmaFor" - + "Feature\022\014\n\004name\030\001 \001(\t\022\r\n\005sigma\030\002 \001(\002\",\n\022" - + "BlurBaselineConfig\022\026\n\016max_blur_sigma\030\001 \001" - + "(\002\"\214\001\n\nSimilarity\022>\n\ngcs_source\030\001 \001(\0132*." - + "google.cloud.aiplatform.v1beta1.GcsSourc" - + "e\022>\n\036nearest_neighbor_search_config\030\002 \001(" - + "\0132\026.google.protobuf.Value\"\265\001\n\027Explanatio" - + "nSpecOverride\022J\n\nparameters\030\001 \001(\01326.goog" - + "le.cloud.aiplatform.v1beta1.ExplanationP" - + "arameters\022N\n\010metadata\030\002 \001(\0132<.google.clo" - + "ud.aiplatform.v1beta1.ExplanationMetadat" - + "aOverride\"\312\002\n\033ExplanationMetadataOverrid" - + "e\022]\n\006inputs\030\001 \003(\0132H.google.cloud.aiplatf" - + "orm.v1beta1.ExplanationMetadataOverride." - + "InputsEntryB\003\340A\002\032H\n\025InputMetadataOverrid" - + "e\022/\n\017input_baselines\030\001 \003(\0132\026.google.prot" - + "obuf.Value\032\201\001\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022" - + "a\n\005value\030\002 \001(\0132R.google.cloud.aiplatform" - + ".v1beta1.ExplanationMetadataOverride.Inp" - + "utMetadataOverride:\0028\001B\355\001\n#com.google.cl" - + "oud.aiplatform.v1beta1B\020ExplanationProto" - + "P\001ZIgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1beta1;aiplatform\252\002\037" - + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" - + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" - + "d::AIPlatform::V1beta1b\006proto3" + + "eta1\032\037google/api/field_behavior.proto\032:g" + + "oogle/cloud/aiplatform/v1beta1/explanati" + + "on_metadata.proto\032(google/cloud/aiplatfo" + + "rm/v1beta1/io.proto\032\034google/protobuf/str" + + "uct.proto\"V\n\013Explanation\022G\n\014attributions" + + "\030\001 \003(\0132,.google.cloud.aiplatform.v1beta1" + + ".AttributionB\003\340A\003\"`\n\020ModelExplanation\022L\n" + + "\021mean_attributions\030\001 \003(\0132,.google.cloud." + + "aiplatform.v1beta1.AttributionB\003\340A\003\"\211\002\n\013" + + "Attribution\022\"\n\025baseline_output_value\030\001 \001" + + "(\001B\003\340A\003\022\"\n\025instance_output_value\030\002 \001(\001B\003" + + "\340A\003\0229\n\024feature_attributions\030\003 \001(\0132\026.goog" + + "le.protobuf.ValueB\003\340A\003\022\031\n\014output_index\030\004" + + " \003(\005B\003\340A\003\022 \n\023output_display_name\030\005 \001(\tB\003" + + "\340A\003\022 \n\023approximation_error\030\006 \001(\001B\003\340A\003\022\030\n" + + "\013output_name\030\007 \001(\tB\003\340A\003\"\257\001\n\017ExplanationS" + + "pec\022O\n\nparameters\030\001 \001(\01326.google.cloud.a" + + "iplatform.v1beta1.ExplanationParametersB" + + "\003\340A\002\022K\n\010metadata\030\002 \001(\01324.google.cloud.ai" + + "platform.v1beta1.ExplanationMetadataB\003\340A" + + "\002\"\301\003\n\025ExplanationParameters\022a\n\033sampled_s" + + "hapley_attribution\030\001 \001(\0132:.google.cloud." + + "aiplatform.v1beta1.SampledShapleyAttribu" + + "tionH\000\022k\n integrated_gradients_attributi" + + "on\030\002 \001(\0132?.google.cloud.aiplatform.v1bet" + + "a1.IntegratedGradientsAttributionH\000\022L\n\020x" + + "rai_attribution\030\003 \001(\01320.google.cloud.aip" + + "latform.v1beta1.XraiAttributionH\000\022=\n\010exa" + + "mples\030\007 \001(\0132).google.cloud.aiplatform.v1" + + "beta1.ExamplesH\000\022\r\n\005top_k\030\004 \001(\005\0222\n\016outpu" + + "t_indices\030\005 \001(\0132\032.google.protobuf.ListVa" + + "lueB\010\n\006method\"4\n\031SampledShapleyAttributi" + + "on\022\027\n\npath_count\030\001 \001(\005B\003\340A\002\"\333\001\n\036Integrat" + + "edGradientsAttribution\022\027\n\nstep_count\030\001 \001" + + "(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 \001(\01321.go" + + "ogle.cloud.aiplatform.v1beta1.SmoothGrad" + + "Config\022Q\n\024blur_baseline_config\030\003 \001(\01323.g" + + "oogle.cloud.aiplatform.v1beta1.BlurBasel" + + "ineConfig\"\314\001\n\017XraiAttribution\022\027\n\nstep_co" + + "unt\030\001 \001(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 \001" + + "(\01321.google.cloud.aiplatform.v1beta1.Smo" + + "othGradConfig\022Q\n\024blur_baseline_config\030\003 " + + "\001(\01323.google.cloud.aiplatform.v1beta1.Bl" + + "urBaselineConfig\"\256\001\n\020SmoothGradConfig\022\025\n" + + "\013noise_sigma\030\001 \001(\002H\000\022Q\n\023feature_noise_si" + + "gma\030\002 \001(\01322.google.cloud.aiplatform.v1be" + + "ta1.FeatureNoiseSigmaH\000\022\032\n\022noisy_sample_" + + "count\030\003 \001(\005B\024\n\022GradientNoiseSigma\"\246\001\n\021Fe" + + "atureNoiseSigma\022\\\n\013noise_sigma\030\001 \003(\0132G.g" + + "oogle.cloud.aiplatform.v1beta1.FeatureNo" + + "iseSigma.NoiseSigmaForFeature\0323\n\024NoiseSi" + + "gmaForFeature\022\014\n\004name\030\001 \001(\t\022\r\n\005sigma\030\002 \001" + + "(\002\",\n\022BlurBaselineConfig\022\026\n\016max_blur_sig" + + "ma\030\001 \001(\002\"\242\001\n\010Examples\022>\n\ngcs_source\030\001 \001(" + + "\0132*.google.cloud.aiplatform.v1beta1.GcsS" + + "ource\022>\n\036nearest_neighbor_search_config\030" + + "\002 \001(\0132\026.google.protobuf.Value\022\026\n\016neighbo" + + "r_count\030\003 \001(\005\"\265\001\n\027ExplanationSpecOverrid" + + "e\022J\n\nparameters\030\001 \001(\01326.google.cloud.aip" + + "latform.v1beta1.ExplanationParameters\022N\n" + + "\010metadata\030\002 \001(\0132<.google.cloud.aiplatfor" + + "m.v1beta1.ExplanationMetadataOverride\"\312\002" + + "\n\033ExplanationMetadataOverride\022]\n\006inputs\030" + + "\001 \003(\0132H.google.cloud.aiplatform.v1beta1." + + "ExplanationMetadataOverride.InputsEntryB" + + "\003\340A\002\032H\n\025InputMetadataOverride\022/\n\017input_b" + + "aselines\030\001 \003(\0132\026.google.protobuf.Value\032\201" + + "\001\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001" + + "(\0132R.google.cloud.aiplatform.v1beta1.Exp" + + "lanationMetadataOverride.InputMetadataOv" + + "erride:\0028\001B\355\001\n#com.google.cloud.aiplatfo" + + "rm.v1beta1B\020ExplanationProtoP\001ZIgoogle.g" + + "olang.org/genproto/googleapis/cloud/aipl" + + "atform/v1beta1;aiplatform\252\002\037Google.Cloud" + + ".AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPla" + + "tform\\V1beta1\352\002\"Google::Cloud::AIPlatfor" + + "m::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ExplanationMetadataProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), @@ -241,7 +240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SampledShapleyAttribution", "IntegratedGradientsAttribution", "XraiAttribution", - "Similarity", + "Examples", "TopK", "OutputIndices", "Method", @@ -304,13 +303,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MaxBlurSigma", }); - internal_static_google_cloud_aiplatform_v1beta1_Similarity_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor = getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_aiplatform_v1beta1_Similarity_fieldAccessorTable = + internal_static_google_cloud_aiplatform_v1beta1_Examples_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_Similarity_descriptor, + internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor, new java.lang.String[] { - "GcsSource", "NearestNeighborSearchConfig", + "GcsSource", "NearestNeighborSearchConfig", "NeighborCount", }); internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpecOverride_descriptor = getDescriptor().getMessageTypes().get(12); @@ -353,7 +352,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ExplanationMetadataProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java index d20d744a1..c472d9b70 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java @@ -113,6 +113,8 @@ private ExplanationSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java index f5fd098b7..4d6c7c79b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java @@ -115,6 +115,8 @@ private ExplanationSpecOverride( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java index 6d23a71bc..ff06307e6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java @@ -108,6 +108,8 @@ private ExportDataConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -836,8 +838,9 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestin } else { if (destinationCase_ == 1) { gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); } - gcsDestinationBuilder_.setMessage(value); } destinationCase_ = 1; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java index 7ee5ff429..17a03bef0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java @@ -106,6 +106,8 @@ private ExportDataOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java index 22ca81baa..341c385fa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java @@ -105,6 +105,8 @@ private ExportDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java index 8632c09ed..50a1067dd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java @@ -92,6 +92,8 @@ private ExportDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java index 28cd387f1..19a897fe9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java @@ -99,6 +99,8 @@ private ExportFeatureValuesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java index 1fd9e89ba..fc6f7a636 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java @@ -186,6 +186,8 @@ private ExportFeatureValuesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -391,6 +393,8 @@ private SnapshotExport( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1550,6 +1554,8 @@ private FullExport( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3592,8 +3598,9 @@ public Builder mergeSnapshotExport( } else { if (modeCase_ == 3) { snapshotExportBuilder_.mergeFrom(value); + } else { + snapshotExportBuilder_.setMessage(value); } - snapshotExportBuilder_.setMessage(value); } modeCase_ = 3; return this; @@ -3841,8 +3848,9 @@ public Builder mergeFullExport( } else { if (modeCase_ == 7) { fullExportBuilder_.mergeFrom(value); + } else { + fullExportBuilder_.setMessage(value); } - fullExportBuilder_.setMessage(value); } modeCase_ = 7; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponse.java index b7086fc93..f03138aca 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponse.java @@ -79,6 +79,8 @@ private ExportFeatureValuesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java index d1a5b7910..3da9f7c2a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java @@ -116,6 +116,8 @@ private ExportModelOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -279,6 +281,8 @@ private OutputInfo( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java index 7d5740600..208ac592e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java @@ -106,6 +106,8 @@ private ExportModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -374,6 +376,8 @@ private OutputConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelResponse.java index 674c94ddb..6ad813e35 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelResponse.java @@ -79,6 +79,8 @@ private ExportModelResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java index 37d6a5139..898bff3b5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java @@ -119,6 +119,8 @@ private ExportTensorboardTimeSeriesDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java index 622682221..8083d0e86 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java @@ -106,6 +106,8 @@ private ExportTensorboardTimeSeriesDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java index 6f2654b02..a07c3f9d4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java @@ -211,6 +211,8 @@ private Feature( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -646,9 +648,7 @@ public interface MonitoringStatsAnomalyOrBuilder * A list of historical [Snapshot * Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature * Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats - * requested by user, sorted by - * [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] - * descending. + * requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] descending. *
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} @@ -731,6 +731,8 @@ private MonitoringStatsAnomaly( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1207,9 +1209,7 @@ protected Builder newBuilderForType( * A list of historical [Snapshot * Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature * Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats - * requested by user, sorted by - * [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] - * descending. + * requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] descending. *
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} @@ -2053,7 +2053,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2104,7 +2104,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2129,7 +2129,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2195,8 +2195,9 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-   * Optional. The custom monitoring configuration for this Feature, if not set, use the
-   * monitoring_config defined for the EntityType this Feature belongs to.
+   * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+   * set, use the monitoring_config defined for the EntityType this Feature
+   * belongs to.
    * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
    * INT64 can enable monitoring.
    * If this is populated with
@@ -2208,12 +2209,15 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.Feature.monitoring_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature.proto;l=155 * @return Whether the monitoringConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasMonitoringConfig() { return monitoringConfig_ != null; } @@ -2221,8 +2225,9 @@ public boolean hasMonitoringConfig() { * * *
-   * Optional. The custom monitoring configuration for this Feature, if not set, use the
-   * monitoring_config defined for the EntityType this Feature belongs to.
+   * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+   * set, use the monitoring_config defined for the EntityType this Feature
+   * belongs to.
    * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
    * INT64 can enable monitoring.
    * If this is populated with
@@ -2234,12 +2239,15 @@ public boolean hasMonitoringConfig() {
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.Feature.monitoring_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature.proto;l=155 * @return The monitoringConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig() { return monitoringConfig_ == null ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() @@ -2249,8 +2257,9 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit * * *
-   * Optional. The custom monitoring configuration for this Feature, if not set, use the
-   * monitoring_config defined for the EntityType this Feature belongs to.
+   * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+   * set, use the monitoring_config defined for the EntityType this Feature
+   * belongs to.
    * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
    * INT64 can enable monitoring.
    * If this is populated with
@@ -2262,10 +2271,11 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { return getMonitoringConfig(); @@ -2277,10 +2287,10 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit * * *
-   * Optional. If not set, use the monitoring_config defined for the EntityType
-   * this Feature belongs to. Only Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL, STRING, DOUBLE or INT64 can enable monitoring.
+   * Optional. If not set, use the monitoring_config defined for the EntityType this
+   * Feature belongs to.
+   * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+   * INT64 can enable monitoring.
    * If set to true, all types of data monitoring are disabled despite the
    * config on EntityType.
    * 
@@ -2397,8 +2407,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getMonitoringStat * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2414,8 +2423,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getMonitoringStat * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2432,8 +2440,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getMonitoringStat * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2448,8 +2455,7 @@ public int getMonitoringStatsAnomaliesCount() { * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -2465,8 +2471,7 @@ public int getMonitoringStatsAnomaliesCount() { * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -3896,7 +3901,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3948,7 +3953,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3973,7 +3978,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4005,7 +4010,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4034,11 +4039,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -4185,8 +4191,9 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4198,11 +4205,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.Feature.monitoring_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature.proto;l=155 * @return Whether the monitoringConfig field is set. */ + @java.lang.Deprecated public boolean hasMonitoringConfig() { return monitoringConfigBuilder_ != null || monitoringConfig_ != null; } @@ -4210,8 +4220,9 @@ public boolean hasMonitoringConfig() { * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4223,11 +4234,14 @@ public boolean hasMonitoringConfig() {
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.Feature.monitoring_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature.proto;l=155 * @return The monitoringConfig. */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig() { if (monitoringConfigBuilder_ == null) { return monitoringConfig_ == null @@ -4241,8 +4255,9 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4254,9 +4269,10 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setMonitoringConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { if (monitoringConfigBuilder_ == null) { @@ -4275,8 +4291,9 @@ public Builder setMonitoringConfig( * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4288,9 +4305,10 @@ public Builder setMonitoringConfig(
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setMonitoringConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder builderForValue) { if (monitoringConfigBuilder_ == null) { @@ -4306,8 +4324,9 @@ public Builder setMonitoringConfig( * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4319,9 +4338,10 @@ public Builder setMonitoringConfig(
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder mergeMonitoringConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { if (monitoringConfigBuilder_ == null) { @@ -4345,8 +4365,9 @@ public Builder mergeMonitoringConfig( * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4358,9 +4379,10 @@ public Builder mergeMonitoringConfig(
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder clearMonitoringConfig() { if (monitoringConfigBuilder_ == null) { monitoringConfig_ = null; @@ -4376,8 +4398,9 @@ public Builder clearMonitoringConfig() { * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4389,9 +4412,10 @@ public Builder clearMonitoringConfig() {
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder getMonitoringConfigBuilder() { @@ -4402,8 +4426,9 @@ public Builder clearMonitoringConfig() { * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4415,9 +4440,10 @@ public Builder clearMonitoringConfig() {
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { if (monitoringConfigBuilder_ != null) { @@ -4432,8 +4458,9 @@ public Builder clearMonitoringConfig() { * * *
-     * Optional. The custom monitoring configuration for this Feature, if not set, use the
-     * monitoring_config defined for the EntityType this Feature belongs to.
+     * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+     * set, use the monitoring_config defined for the EntityType this Feature
+     * belongs to.
      * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
      * INT64 can enable monitoring.
      * If this is populated with
@@ -4445,7 +4472,7 @@ public Builder clearMonitoringConfig() {
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -4470,10 +4497,10 @@ public Builder clearMonitoringConfig() { * * *
-     * Optional. If not set, use the monitoring_config defined for the EntityType
-     * this Feature belongs to. Only Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL, STRING, DOUBLE or INT64 can enable monitoring.
+     * Optional. If not set, use the monitoring_config defined for the EntityType this
+     * Feature belongs to.
+     * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+     * INT64 can enable monitoring.
      * If set to true, all types of data monitoring are disabled despite the
      * config on EntityType.
      * 
@@ -4490,10 +4517,10 @@ public boolean getDisableMonitoring() { * * *
-     * Optional. If not set, use the monitoring_config defined for the EntityType
-     * this Feature belongs to. Only Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL, STRING, DOUBLE or INT64 can enable monitoring.
+     * Optional. If not set, use the monitoring_config defined for the EntityType this
+     * Feature belongs to.
+     * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+     * INT64 can enable monitoring.
      * If set to true, all types of data monitoring are disabled despite the
      * config on EntityType.
      * 
@@ -4513,10 +4540,10 @@ public Builder setDisableMonitoring(boolean value) { * * *
-     * Optional. If not set, use the monitoring_config defined for the EntityType
-     * this Feature belongs to. Only Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL, STRING, DOUBLE or INT64 can enable monitoring.
+     * Optional. If not set, use the monitoring_config defined for the EntityType this
+     * Feature belongs to.
+     * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+     * INT64 can enable monitoring.
      * If set to true, all types of data monitoring are disabled despite the
      * config on EntityType.
      * 
@@ -5013,8 +5040,7 @@ private void ensureMonitoringStatsAnomaliesIsMutable() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5033,8 +5059,7 @@ private void ensureMonitoringStatsAnomaliesIsMutable() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5052,8 +5077,7 @@ public int getMonitoringStatsAnomaliesCount() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5072,8 +5096,7 @@ public int getMonitoringStatsAnomaliesCount() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5098,8 +5121,7 @@ public Builder setMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5123,8 +5145,7 @@ public Builder setMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5149,8 +5170,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5175,8 +5195,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5199,8 +5218,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5224,8 +5242,7 @@ public Builder addMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5249,8 +5266,7 @@ public Builder addAllMonitoringStatsAnomalies( * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5271,8 +5287,7 @@ public Builder clearMonitoringStatsAnomalies() { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5293,8 +5308,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5309,8 +5323,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5329,8 +5342,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5350,8 +5362,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5369,8 +5380,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * @@ -5389,8 +5399,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { * * *
-     * Output only. The list of historical stats and anomalies with specified
-     * objectives.
+     * Output only. The list of historical stats and anomalies with specified objectives.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java index 6f15f089a..954998365 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java @@ -42,27 +42,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n>google/cloud/aiplatform/v1beta1/featur" + "e_monitoring_stats.proto\022\037google.cloud.a" - + "iplatform.v1beta1\032\034google/api/annotation" - + "s.proto\032\037google/protobuf/timestamp.proto" - + "\"\357\001\n\023FeatureStatsAnomaly\022\r\n\005score\030\001 \001(\001\022" - + "\021\n\tstats_uri\030\003 \001(\t\022\023\n\013anomaly_uri\030\004 \001(\t\022" - + "\036\n\026distribution_deviation\030\005 \001(\001\022#\n\033anoma" - + "ly_detection_threshold\030\t \001(\001\022.\n\nstart_ti" - + "me\030\007 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" - + "end_time\030\010 \001(\0132\032.google.protobuf.Timesta" - + "mpB\370\001\n#com.google.cloud.aiplatform.v1bet" - + "a1B\033FeatureMonitoringStatsProtoP\001ZIgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1beta1;aiplatform\252\002\037Google.Cl" - + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" - + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" - + "form::V1beta1b\006proto3" + + "iplatform.v1beta1\032\037google/protobuf/times" + + "tamp.proto\"\357\001\n\023FeatureStatsAnomaly\022\r\n\005sc" + + "ore\030\001 \001(\001\022\021\n\tstats_uri\030\003 \001(\t\022\023\n\013anomaly_" + + "uri\030\004 \001(\t\022\036\n\026distribution_deviation\030\005 \001(" + + "\001\022#\n\033anomaly_detection_threshold\030\t \001(\001\022." + + "\n\nstart_time\030\007 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\010 \001(\0132\032.google.protob" + + "uf.TimestampB\370\001\n#com.google.cloud.aiplat" + + "form.v1beta1B\033FeatureMonitoringStatsProt" + + "oP\001ZIgoogle.golang.org/genproto/googleap" + + "is/cloud/aiplatform/v1beta1;aiplatform\252\002" + + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clo" + + "ud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_descriptor = @@ -79,7 +77,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java index 3fee87eda..7257f49db 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java @@ -100,6 +100,8 @@ private FeatureNoiseSigma( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -251,6 +253,8 @@ private NoiseSigmaForFeature( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -366,7 +370,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (sigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(sigma_) != 0) { output.writeFloat(2, sigma_); } unknownFields.writeTo(output); @@ -381,7 +385,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (sigma_ != 0F) { + if (java.lang.Float.floatToRawIntBits(sigma_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, sigma_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java index 727285a30..427229ac4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java @@ -264,7 +264,12 @@ public interface FeatureOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -315,8 +320,9 @@ public interface FeatureOrBuilder * * *
-   * Optional. The custom monitoring configuration for this Feature, if not set, use the
-   * monitoring_config defined for the EntityType this Feature belongs to.
+   * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+   * set, use the monitoring_config defined for the EntityType this Feature
+   * belongs to.
    * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
    * INT64 can enable monitoring.
    * If this is populated with
@@ -328,18 +334,22 @@ public interface FeatureOrBuilder
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.Feature.monitoring_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature.proto;l=155 * @return Whether the monitoringConfig field is set. */ + @java.lang.Deprecated boolean hasMonitoringConfig(); /** * * *
-   * Optional. The custom monitoring configuration for this Feature, if not set, use the
-   * monitoring_config defined for the EntityType this Feature belongs to.
+   * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+   * set, use the monitoring_config defined for the EntityType this Feature
+   * belongs to.
    * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
    * INT64 can enable monitoring.
    * If this is populated with
@@ -351,18 +361,22 @@ public interface FeatureOrBuilder
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.Feature.monitoring_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature.proto;l=155 * @return The monitoringConfig. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig(); /** * * *
-   * Optional. The custom monitoring configuration for this Feature, if not set, use the
-   * monitoring_config defined for the EntityType this Feature belongs to.
+   * Optional. Deprecated: The custom monitoring configuration for this Feature, if not
+   * set, use the monitoring_config defined for the EntityType this Feature
+   * belongs to.
    * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
    * INT64 can enable monitoring.
    * If this is populated with
@@ -374,9 +388,10 @@ public interface FeatureOrBuilder
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); @@ -384,10 +399,10 @@ public interface FeatureOrBuilder * * *
-   * Optional. If not set, use the monitoring_config defined for the EntityType
-   * this Feature belongs to. Only Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL, STRING, DOUBLE or INT64 can enable monitoring.
+   * Optional. If not set, use the monitoring_config defined for the EntityType this
+   * Feature belongs to.
+   * Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or
+   * INT64 can enable monitoring.
    * If set to true, all types of data monitoring are disabled despite the
    * config on EntityType.
    * 
@@ -480,8 +495,7 @@ com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder getMonitoringSt * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -494,8 +508,7 @@ com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder getMonitoringSt * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -508,8 +521,7 @@ com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly getMonitoring * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -521,8 +533,7 @@ com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly getMonitoring * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * @@ -536,8 +547,7 @@ com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly getMonitoring * * *
-   * Output only. The list of historical stats and anomalies with specified
-   * objectives.
+   * Output only. The list of historical stats and anomalies with specified objectives.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java index 4dc91364c..37ded242b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java @@ -50,58 +50,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/aiplatform/v1beta1/featur" + "e.proto\022\037google.cloud.aiplatform.v1beta1" - + "\032\034google/api/annotations.proto\032\037google/a" - + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\032>google/cloud/aiplatform/v1be" - + "ta1/feature_monitoring_stats.proto\032=goog" - + "le/cloud/aiplatform/v1beta1/featurestore" - + "_monitoring.proto\032\037google/protobuf/times" - + "tamp.proto\"\254\n\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\005\022\023\n\013description\030\002 \001(\t\022N\n\nvalue_type\030\003 \001" - + "(\01622.google.cloud.aiplatform.v1beta1.Fea" - + "ture.ValueTypeB\006\340A\002\340A\005\0224\n\013create_time\030\004 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\005 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022I\n\006labels\030\006 \003(\01324.google.clou" - + "d.aiplatform.v1beta1.Feature.LabelsEntry" - + "B\003\340A\001\022\014\n\004etag\030\007 \001(\t\022]\n\021monitoring_config" - + "\030\t \001(\0132=.google.cloud.aiplatform.v1beta1" - + ".FeaturestoreMonitoringConfigB\003\340A\001\022\037\n\022di" - + "sable_monitoring\030\014 \001(\010B\003\340A\001\022S\n\020monitorin" - + "g_stats\030\n \003(\01324.google.cloud.aiplatform." - + "v1beta1.FeatureStatsAnomalyB\003\340A\003\022h\n\032moni" - + "toring_stats_anomalies\030\013 \003(\0132?.google.cl" - + "oud.aiplatform.v1beta1.Feature.Monitorin" - + "gStatsAnomalyB\003\340A\003\032\261\002\n\026MonitoringStatsAn" - + "omaly\022a\n\tobjective\030\001 \001(\0162I.google.cloud." - + "aiplatform.v1beta1.Feature.MonitoringSta" - + "tsAnomaly.ObjectiveB\003\340A\003\022X\n\025feature_stat" - + "s_anomaly\030\002 \001(\01324.google.cloud.aiplatfor" - + "m.v1beta1.FeatureStatsAnomalyB\003\340A\003\"Z\n\tOb" - + "jective\022\031\n\025OBJECTIVE_UNSPECIFIED\020\000\022\033\n\027IM" - + "PORT_FEATURE_ANALYSIS\020\001\022\025\n\021SNAPSHOT_ANAL" - + "YSIS\020\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"\244\001\n\tValueType\022\032\n\026VALUE_TYP" - + "E_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\016\n\nBOOL_ARRAY\020" - + "\002\022\n\n\006DOUBLE\020\003\022\020\n\014DOUBLE_ARRAY\020\004\022\t\n\005INT64" - + "\020\t\022\017\n\013INT64_ARRAY\020\n\022\n\n\006STRING\020\013\022\020\n\014STRIN" - + "G_ARRAY\020\014\022\t\n\005BYTES\020\r:\232\001\352A\226\001\n!aiplatform." - + "googleapis.com/Feature\022qprojects/{projec" - + "t}/locations/{location}/featurestores/{f" - + "eaturestore}/entityTypes/{entity_type}/f" - + "eatures/{feature}B\351\001\n#com.google.cloud.a" - + "iplatform.v1beta1B\014FeatureProtoP\001ZIgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1beta1;aiplatform\252\002\037Google.Cl" - + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" - + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" - + "form::V1beta1b\006proto3" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032>google/cloud/aipla" + + "tform/v1beta1/feature_monitoring_stats.p" + + "roto\032=google/cloud/aiplatform/v1beta1/fe" + + "aturestore_monitoring.proto\032\037google/prot" + + "obuf/timestamp.proto\"\256\n\n\007Feature\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\005\022\023\n\013description\030\002 \001(\t\022N\n\nvalu" + + "e_type\030\003 \001(\01622.google.cloud.aiplatform.v" + + "1beta1.Feature.ValueTypeB\006\340A\002\340A\005\0224\n\013crea" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022I\n\006labels\030\006 \003(\01324.g" + + "oogle.cloud.aiplatform.v1beta1.Feature.L" + + "abelsEntryB\003\340A\001\022\014\n\004etag\030\007 \001(\t\022_\n\021monitor" + + "ing_config\030\t \001(\0132=.google.cloud.aiplatfo" + + "rm.v1beta1.FeaturestoreMonitoringConfigB" + + "\005\030\001\340A\001\022\037\n\022disable_monitoring\030\014 \001(\010B\003\340A\001\022" + + "S\n\020monitoring_stats\030\n \003(\01324.google.cloud" + + ".aiplatform.v1beta1.FeatureStatsAnomalyB" + + "\003\340A\003\022h\n\032monitoring_stats_anomalies\030\013 \003(\013" + + "2?.google.cloud.aiplatform.v1beta1.Featu" + + "re.MonitoringStatsAnomalyB\003\340A\003\032\261\002\n\026Monit" + + "oringStatsAnomaly\022a\n\tobjective\030\001 \001(\0162I.g" + + "oogle.cloud.aiplatform.v1beta1.Feature.M" + + "onitoringStatsAnomaly.ObjectiveB\003\340A\003\022X\n\025" + + "feature_stats_anomaly\030\002 \001(\01324.google.clo" + + "ud.aiplatform.v1beta1.FeatureStatsAnomal" + + "yB\003\340A\003\"Z\n\tObjective\022\031\n\025OBJECTIVE_UNSPECI" + + "FIED\020\000\022\033\n\027IMPORT_FEATURE_ANALYSIS\020\001\022\025\n\021S" + + "NAPSHOT_ANALYSIS\020\002\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\001\n\tValueType\022" + + "\032\n\026VALUE_TYPE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\016\n" + + "\nBOOL_ARRAY\020\002\022\n\n\006DOUBLE\020\003\022\020\n\014DOUBLE_ARRA" + + "Y\020\004\022\t\n\005INT64\020\t\022\017\n\013INT64_ARRAY\020\n\022\n\n\006STRIN" + + "G\020\013\022\020\n\014STRING_ARRAY\020\014\022\t\n\005BYTES\020\r:\232\001\352A\226\001\n" + + "!aiplatform.googleapis.com/Feature\022qproj" + + "ects/{project}/locations/{location}/feat" + + "urestores/{featurestore}/entityTypes/{en" + + "tity_type}/features/{feature}B\351\001\n#com.go" + + "ogle.cloud.aiplatform.v1beta1B\014FeaturePr" + + "otoP\001ZIgoogle.golang.org/genproto/google" + + "apis/cloud/aiplatform/v1beta1;aiplatform" + + "\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goo" + + "gle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::C" + + "loud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(), @@ -148,7 +146,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java index 267faf10e..6f88b963e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java @@ -95,6 +95,8 @@ private FeatureSelector( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java index 0c5882184..d9cce20ca 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java @@ -46,24 +46,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/featur" + "e_selector.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1\032\034google/api/annotations.proto\032" - + "\037google/api/field_behavior.proto\"\035\n\tIdMa" - + "tcher\022\020\n\003ids\030\001 \003(\tB\003\340A\002\"V\n\017FeatureSelect" - + "or\022C\n\nid_matcher\030\001 \001(\0132*.google.cloud.ai" - + "platform.v1beta1.IdMatcherB\003\340A\002B\361\001\n#com." - + "google.cloud.aiplatform.v1beta1B\024Feature" - + "SelectorProtoP\001ZIgoogle.golang.org/genpr" - + "oto/googleapis/cloud/aiplatform/v1beta1;" - + "aiplatform\252\002\037Google.Cloud.AIPlatform.V1B" - + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002" - + "\"Google::Cloud::AIPlatform::V1beta1b\006pro" - + "to3" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "to\"\035\n\tIdMatcher\022\020\n\003ids\030\001 \003(\tB\003\340A\002\"V\n\017Fea" + + "tureSelector\022C\n\nid_matcher\030\001 \001(\0132*.googl" + + "e.cloud.aiplatform.v1beta1.IdMatcherB\003\340A" + + "\002B\361\001\n#com.google.cloud.aiplatform.v1beta" + + "1B\024FeatureSelectorProtoP\001ZIgoogle.golang" + + ".org/genproto/googleapis/cloud/aiplatfor" + + "m/v1beta1;aiplatform\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_descriptor = @@ -87,7 +85,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java index 3a9ebee45..f2fbe335a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java @@ -149,6 +149,8 @@ private FeatureStatsAnomaly( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -480,7 +482,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (score_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { output.writeDouble(1, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statsUri_)) { @@ -489,7 +491,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anomalyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, anomalyUri_); } - if (distributionDeviation_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(distributionDeviation_) != 0) { output.writeDouble(5, distributionDeviation_); } if (startTime_ != null) { @@ -498,7 +500,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(8, getEndTime()); } - if (anomalyDetectionThreshold_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(anomalyDetectionThreshold_) != 0) { output.writeDouble(9, anomalyDetectionThreshold_); } unknownFields.writeTo(output); @@ -510,7 +512,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (score_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statsUri_)) { @@ -519,7 +521,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anomalyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, anomalyUri_); } - if (distributionDeviation_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(distributionDeviation_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, distributionDeviation_); } if (startTime_ != null) { @@ -528,7 +530,7 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); } - if (anomalyDetectionThreshold_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(anomalyDetectionThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, anomalyDetectionThreshold_); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java index bf6dc27e9..6c25b07f8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java @@ -71,20 +71,20 @@ private FeatureValue( break; case 8: { - valueCase_ = 1; value_ = input.readBool(); + valueCase_ = 1; break; } case 17: { - valueCase_ = 2; value_ = input.readDouble(); + valueCase_ = 2; break; } case 40: { - valueCase_ = 5; value_ = input.readInt64(); + valueCase_ = 5; break; } case 50: @@ -160,8 +160,8 @@ private FeatureValue( } case 106: { - valueCase_ = 13; value_ = input.readBytes(); + valueCase_ = 13; break; } case 114: @@ -192,6 +192,8 @@ private FeatureValue( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -346,6 +348,8 @@ private Metadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2621,8 +2625,9 @@ public Builder mergeBoolArrayValue(com.google.cloud.aiplatform.v1beta1.BoolArray } else { if (valueCase_ == 7) { boolArrayValueBuilder_.mergeFrom(value); + } else { + boolArrayValueBuilder_.setMessage(value); } - boolArrayValueBuilder_.setMessage(value); } valueCase_ = 7; return this; @@ -2830,8 +2835,9 @@ public Builder mergeDoubleArrayValue(com.google.cloud.aiplatform.v1beta1.DoubleA } else { if (valueCase_ == 8) { doubleArrayValueBuilder_.mergeFrom(value); + } else { + doubleArrayValueBuilder_.setMessage(value); } - doubleArrayValueBuilder_.setMessage(value); } valueCase_ = 8; return this; @@ -3039,8 +3045,9 @@ public Builder mergeInt64ArrayValue(com.google.cloud.aiplatform.v1beta1.Int64Arr } else { if (valueCase_ == 11) { int64ArrayValueBuilder_.mergeFrom(value); + } else { + int64ArrayValueBuilder_.setMessage(value); } - int64ArrayValueBuilder_.setMessage(value); } valueCase_ = 11; return this; @@ -3248,8 +3255,9 @@ public Builder mergeStringArrayValue(com.google.cloud.aiplatform.v1beta1.StringA } else { if (valueCase_ == 12) { stringArrayValueBuilder_.mergeFrom(value); + } else { + stringArrayValueBuilder_.setMessage(value); } - stringArrayValueBuilder_.setMessage(value); } valueCase_ = 12; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java index 9054b08ee..6349f31dc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java @@ -138,6 +138,8 @@ private FeatureValueDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -942,8 +944,9 @@ public Builder mergeBigqueryDestination( } else { if (destinationCase_ == 1) { bigqueryDestinationBuilder_.mergeFrom(value); + } else { + bigqueryDestinationBuilder_.setMessage(value); } - bigqueryDestinationBuilder_.setMessage(value); } destinationCase_ = 1; return this; @@ -1205,8 +1208,9 @@ public Builder mergeTfrecordDestination( } else { if (destinationCase_ == 2) { tfrecordDestinationBuilder_.mergeFrom(value); + } else { + tfrecordDestinationBuilder_.setMessage(value); } - tfrecordDestinationBuilder_.setMessage(value); } destinationCase_ = 2; return this; @@ -1455,8 +1459,9 @@ public Builder mergeCsvDestination(com.google.cloud.aiplatform.v1beta1.CsvDestin } else { if (destinationCase_ == 3) { csvDestinationBuilder_.mergeFrom(value); + } else { + csvDestinationBuilder_.setMessage(value); } - csvDestinationBuilder_.setMessage(value); } destinationCase_ = 3; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java index 3503439e3..368549dc9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java @@ -95,6 +95,8 @@ private FeatureValueList( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java index 2f6614a56..8861f8f12 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java @@ -185,6 +185,8 @@ private Featurestore( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -223,7 +225,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * Possible states a Featurestore can have.
+   * Possible states a featurestore can have.
    * 
* * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Featurestore.State} @@ -243,9 +245,9 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is not being updated and the
-     * fields reflect the current configuration of the Featurestore. The
-     * Featurestore is usable in this state.
+     * State when the featurestore configuration is not being updated and the
+     * fields reflect the current configuration of the featurestore. The
+     * featurestore is usable in this state.
      * 
* * STABLE = 1; @@ -255,14 +257,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is being updated and the fields
-     * reflect the updated configuration of the Featurestore, not the current
-     * one. For example, `online_serving_config.fixed_node_count` can take
-     * minutes to update. While the update is in progress, the Featurestore
-     * will be in the UPDATING state and the value of `fixed_node_count` will be
-     * the updated value. Until the update completes, the actual number of nodes
-     * can still be the original value of `fixed_node_count`. The Featurestore
-     * is still usable in this state.
+     * The state of the featurestore configuration when it is being updated.
+     * During an update, the fields reflect either the original configuration
+     * or the updated configuration of the featurestore. For example,
+     * `online_serving_config.fixed_node_count` can take minutes to update.
+     * While the update is in progress, the featurestore is in the UPDATING
+     * state, and the value of `fixed_node_count` can be the original value or
+     * the updated value, depending on the progress of the operation. Until the
+     * update completes, the actual number of nodes can still be the original
+     * value of `fixed_node_count`. The featurestore is still usable in this
+     * state.
      * 
* * UPDATING = 2; @@ -285,9 +289,9 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is not being updated and the
-     * fields reflect the current configuration of the Featurestore. The
-     * Featurestore is usable in this state.
+     * State when the featurestore configuration is not being updated and the
+     * fields reflect the current configuration of the featurestore. The
+     * featurestore is usable in this state.
      * 
* * STABLE = 1; @@ -297,14 +301,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * State when the Featurestore configuration is being updated and the fields
-     * reflect the updated configuration of the Featurestore, not the current
-     * one. For example, `online_serving_config.fixed_node_count` can take
-     * minutes to update. While the update is in progress, the Featurestore
-     * will be in the UPDATING state and the value of `fixed_node_count` will be
-     * the updated value. Until the update completes, the actual number of nodes
-     * can still be the original value of `fixed_node_count`. The Featurestore
-     * is still usable in this state.
+     * The state of the featurestore configuration when it is being updated.
+     * During an update, the fields reflect either the original configuration
+     * or the updated configuration of the featurestore. For example,
+     * `online_serving_config.fixed_node_count` can take minutes to update.
+     * While the update is in progress, the featurestore is in the UPDATING
+     * state, and the value of `fixed_node_count` can be the original value or
+     * the updated value, depending on the progress of the operation. Until the
+     * update completes, the actual number of nodes can still be the original
+     * value of `fixed_node_count`. The featurestore is still usable in this
+     * state.
      * 
* * UPDATING = 2; @@ -403,11 +409,10 @@ public interface OnlineServingConfigOrBuilder * * *
-     * The number of nodes for each cluster. The number of nodes will not
-     * scale automatically but can be scaled manually by providing different
-     * values when updating.
-     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-     * reset the other.
+     * The number of nodes for the online store. The number of nodes doesn't
+     * scale automatically, but you can manually update the number of
+     * nodes. If set to 0, the featurestore will not have an
+     * online store and cannot be used for online serving.
      * 
* * int32 fixed_node_count = 2; @@ -547,6 +552,8 @@ private OnlineServingConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -593,8 +600,8 @@ public interface ScalingOrBuilder * * *
-       * The maximum number of nodes to scale up to. Must be greater or equal to
-       * min_node_count.
+       * The maximum number of nodes to scale up to. Must be greater than
+       * min_node_count, and less than or equal to 10 times of 'min_node_count'.
        * 
* * int32 max_node_count = 2; @@ -677,6 +684,8 @@ private Scaling( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -727,8 +736,8 @@ public int getMinNodeCount() { * * *
-       * The maximum number of nodes to scale up to. Must be greater or equal to
-       * min_node_count.
+       * The maximum number of nodes to scale up to. Must be greater than
+       * min_node_count, and less than or equal to 10 times of 'min_node_count'.
        * 
* * int32 max_node_count = 2; @@ -1167,8 +1176,8 @@ public Builder clearMinNodeCount() { * * *
-         * The maximum number of nodes to scale up to. Must be greater or equal to
-         * min_node_count.
+         * The maximum number of nodes to scale up to. Must be greater than
+         * min_node_count, and less than or equal to 10 times of 'min_node_count'.
          * 
* * int32 max_node_count = 2; @@ -1183,8 +1192,8 @@ public int getMaxNodeCount() { * * *
-         * The maximum number of nodes to scale up to. Must be greater or equal to
-         * min_node_count.
+         * The maximum number of nodes to scale up to. Must be greater than
+         * min_node_count, and less than or equal to 10 times of 'min_node_count'.
          * 
* * int32 max_node_count = 2; @@ -1202,8 +1211,8 @@ public Builder setMaxNodeCount(int value) { * * *
-         * The maximum number of nodes to scale up to. Must be greater or equal to
-         * min_node_count.
+         * The maximum number of nodes to scale up to. Must be greater than
+         * min_node_count, and less than or equal to 10 times of 'min_node_count'.
          * 
* * int32 max_node_count = 2; @@ -1280,11 +1289,10 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * The number of nodes for each cluster. The number of nodes will not
-     * scale automatically but can be scaled manually by providing different
-     * values when updating.
-     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-     * reset the other.
+     * The number of nodes for the online store. The number of nodes doesn't
+     * scale automatically, but you can manually update the number of
+     * nodes. If set to 0, the featurestore will not have an
+     * online store and cannot be used for online serving.
      * 
* * int32 fixed_node_count = 2; @@ -1721,11 +1729,10 @@ public Builder mergeFrom( * * *
-       * The number of nodes for each cluster. The number of nodes will not
-       * scale automatically but can be scaled manually by providing different
-       * values when updating.
-       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-       * reset the other.
+       * The number of nodes for the online store. The number of nodes doesn't
+       * scale automatically, but you can manually update the number of
+       * nodes. If set to 0, the featurestore will not have an
+       * online store and cannot be used for online serving.
        * 
* * int32 fixed_node_count = 2; @@ -1740,11 +1747,10 @@ public int getFixedNodeCount() { * * *
-       * The number of nodes for each cluster. The number of nodes will not
-       * scale automatically but can be scaled manually by providing different
-       * values when updating.
-       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-       * reset the other.
+       * The number of nodes for the online store. The number of nodes doesn't
+       * scale automatically, but you can manually update the number of
+       * nodes. If set to 0, the featurestore will not have an
+       * online store and cannot be used for online serving.
        * 
* * int32 fixed_node_count = 2; @@ -1762,11 +1768,10 @@ public Builder setFixedNodeCount(int value) { * * *
-       * The number of nodes for each cluster. The number of nodes will not
-       * scale automatically but can be scaled manually by providing different
-       * values when updating.
-       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
-       * reset the other.
+       * The number of nodes for the online store. The number of nodes doesn't
+       * scale automatically, but you can manually update the number of
+       * nodes. If set to 0, the featurestore will not have an
+       * online store and cannot be used for online serving.
        * 
* * int32 fixed_node_count = 2; @@ -2312,7 +2317,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2363,7 +2368,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2388,7 +2393,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2403,11 +2408,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the onlineServingConfig field is set. @@ -2420,11 +2426,12 @@ public boolean hasOnlineServingConfig() { * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The onlineServingConfig. @@ -2440,11 +2447,12 @@ public boolean hasOnlineServingConfig() { * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -3729,7 +3737,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3781,7 +3789,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3806,7 +3814,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3838,7 +3846,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -3867,11 +3875,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -3908,11 +3917,12 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the onlineServingConfig field is set. @@ -3924,11 +3934,12 @@ public boolean hasOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The onlineServingConfig. @@ -3948,11 +3959,12 @@ public boolean hasOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setOnlineServingConfig( @@ -3973,11 +3985,12 @@ public Builder setOnlineServingConfig( * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setOnlineServingConfig( @@ -3996,11 +4009,12 @@ public Builder setOnlineServingConfig( * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeOnlineServingConfig( @@ -4026,11 +4040,12 @@ public Builder mergeOnlineServingConfig( * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearOnlineServingConfig() { @@ -4048,11 +4063,12 @@ public Builder clearOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder @@ -4065,11 +4081,12 @@ public Builder clearOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder @@ -4087,11 +4104,12 @@ public Builder clearOnlineServingConfig() { * * *
-     * Required. Config for online serving resources.
+     * Optional. Config for online storage resources. If unset, the featurestore will
+     * not have an online store and cannot be used for online serving.
      * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java index 3ae963fc2..441655a14 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java @@ -159,6 +159,8 @@ private FeaturestoreMonitoringConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -220,6 +222,9 @@ public interface SnapshotAnalysisOrBuilder * * .google.protobuf.Duration monitoring_interval = 2 [deprecated = true]; * + * @deprecated + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval + * is deprecated. See google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto;l=50 * @return Whether the monitoringInterval field is set. */ @java.lang.Deprecated @@ -234,6 +239,9 @@ public interface SnapshotAnalysisOrBuilder * * .google.protobuf.Duration monitoring_interval = 2 [deprecated = true]; * + * @deprecated + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval + * is deprecated. See google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto;l=50 * @return The monitoringInterval. */ @java.lang.Deprecated @@ -259,8 +267,7 @@ public interface SnapshotAnalysisOrBuilder * running interval. The value indicates number of days. * If both * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - * and - * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] * are set when creating/updating EntityTypes/Features, * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] * will be used. @@ -382,6 +389,8 @@ private SnapshotAnalysis( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -447,6 +456,9 @@ public boolean getDisabled() { * * .google.protobuf.Duration monitoring_interval = 2 [deprecated = true]; * + * @deprecated + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval + * is deprecated. See google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto;l=50 * @return Whether the monitoringInterval field is set. */ @java.lang.Override @@ -464,6 +476,9 @@ public boolean hasMonitoringInterval() { * * .google.protobuf.Duration monitoring_interval = 2 [deprecated = true]; * + * @deprecated + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval + * is deprecated. See google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto;l=50 * @return The monitoringInterval. */ @java.lang.Override @@ -499,8 +514,7 @@ public com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder() { * running interval. The value indicates number of days. * If both * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - * and - * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] * are set when creating/updating EntityTypes/Features, * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] * will be used. @@ -1044,6 +1058,9 @@ public Builder clearDisabled() { * * .google.protobuf.Duration monitoring_interval = 2 [deprecated = true]; * + * @deprecated + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval + * is deprecated. See google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto;l=50 * @return Whether the monitoringInterval field is set. */ @java.lang.Deprecated @@ -1060,6 +1077,9 @@ public boolean hasMonitoringInterval() { * * .google.protobuf.Duration monitoring_interval = 2 [deprecated = true]; * + * @deprecated + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval + * is deprecated. See google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto;l=50 * @return The monitoringInterval. */ @java.lang.Deprecated @@ -1239,8 +1259,7 @@ public com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder() { * running interval. The value indicates number of days. * If both * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - * and - * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] * are set when creating/updating EntityTypes/Features, * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] * will be used. @@ -1262,8 +1281,7 @@ public int getMonitoringIntervalDays() { * running interval. The value indicates number of days. * If both * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - * and - * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] * are set when creating/updating EntityTypes/Features, * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] * will be used. @@ -1288,8 +1306,7 @@ public Builder setMonitoringIntervalDays(int value) { * running interval. The value indicates number of days. * If both * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - * and - * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] * are set when creating/updating EntityTypes/Features, * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] * will be used. @@ -1571,6 +1588,8 @@ private ImportFeaturesAnalysis( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2880,8 +2899,8 @@ private ThresholdConfig( break; case 9: { - thresholdCase_ = 1; threshold_ = input.readDouble(); + thresholdCase_ = 1; break; } default: @@ -2895,6 +2914,8 @@ private ThresholdConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3680,9 +3701,7 @@ public boolean hasImportFeaturesAnalysis() { *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * DOUBLE or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -3701,9 +3720,7 @@ public boolean hasNumericalThresholdConfig() { *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * DOUBLE or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -3726,9 +3743,7 @@ public boolean hasNumericalThresholdConfig() { *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * DOUBLE or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -3750,9 +3765,7 @@ public boolean hasNumericalThresholdConfig() { *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL or STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -3771,9 +3784,7 @@ public boolean hasCategoricalThresholdConfig() { *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL or STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -3796,9 +3807,7 @@ public boolean hasCategoricalThresholdConfig() { *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL or STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -4698,9 +4707,7 @@ public Builder clearImportFeaturesAnalysis() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4718,9 +4725,7 @@ public boolean hasNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4746,9 +4751,7 @@ public boolean hasNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4775,9 +4778,7 @@ public Builder setNumericalThresholdConfig( *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4802,9 +4803,7 @@ public Builder setNumericalThresholdConfig( *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4836,9 +4835,7 @@ public Builder mergeNumericalThresholdConfig( *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4862,9 +4859,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4883,9 +4878,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4909,9 +4902,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for numerical features of anomaly detection.
      * This is shared by all objectives of Featurestore Monitoring for numerical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * DOUBLE or INT64).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
      * 
* * @@ -4954,9 +4945,7 @@ public Builder clearNumericalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -4974,9 +4963,7 @@ public boolean hasCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -5002,9 +4989,7 @@ public boolean hasCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -5031,9 +5016,7 @@ public Builder setCategoricalThresholdConfig( *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -5058,9 +5041,7 @@ public Builder setCategoricalThresholdConfig( *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -5092,9 +5073,7 @@ public Builder mergeCategoricalThresholdConfig( *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -5118,9 +5097,7 @@ public Builder clearCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -5139,9 +5116,7 @@ public Builder clearCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * @@ -5165,9 +5140,7 @@ public Builder clearCategoricalThresholdConfig() { *
      * Threshold for categorical features of anomaly detection.
      * This is shared by all types of Featurestore Monitoring for categorical
-     * features (i.e. Features with type
-     * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-     * BOOL or STRING).
+     * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfigOrBuilder.java index 197903044..c7e3d84c0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfigOrBuilder.java @@ -115,9 +115,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * DOUBLE or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -133,9 +131,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * DOUBLE or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -152,9 +148,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for numerical features of anomaly detection.
    * This is shared by all objectives of Featurestore Monitoring for numerical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * DOUBLE or INT64).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64).
    * 
* * @@ -170,9 +164,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL or STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -188,9 +180,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL or STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
    * 
* * @@ -207,9 +197,7 @@ public interface FeaturestoreMonitoringConfigOrBuilder *
    * Threshold for categorical features of anomaly detection.
    * This is shared by all types of Featurestore Monitoring for categorical
-   * features (i.e. Features with type
-   * ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType])
-   * BOOL or STRING).
+   * features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING).
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java index 98aea9b48..5be7c8ce6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java @@ -54,50 +54,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n=google/cloud/aiplatform/v1beta1/featur" + "estore_monitoring.proto\022\037google.cloud.ai" - + "platform.v1beta1\032\034google/api/annotations" - + ".proto\032\036google/protobuf/duration.proto\"\205" - + "\t\n\034FeaturestoreMonitoringConfig\022i\n\021snaps" - + "hot_analysis\030\001 \001(\0132N.google.cloud.aiplat" - + "form.v1beta1.FeaturestoreMonitoringConfi" - + "g.SnapshotAnalysis\022v\n\030import_features_an" - + "alysis\030\002 \001(\0132T.google.cloud.aiplatform.v" - + "1beta1.FeaturestoreMonitoringConfig.Impo" - + "rtFeaturesAnalysis\022q\n\032numerical_threshol" - + "d_config\030\003 \001(\0132M.google.cloud.aiplatform" - + ".v1beta1.FeaturestoreMonitoringConfig.Th" - + "resholdConfig\022s\n\034categorical_threshold_c" - + "onfig\030\004 \001(\0132M.google.cloud.aiplatform.v1" - + "beta1.FeaturestoreMonitoringConfig.Thres" - + "holdConfig\032\232\001\n\020SnapshotAnalysis\022\020\n\010disab" - + "led\030\001 \001(\010\022:\n\023monitoring_interval\030\002 \001(\0132\031" - + ".google.protobuf.DurationB\002\030\001\022 \n\030monitor" - + "ing_interval_days\030\003 \001(\005\022\026\n\016staleness_day" - + "s\030\004 \001(\005\032\313\003\n\026ImportFeaturesAnalysis\022i\n\005st" - + "ate\030\001 \001(\0162Z.google.cloud.aiplatform.v1be" - + "ta1.FeaturestoreMonitoringConfig.ImportF" - + "eaturesAnalysis.State\022\201\001\n\032anomaly_detect" - + "ion_baseline\030\002 \001(\0162].google.cloud.aiplat" - + "form.v1beta1.FeaturestoreMonitoringConfi" - + "g.ImportFeaturesAnalysis.Baseline\"F\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\013" - + "\n\007ENABLED\020\002\022\014\n\010DISABLED\020\003\"z\n\010Baseline\022\030\n" - + "\024BASELINE_UNSPECIFIED\020\000\022\020\n\014LATEST_STATS\020" - + "\001\022\036\n\032MOST_RECENT_SNAPSHOT_STATS\020\002\022\"\n\036PRE" - + "VIOUS_IMPORT_FEATURES_STATS\020\003\032/\n\017Thresho" - + "ldConfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthresholdB\370" - + "\001\n#com.google.cloud.aiplatform.v1beta1B\033" - + "FeaturestoreMonitoringProtoP\001ZIgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatform\252\002\037Google.Cloud." - + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" - + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" - + "::V1beta1b\006proto3" + + "platform.v1beta1\032\036google/protobuf/durati" + + "on.proto\"\205\t\n\034FeaturestoreMonitoringConfi" + + "g\022i\n\021snapshot_analysis\030\001 \001(\0132N.google.cl" + + "oud.aiplatform.v1beta1.FeaturestoreMonit" + + "oringConfig.SnapshotAnalysis\022v\n\030import_f" + + "eatures_analysis\030\002 \001(\0132T.google.cloud.ai" + + "platform.v1beta1.FeaturestoreMonitoringC" + + "onfig.ImportFeaturesAnalysis\022q\n\032numerica" + + "l_threshold_config\030\003 \001(\0132M.google.cloud." + + "aiplatform.v1beta1.FeaturestoreMonitorin" + + "gConfig.ThresholdConfig\022s\n\034categorical_t" + + "hreshold_config\030\004 \001(\0132M.google.cloud.aip" + + "latform.v1beta1.FeaturestoreMonitoringCo" + + "nfig.ThresholdConfig\032\232\001\n\020SnapshotAnalysi" + + "s\022\020\n\010disabled\030\001 \001(\010\022:\n\023monitoring_interv" + + "al\030\002 \001(\0132\031.google.protobuf.DurationB\002\030\001\022" + + " \n\030monitoring_interval_days\030\003 \001(\005\022\026\n\016sta" + + "leness_days\030\004 \001(\005\032\313\003\n\026ImportFeaturesAnal" + + "ysis\022i\n\005state\030\001 \001(\0162Z.google.cloud.aipla" + + "tform.v1beta1.FeaturestoreMonitoringConf" + + "ig.ImportFeaturesAnalysis.State\022\201\001\n\032anom" + + "aly_detection_baseline\030\002 \001(\0162].google.cl" + + "oud.aiplatform.v1beta1.FeaturestoreMonit" + + "oringConfig.ImportFeaturesAnalysis.Basel" + + "ine\"F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007D" + + "EFAULT\020\001\022\013\n\007ENABLED\020\002\022\014\n\010DISABLED\020\003\"z\n\010B" + + "aseline\022\030\n\024BASELINE_UNSPECIFIED\020\000\022\020\n\014LAT" + + "EST_STATS\020\001\022\036\n\032MOST_RECENT_SNAPSHOT_STAT" + + "S\020\002\022\"\n\036PREVIOUS_IMPORT_FEATURES_STATS\020\003\032" + + "/\n\017ThresholdConfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tt" + + "hresholdB\370\001\n#com.google.cloud.aiplatform" + + ".v1beta1B\033FeaturestoreMonitoringProtoP\001Z" + + "Igoogle.golang.org/genproto/googleapis/c" + + "loud/aiplatform/v1beta1;aiplatform\252\002\037Goo" + + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" + + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" + + "AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_descriptor = @@ -141,7 +139,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Value", "Threshold", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java index 00e2eaf1a..53f61ca78 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java @@ -227,7 +227,12 @@ public interface FeaturestoreOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -251,11 +256,12 @@ public interface FeaturestoreOrBuilder * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the onlineServingConfig field is set. @@ -265,11 +271,12 @@ public interface FeaturestoreOrBuilder * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The onlineServingConfig. @@ -279,11 +286,12 @@ public interface FeaturestoreOrBuilder * * *
-   * Required. Config for online serving resources.
+   * Optional. Config for online storage resources. If unset, the featurestore will
+   * not have an online store and cannot be used for online serving.
    * 
* * - * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java index abda73f98..32fe73cea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java @@ -54,46 +54,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/aiplatform/v1beta1/featur" + "estore.proto\022\037google.cloud.aiplatform.v1" - + "beta1\032\034google/api/annotations.proto\032\037goo" - + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\0325google/cloud/aiplatform" - + "/v1beta1/encryption_spec.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\231\007\n\014Featurestore" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" - + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001\022N\n\006labels\030\006 \003" - + "(\01329.google.cloud.aiplatform.v1beta1.Fea" - + "turestore.LabelsEntryB\003\340A\001\022e\n\025online_ser" - + "ving_config\030\007 \001(\0132A.google.cloud.aiplatf" - + "orm.v1beta1.Featurestore.OnlineServingCo" - + "nfigB\003\340A\002\022G\n\005state\030\010 \001(\01623.google.cloud." - + "aiplatform.v1beta1.Featurestore.StateB\003\340" - + "A\003\022M\n\017encryption_spec\030\n \001(\0132/.google.clo" - + "ud.aiplatform.v1beta1.EncryptionSpecB\003\340A" - + "\001\032\313\001\n\023OnlineServingConfig\022\030\n\020fixed_node_" - + "count\030\002 \001(\005\022Z\n\007scaling\030\004 \001(\0132I.google.cl" - + "oud.aiplatform.v1beta1.Featurestore.Onli" - + "neServingConfig.Scaling\032>\n\007Scaling\022\033\n\016mi" - + "n_node_count\030\001 \001(\005B\003\340A\002\022\026\n\016max_node_coun" - + "t\030\002 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010UPDATING\020\002:q\352An\n&a" - + "iplatform.googleapis.com/Featurestore\022Dp" - + "rojects/{project}/locations/{location}/f" - + "eaturestores/{featurestore}B\356\001\n#com.goog" - + "le.cloud.aiplatform.v1beta1B\021Featurestor" - + "eProtoP\001ZIgoogle.golang.org/genproto/goo" - + "gleapis/cloud/aiplatform/v1beta1;aiplatf" - + "orm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037" - + "Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google" - + "::Cloud::AIPlatform::V1beta1b\006proto3" + + "beta1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\0325google/cloud/" + + "aiplatform/v1beta1/encryption_spec.proto" + + "\032\037google/protobuf/timestamp.proto\"\231\007\n\014Fe" + + "aturestore\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_" + + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001\022N\n\006" + + "labels\030\006 \003(\01329.google.cloud.aiplatform.v" + + "1beta1.Featurestore.LabelsEntryB\003\340A\001\022e\n\025" + + "online_serving_config\030\007 \001(\0132A.google.clo" + + "ud.aiplatform.v1beta1.Featurestore.Onlin" + + "eServingConfigB\003\340A\001\022G\n\005state\030\010 \001(\01623.goo" + + "gle.cloud.aiplatform.v1beta1.Featurestor" + + "e.StateB\003\340A\003\022M\n\017encryption_spec\030\n \001(\0132/." + + "google.cloud.aiplatform.v1beta1.Encrypti" + + "onSpecB\003\340A\001\032\313\001\n\023OnlineServingConfig\022\030\n\020f" + + "ixed_node_count\030\002 \001(\005\022Z\n\007scaling\030\004 \001(\0132I" + + ".google.cloud.aiplatform.v1beta1.Feature" + + "store.OnlineServingConfig.Scaling\032>\n\007Sca" + + "ling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\026\n\016max" + + "_node_count\030\002 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010UPDATING" + + "\020\002:q\352An\n&aiplatform.googleapis.com/Featu" + + "restore\022Dprojects/{project}/locations/{l" + + "ocation}/featurestores/{featurestore}B\356\001" + + "\n#com.google.cloud.aiplatform.v1beta1B\021F" + + "eaturestoreProtoP\001ZIgoogle.golang.org/ge" + + "nproto/googleapis/cloud/aiplatform/v1bet" + + "a1;aiplatform\252\002\037Google.Cloud.AIPlatform." + + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" + + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), @@ -150,7 +149,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java index c85a91169..ccf702401 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java @@ -215,332 +215,329 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/field_behavior.proto\032\031google/api/resour" + "ce.proto\0321google/cloud/aiplatform/v1beta" + "1/entity_type.proto\032-google/cloud/aiplat" - + "form/v1beta1/feature.proto\032>google/cloud" - + "/aiplatform/v1beta1/feature_monitoring_s" - + "tats.proto\0326google/cloud/aiplatform/v1be" - + "ta1/feature_selector.proto\0322google/cloud" - + "/aiplatform/v1beta1/featurestore.proto\032A" - + "google/cloud/aiplatform/v1beta1/features" - + "tore_online_service.proto\032(google/cloud/" - + "aiplatform/v1beta1/io.proto\032/google/clou" - + "d/aiplatform/v1beta1/operation.proto\032#go" - + "ogle/longrunning/operations.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\"\303\001\n\031CreateFeaturest" - + "oreRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&aipl" - + "atform.googleapis.com/Featurestore\022H\n\014fe" - + "aturestore\030\002 \001(\0132-.google.cloud.aiplatfo" - + "rm.v1beta1.FeaturestoreB\003\340A\002\022\034\n\017features" - + "tore_id\030\003 \001(\tB\003\340A\002\"V\n\026GetFeaturestoreReq" - + "uest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&aiplatform.g" - + "oogleapis.com/Featurestore\"\322\001\n\030ListFeatu" - + "restoresRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022" - + "&aiplatform.googleapis.com/Featurestore\022" - + "\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" - + "ge_token\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tread" - + "_mask\030\006 \001(\0132\032.google.protobuf.FieldMask\"" - + "z\n\031ListFeaturestoresResponse\022D\n\rfeatures" - + "tores\030\001 \003(\0132-.google.cloud.aiplatform.v1" - + "beta1.Featurestore\022\027\n\017next_page_token\030\002 " - + "\001(\t\"\226\001\n\031UpdateFeaturestoreRequest\022H\n\014fea" - + "turestore\030\001 \001(\0132-.google.cloud.aiplatfor" - + "m.v1beta1.FeaturestoreB\003\340A\002\022/\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"h\n\031" - + "DeleteFeaturestoreRequest\022<\n\004name\030\001 \001(\tB" - + ".\340A\002\372A(\n&aiplatform.googleapis.com/Featu" - + "restore\022\r\n\005force\030\002 \001(\010\"\262\005\n\032ImportFeature" - + "ValuesRequest\022B\n\013avro_source\030\002 \001(\0132+.goo" - + "gle.cloud.aiplatform.v1beta1.AvroSourceH" - + "\000\022J\n\017bigquery_source\030\003 \001(\0132/.google.clou" - + "d.aiplatform.v1beta1.BigQuerySourceH\000\022@\n" - + "\ncsv_source\030\004 \001(\0132*.google.cloud.aiplatf" - + "orm.v1beta1.CsvSourceH\000\022\034\n\022feature_time_" - + "field\030\006 \001(\tH\001\0222\n\014feature_time\030\007 \001(\0132\032.go" - + "ogle.protobuf.TimestampH\001\022A\n\013entity_type" - + "\030\001 \001(\tB,\340A\002\372A&\n$aiplatform.googleapis.co" - + "m/EntityType\022\027\n\017entity_id_field\030\005 \001(\t\022c\n" - + "\rfeature_specs\030\010 \003(\0132G.google.cloud.aipl" - + "atform.v1beta1.ImportFeatureValuesReques" - + "t.FeatureSpecB\003\340A\002\022\036\n\026disable_online_ser" - + "ving\030\t \001(\010\022\024\n\014worker_count\030\013 \001(\005\022\"\n\032disa" - + "ble_ingestion_analysis\030\014 \001(\010\0324\n\013FeatureS" - + "pec\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\024\n\014source_field\030\002 \001" - + "(\tB\010\n\006sourceB\025\n\023feature_time_source\"}\n\033I" - + "mportFeatureValuesResponse\022\035\n\025imported_e" - + "ntity_count\030\001 \001(\003\022$\n\034imported_feature_va" - + "lue_count\030\002 \001(\003\022\031\n\021invalid_row_count\030\006 \001" - + "(\003\"\277\006\n\035BatchReadFeatureValuesRequest\022H\n\022" - + "csv_read_instances\030\003 \001(\0132*.google.cloud." - + "aiplatform.v1beta1.CsvSourceH\000\022R\n\027bigque" - + "ry_read_instances\030\005 \001(\0132/.google.cloud.a" - + "iplatform.v1beta1.BigQuerySourceH\000\022D\n\014fe" - + "aturestore\030\001 \001(\tB.\340A\002\372A(\n&aiplatform.goo" - + "gleapis.com/Featurestore\022R\n\013destination\030" - + "\004 \001(\01328.google.cloud.aiplatform.v1beta1." - + "FeatureValueDestinationB\003\340A\002\022l\n\023pass_thr" - + "ough_fields\030\010 \003(\0132O.google.cloud.aiplatf" - + "orm.v1beta1.BatchReadFeatureValuesReques" - + "t.PassThroughField\022m\n\021entity_type_specs\030" - + "\007 \003(\0132M.google.cloud.aiplatform.v1beta1." - + "BatchReadFeatureValuesRequest.EntityType" - + "SpecB\003\340A\002\032+\n\020PassThroughField\022\027\n\nfield_n" - + "ame\030\001 \001(\tB\003\340A\002\032\314\001\n\016EntityTypeSpec\022\033\n\016ent" - + "ity_type_id\030\001 \001(\tB\003\340A\002\022O\n\020feature_select" - + "or\030\002 \001(\01320.google.cloud.aiplatform.v1bet" - + "a1.FeatureSelectorB\003\340A\002\022L\n\010settings\030\003 \003(" - + "\0132:.google.cloud.aiplatform.v1beta1.Dest" - + "inationFeatureSettingB\r\n\013read_option\"\201\006\n" - + "\032ExportFeatureValuesRequest\022e\n\017snapshot_" - + "export\030\003 \001(\0132J.google.cloud.aiplatform.v" - + "1beta1.ExportFeatureValuesRequest.Snapsh" - + "otExportH\000\022]\n\013full_export\030\007 \001(\0132F.google" - + ".cloud.aiplatform.v1beta1.ExportFeatureV" - + "aluesRequest.FullExportH\000\022A\n\013entity_type" - + "\030\001 \001(\tB,\340A\002\372A&\n$aiplatform.googleapis.co" - + "m/EntityType\022R\n\013destination\030\004 \001(\01328.goog" - + "le.cloud.aiplatform.v1beta1.FeatureValue" - + "DestinationB\003\340A\002\022O\n\020feature_selector\030\005 \001" - + "(\01320.google.cloud.aiplatform.v1beta1.Fea" - + "tureSelectorB\003\340A\002\022L\n\010settings\030\006 \003(\0132:.go" - + "ogle.cloud.aiplatform.v1beta1.Destinatio" - + "nFeatureSetting\032s\n\016SnapshotExport\0221\n\rsna" - + "pshot_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tamp\022.\n\nstart_time\030\002 \001(\0132\032.google.protob" - + "uf.Timestamp\032j\n\nFullExport\022.\n\nstart_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" - + "d_time\030\001 \001(\0132\032.google.protobuf.Timestamp" - + "B\006\n\004mode\"O\n\031DestinationFeatureSetting\022\027\n" - + "\nfeature_id\030\001 \001(\tB\003\340A\002\022\031\n\021destination_fi" - + "eld\030\002 \001(\t\"\240\002\n\027FeatureValueDestination\022T\n" - + "\024bigquery_destination\030\001 \001(\01324.google.clo" - + "ud.aiplatform.v1beta1.BigQueryDestinatio" - + "nH\000\022T\n\024tfrecord_destination\030\002 \001(\01324.goog" - + "le.cloud.aiplatform.v1beta1.TFRecordDest" - + "inationH\000\022J\n\017csv_destination\030\003 \001(\0132/.goo" - + "gle.cloud.aiplatform.v1beta1.CsvDestinat" - + "ionH\000B\r\n\013destination\"\035\n\033ExportFeatureVal" - + "uesResponse\" \n\036BatchReadFeatureValuesRes" - + "ponse\"\270\001\n\027CreateEntityTypeRequest\022>\n\006par" - + "ent\030\001 \001(\tB.\340A\002\372A(\n&aiplatform.googleapis" - + ".com/Featurestore\022@\n\013entity_type\030\002 \001(\0132+" - + ".google.cloud.aiplatform.v1beta1.EntityT" - + "ype\022\033\n\016entity_type_id\030\003 \001(\tB\003\340A\002\"R\n\024GetE" - + "ntityTypeRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$" - + "aiplatform.googleapis.com/EntityType\"\316\001\n" - + "\026ListEntityTypesRequest\022<\n\006parent\030\001 \001(\tB" - + ",\340A\002\372A&\022$aiplatform.googleapis.com/Entit" - + "yType\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" - + "\022\022\n\npage_token\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\022-" - + "\n\tread_mask\030\006 \001(\0132\032.google.protobuf.Fiel" - + "dMask\"u\n\027ListEntityTypesResponse\022A\n\014enti" - + "ty_types\030\001 \003(\0132+.google.cloud.aiplatform" - + ".v1beta1.EntityType\022\027\n\017next_page_token\030\002" - + " \001(\t\"\221\001\n\027UpdateEntityTypeRequest\022E\n\013enti" - + "ty_type\030\001 \001(\0132+.google.cloud.aiplatform." - + "v1beta1.EntityTypeB\003\340A\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"d\n\027Dele" - + "teEntityTypeRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A" - + "&\n$aiplatform.googleapis.com/EntityType\022" - + "\r\n\005force\030\002 \001(\010\"\255\001\n\024CreateFeatureRequest\022" - + "<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$aiplatform.goog" - + "leapis.com/EntityType\022>\n\007feature\030\002 \001(\0132(" - + ".google.cloud.aiplatform.v1beta1.Feature" - + "B\003\340A\002\022\027\n\nfeature_id\030\003 \001(\tB\003\340A\002\"\250\001\n\032Batch" - + "CreateFeaturesRequest\022<\n\006parent\030\001 \001(\tB,\340" - + "A\002\372A&\n$aiplatform.googleapis.com/EntityT" - + "ype\022L\n\010requests\030\002 \003(\01325.google.cloud.aip" - + "latform.v1beta1.CreateFeatureRequestB\003\340A" - + "\002\"Y\n\033BatchCreateFeaturesResponse\022:\n\010feat" - + "ures\030\001 \003(\0132(.google.cloud.aiplatform.v1b" - + "eta1.Feature\"L\n\021GetFeatureRequest\0227\n\004nam" + + "form/v1beta1/feature.proto\0326google/cloud" + + "/aiplatform/v1beta1/feature_selector.pro" + + "to\0322google/cloud/aiplatform/v1beta1/feat" + + "urestore.proto\032(google/cloud/aiplatform/" + + "v1beta1/io.proto\032/google/cloud/aiplatfor" + + "m/v1beta1/operation.proto\032#google/longru" + + "nning/operations.proto\032 google/protobuf/" + + "field_mask.proto\032\037google/protobuf/timest" + + "amp.proto\"\303\001\n\031CreateFeaturestoreRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&aiplatform.goog" + + "leapis.com/Featurestore\022H\n\014featurestore\030" + + "\002 \001(\0132-.google.cloud.aiplatform.v1beta1." + + "FeaturestoreB\003\340A\002\022\034\n\017featurestore_id\030\003 \001" + + "(\tB\003\340A\002\"V\n\026GetFeaturestoreRequest\022<\n\004nam" + + "e\030\001 \001(\tB.\340A\002\372A(\n&aiplatform.googleapis.c" + + "om/Featurestore\"\322\001\n\030ListFeaturestoresReq" + + "uest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&aiplatform" + + ".googleapis.com/Featurestore\022\016\n\006filter\030\002" + + " \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 " + + "\001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tread_mask\030\006 \001(\013" + + "2\032.google.protobuf.FieldMask\"z\n\031ListFeat" + + "urestoresResponse\022D\n\rfeaturestores\030\001 \003(\013" + + "2-.google.cloud.aiplatform.v1beta1.Featu" + + "restore\022\027\n\017next_page_token\030\002 \001(\t\"\226\001\n\031Upd" + + "ateFeaturestoreRequest\022H\n\014featurestore\030\001" + + " \001(\0132-.google.cloud.aiplatform.v1beta1.F" + + "eaturestoreB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"h\n\031DeleteFeatu" + + "restoreRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&ai" + + "platform.googleapis.com/Featurestore\022\r\n\005" + + "force\030\002 \001(\010\"\262\005\n\032ImportFeatureValuesReque" + + "st\022B\n\013avro_source\030\002 \001(\0132+.google.cloud.a" + + "iplatform.v1beta1.AvroSourceH\000\022J\n\017bigque" + + "ry_source\030\003 \001(\0132/.google.cloud.aiplatfor" + + "m.v1beta1.BigQuerySourceH\000\022@\n\ncsv_source" + + "\030\004 \001(\0132*.google.cloud.aiplatform.v1beta1" + + ".CsvSourceH\000\022\034\n\022feature_time_field\030\006 \001(\t" + + "H\001\0222\n\014feature_time\030\007 \001(\0132\032.google.protob" + + "uf.TimestampH\001\022A\n\013entity_type\030\001 \001(\tB,\340A\002" + + "\372A&\n$aiplatform.googleapis.com/EntityTyp" + + "e\022\027\n\017entity_id_field\030\005 \001(\t\022c\n\rfeature_sp" + + "ecs\030\010 \003(\0132G.google.cloud.aiplatform.v1be" + + "ta1.ImportFeatureValuesRequest.FeatureSp" + + "ecB\003\340A\002\022\036\n\026disable_online_serving\030\t \001(\010\022" + + "\024\n\014worker_count\030\013 \001(\005\022\"\n\032disable_ingesti" + + "on_analysis\030\014 \001(\010\0324\n\013FeatureSpec\022\017\n\002id\030\001" + + " \001(\tB\003\340A\002\022\024\n\014source_field\030\002 \001(\tB\010\n\006sourc" + + "eB\025\n\023feature_time_source\"}\n\033ImportFeatur" + + "eValuesResponse\022\035\n\025imported_entity_count" + + "\030\001 \001(\003\022$\n\034imported_feature_value_count\030\002" + + " \001(\003\022\031\n\021invalid_row_count\030\006 \001(\003\"\277\006\n\035Batc" + + "hReadFeatureValuesRequest\022H\n\022csv_read_in" + + "stances\030\003 \001(\0132*.google.cloud.aiplatform." + + "v1beta1.CsvSourceH\000\022R\n\027bigquery_read_ins" + + "tances\030\005 \001(\0132/.google.cloud.aiplatform.v" + + "1beta1.BigQuerySourceH\000\022D\n\014featurestore\030" + + "\001 \001(\tB.\340A\002\372A(\n&aiplatform.googleapis.com" + + "/Featurestore\022R\n\013destination\030\004 \001(\01328.goo" + + "gle.cloud.aiplatform.v1beta1.FeatureValu" + + "eDestinationB\003\340A\002\022l\n\023pass_through_fields" + + "\030\010 \003(\0132O.google.cloud.aiplatform.v1beta1" + + ".BatchReadFeatureValuesRequest.PassThrou" + + "ghField\022m\n\021entity_type_specs\030\007 \003(\0132M.goo" + + "gle.cloud.aiplatform.v1beta1.BatchReadFe" + + "atureValuesRequest.EntityTypeSpecB\003\340A\002\032+" + + "\n\020PassThroughField\022\027\n\nfield_name\030\001 \001(\tB\003" + + "\340A\002\032\314\001\n\016EntityTypeSpec\022\033\n\016entity_type_id" + + "\030\001 \001(\tB\003\340A\002\022O\n\020feature_selector\030\002 \001(\01320." + + "google.cloud.aiplatform.v1beta1.FeatureS" + + "electorB\003\340A\002\022L\n\010settings\030\003 \003(\0132:.google." + + "cloud.aiplatform.v1beta1.DestinationFeat" + + "ureSettingB\r\n\013read_option\"\201\006\n\032ExportFeat" + + "ureValuesRequest\022e\n\017snapshot_export\030\003 \001(" + + "\0132J.google.cloud.aiplatform.v1beta1.Expo" + + "rtFeatureValuesRequest.SnapshotExportH\000\022" + + "]\n\013full_export\030\007 \001(\0132F.google.cloud.aipl" + + "atform.v1beta1.ExportFeatureValuesReques" + + "t.FullExportH\000\022A\n\013entity_type\030\001 \001(\tB,\340A\002" + + "\372A&\n$aiplatform.googleapis.com/EntityTyp" + + "e\022R\n\013destination\030\004 \001(\01328.google.cloud.ai" + + "platform.v1beta1.FeatureValueDestination" + + "B\003\340A\002\022O\n\020feature_selector\030\005 \001(\01320.google" + + ".cloud.aiplatform.v1beta1.FeatureSelecto" + + "rB\003\340A\002\022L\n\010settings\030\006 \003(\0132:.google.cloud." + + "aiplatform.v1beta1.DestinationFeatureSet" + + "ting\032s\n\016SnapshotExport\0221\n\rsnapshot_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022.\n\nsta" + + "rt_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\032j\n\nFullExport\022.\n\nstart_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022,\n\010end_time\030\001 \001(" + + "\0132\032.google.protobuf.TimestampB\006\n\004mode\"O\n" + + "\031DestinationFeatureSetting\022\027\n\nfeature_id" + + "\030\001 \001(\tB\003\340A\002\022\031\n\021destination_field\030\002 \001(\t\"\240" + + "\002\n\027FeatureValueDestination\022T\n\024bigquery_d" + + "estination\030\001 \001(\01324.google.cloud.aiplatfo" + + "rm.v1beta1.BigQueryDestinationH\000\022T\n\024tfre" + + "cord_destination\030\002 \001(\01324.google.cloud.ai" + + "platform.v1beta1.TFRecordDestinationH\000\022J" + + "\n\017csv_destination\030\003 \001(\0132/.google.cloud.a" + + "iplatform.v1beta1.CsvDestinationH\000B\r\n\013de" + + "stination\"\035\n\033ExportFeatureValuesResponse" + + "\" \n\036BatchReadFeatureValuesResponse\"\270\001\n\027C" + + "reateEntityTypeRequest\022>\n\006parent\030\001 \001(\tB." + + "\340A\002\372A(\n&aiplatform.googleapis.com/Featur" + + "estore\022@\n\013entity_type\030\002 \001(\0132+.google.clo" + + "ud.aiplatform.v1beta1.EntityType\022\033\n\016enti" + + "ty_type_id\030\003 \001(\tB\003\340A\002\"R\n\024GetEntityTypeRe" + + "quest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$aiplatform." + + "googleapis.com/EntityType\"\316\001\n\026ListEntity" + + "TypesRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$ai" + + "platform.googleapis.com/EntityType\022\016\n\006fi" + + "lter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_to" + + "ken\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tread_mask" + + "\030\006 \001(\0132\032.google.protobuf.FieldMask\"u\n\027Li" + + "stEntityTypesResponse\022A\n\014entity_types\030\001 " + + "\003(\0132+.google.cloud.aiplatform.v1beta1.En" + + "tityType\022\027\n\017next_page_token\030\002 \001(\t\"\221\001\n\027Up" + + "dateEntityTypeRequest\022E\n\013entity_type\030\001 \001" + + "(\0132+.google.cloud.aiplatform.v1beta1.Ent" + + "ityTypeB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"d\n\027DeleteEntityTyp" + + "eRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$aiplatfo" + + "rm.googleapis.com/EntityType\022\r\n\005force\030\002 " + + "\001(\010\"\255\001\n\024CreateFeatureRequest\022<\n\006parent\030\001" + + " \001(\tB,\340A\002\372A&\n$aiplatform.googleapis.com/" + + "EntityType\022>\n\007feature\030\002 \001(\0132(.google.clo" + + "ud.aiplatform.v1beta1.FeatureB\003\340A\002\022\027\n\nfe" + + "ature_id\030\003 \001(\tB\003\340A\002\"\250\001\n\032BatchCreateFeatu" + + "resRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$aipl" + + "atform.googleapis.com/EntityType\022L\n\010requ" + + "ests\030\002 \003(\01325.google.cloud.aiplatform.v1b" + + "eta1.CreateFeatureRequestB\003\340A\002\"Y\n\033BatchC" + + "reateFeaturesResponse\022:\n\010features\030\001 \003(\0132" + + "(.google.cloud.aiplatform.v1beta1.Featur" + + "e\"L\n\021GetFeatureRequest\0227\n\004name\030\001 \001(\tB)\340A" + + "\002\372A#\n!aiplatform.googleapis.com/Feature\"" + + "\344\001\n\023ListFeaturesRequest\0229\n\006parent\030\001 \001(\tB" + + ")\340A\002\372A#\022!aiplatform.googleapis.com/Featu" + + "re\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" + + "\npage_token\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tr" + + "ead_mask\030\006 \001(\0132\032.google.protobuf.FieldMa" + + "sk\022\032\n\022latest_stats_count\030\007 \001(\005\"k\n\024ListFe" + + "aturesResponse\022:\n\010features\030\001 \003(\0132(.googl" + + "e.cloud.aiplatform.v1beta1.Feature\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\212\001\n\025SearchFeaturesRe" + + "quest\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!locatio" + + "ns.googleapis.com/Location\022\r\n\005query\030\003 \001(" + + "\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t" + + "\"m\n\026SearchFeaturesResponse\022:\n\010features\030\001" + + " \003(\0132(.google.cloud.aiplatform.v1beta1.F" + + "eature\022\027\n\017next_page_token\030\002 \001(\t\"\207\001\n\024Upda" + + "teFeatureRequest\022>\n\007feature\030\001 \001(\0132(.goog" + + "le.cloud.aiplatform.v1beta1.FeatureB\003\340A\002" + + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMask\"O\n\024DeleteFeatureRequest\0227\n\004nam" + "e\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis.c" - + "om/Feature\"\344\001\n\023ListFeaturesRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\022!aiplatform.googleapi" - + "s.com/Feature\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" - + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\022-\n\tread_mask\030\006 \001(\0132\032.google.proto" - + "buf.FieldMask\022\032\n\022latest_stats_count\030\007 \001(" - + "\005\"k\n\024ListFeaturesResponse\022:\n\010features\030\001 " - + "\003(\0132(.google.cloud.aiplatform.v1beta1.Fe" - + "ature\022\027\n\017next_page_token\030\002 \001(\t\"\212\001\n\025Searc" - + "hFeaturesRequest\022;\n\010location\030\001 \001(\tB)\340A\002\372" - + "A#\n!locations.googleapis.com/Location\022\r\n" - + "\005query\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_" - + "token\030\005 \001(\t\"m\n\026SearchFeaturesResponse\022:\n" - + "\010features\030\001 \003(\0132(.google.cloud.aiplatfor" - + "m.v1beta1.Feature\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\207\001\n\024UpdateFeatureRequest\022>\n\007feature\030\001" - + " \001(\0132(.google.cloud.aiplatform.v1beta1.F" - + "eatureB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"O\n\024DeleteFeatureReq" - + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.g" - + "oogleapis.com/Feature\"z\n#CreateFeaturest" - + "oreOperationMetadata\022S\n\020generic_metadata" - + "\030\001 \001(\01329.google.cloud.aiplatform.v1beta1" - + ".GenericOperationMetadata\"z\n#UpdateFeatu" - + "restoreOperationMetadata\022S\n\020generic_meta" - + "data\030\001 \001(\01329.google.cloud.aiplatform.v1b" - + "eta1.GenericOperationMetadata\"\333\001\n$Import" - + "FeatureValuesOperationMetadata\022S\n\020generi" - + "c_metadata\030\001 \001(\01329.google.cloud.aiplatfo" - + "rm.v1beta1.GenericOperationMetadata\022\035\n\025i" - + "mported_entity_count\030\002 \001(\003\022$\n\034imported_f" - + "eature_value_count\030\003 \001(\003\022\031\n\021invalid_row_" - + "count\030\006 \001(\003\"{\n$ExportFeatureValuesOperat" - + "ionMetadata\022S\n\020generic_metadata\030\001 \001(\01329." - + "google.cloud.aiplatform.v1beta1.GenericO" - + "perationMetadata\"~\n\'BatchReadFeatureValu" + + "om/Feature\"z\n#CreateFeaturestoreOperatio" + + "nMetadata\022S\n\020generic_metadata\030\001 \001(\01329.go" + + "ogle.cloud.aiplatform.v1beta1.GenericOpe" + + "rationMetadata\"z\n#UpdateFeaturestoreOper" + + "ationMetadata\022S\n\020generic_metadata\030\001 \001(\0132" + + "9.google.cloud.aiplatform.v1beta1.Generi" + + "cOperationMetadata\"\333\001\n$ImportFeatureValu" + "esOperationMetadata\022S\n\020generic_metadata\030" + "\001 \001(\01329.google.cloud.aiplatform.v1beta1." - + "GenericOperationMetadata\"x\n!CreateEntity" - + "TypeOperationMetadata\022S\n\020generic_metadat" - + "a\030\001 \001(\01329.google.cloud.aiplatform.v1beta" - + "1.GenericOperationMetadata\"u\n\036CreateFeat" - + "ureOperationMetadata\022S\n\020generic_metadata" - + "\030\001 \001(\01329.google.cloud.aiplatform.v1beta1" - + ".GenericOperationMetadata\"{\n$BatchCreate" - + "FeaturesOperationMetadata\022S\n\020generic_met" - + "adata\030\001 \001(\01329.google.cloud.aiplatform.v1" - + "beta1.GenericOperationMetadata2\260)\n\023Featu" - + "restoreService\022\260\002\n\022CreateFeaturestore\022:." - + "google.cloud.aiplatform.v1beta1.CreateFe" - + "aturestoreRequest\032\035.google.longrunning.O" - + "peration\"\276\001\202\323\344\223\002F\"6/v1beta1/{parent=proj" - + "ects/*/locations/*}/featurestores:\014featu" - + "restore\332A\023parent,featurestore\332A#parent,f" - + "eaturestore,featurestore_id\312A3\n\014Features" - + "tore\022#CreateFeaturestoreOperationMetadat" - + "a\022\300\001\n\017GetFeaturestore\0227.google.cloud.aip" - + "latform.v1beta1.GetFeaturestoreRequest\032-" - + ".google.cloud.aiplatform.v1beta1.Feature" - + "store\"E\202\323\344\223\0028\0226/v1beta1/{name=projects/*" - + "/locations/*/featurestores/*}\332A\004name\022\323\001\n" - + "\021ListFeaturestores\0229.google.cloud.aiplat" - + "form.v1beta1.ListFeaturestoresRequest\032:." - + "google.cloud.aiplatform.v1beta1.ListFeat" - + "urestoresResponse\"G\202\323\344\223\0028\0226/v1beta1/{par" - + "ent=projects/*/locations/*}/featurestore" - + "s\332A\006parent\022\234\002\n\022UpdateFeaturestore\022:.goog" - + "le.cloud.aiplatform.v1beta1.UpdateFeatur" - + "estoreRequest\032\035.google.longrunning.Opera" - + "tion\"\252\001\202\323\344\223\002S2C/v1beta1/{featurestore.na" - + "me=projects/*/locations/*/featurestores/" - + "*}:\014featurestore\332A\030featurestore,update_m" - + "ask\312A3\n\014Featurestore\022#UpdateFeaturestore" - + "OperationMetadata\022\367\001\n\022DeleteFeaturestore" - + "\022:.google.cloud.aiplatform.v1beta1.Delet" - + "eFeaturestoreRequest\032\035.google.longrunnin" - + "g.Operation\"\205\001\202\323\344\223\0028*6/v1beta1/{name=pro" - + "jects/*/locations/*/featurestores/*}\332A\004n" - + "ame\332A\nname,force\312A0\n\025google.protobuf.Emp" - + "ty\022\027DeleteOperationMetadata\022\262\002\n\020CreateEn" - + "tityType\0228.google.cloud.aiplatform.v1bet" - + "a1.CreateEntityTypeRequest\032\035.google.long" - + "running.Operation\"\304\001\202\323\344\223\002S\"D/v1beta1/{pa" - + "rent=projects/*/locations/*/featurestore" - + "s/*}/entityTypes:\013entity_type\332A\022parent,e" - + "ntity_type\332A!parent,entity_type,entity_t" - + "ype_id\312A/\n\nEntityType\022!CreateEntityTypeO" - + "perationMetadata\022\310\001\n\rGetEntityType\0225.goo" - + "gle.cloud.aiplatform.v1beta1.GetEntityTy" - + "peRequest\032+.google.cloud.aiplatform.v1be" - + "ta1.EntityType\"S\202\323\344\223\002F\022D/v1beta1/{name=p" - + "rojects/*/locations/*/featurestores/*/en" - + "tityTypes/*}\332A\004name\022\333\001\n\017ListEntityTypes\022" - + "7.google.cloud.aiplatform.v1beta1.ListEn" - + "tityTypesRequest\0328.google.cloud.aiplatfo" - + "rm.v1beta1.ListEntityTypesResponse\"U\202\323\344\223" - + "\002F\022D/v1beta1/{parent=projects/*/location" - + "s/*/featurestores/*}/entityTypes\332A\006paren" - + "t\022\372\001\n\020UpdateEntityType\0228.google.cloud.ai" - + "platform.v1beta1.UpdateEntityTypeRequest" - + "\032+.google.cloud.aiplatform.v1beta1.Entit" - + "yType\"\177\202\323\344\223\002_2P/v1beta1/{entity_type.nam" - + "e=projects/*/locations/*/featurestores/*" - + "/entityTypes/*}:\013entity_type\332A\027entity_ty" - + "pe,update_mask\022\201\002\n\020DeleteEntityType\0228.go" - + "ogle.cloud.aiplatform.v1beta1.DeleteEnti" - + "tyTypeRequest\032\035.google.longrunning.Opera" - + "tion\"\223\001\202\323\344\223\002F*D/v1beta1/{name=projects/*" - + "/locations/*/featurestores/*/entityTypes" - + "/*}\332A\004name\332A\nname,force\312A0\n\025google.proto" - + "buf.Empty\022\027DeleteOperationMetadata\022\241\002\n\rC" - + "reateFeature\0225.google.cloud.aiplatform.v" - + "1beta1.CreateFeatureRequest\032\035.google.lon" - + "grunning.Operation\"\271\001\202\323\344\223\002Z\"O/v1beta1/{p" - + "arent=projects/*/locations/*/featurestor" - + "es/*/entityTypes/*}/features:\007feature\332A\016" - + "parent,feature\332A\031parent,feature,feature_" - + "id\312A)\n\007Feature\022\036CreateFeatureOperationMe" - + "tadata\022\262\002\n\023BatchCreateFeatures\022;.google." - + "cloud.aiplatform.v1beta1.BatchCreateFeat" - + "uresRequest\032\035.google.longrunning.Operati" - + "on\"\276\001\202\323\344\223\002`\"[/v1beta1/{parent=projects/*" - + "/locations/*/featurestores/*/entityTypes" - + "/*}/features:batchCreate:\001*\332A\017parent,req" - + "uests\312AC\n\033BatchCreateFeaturesResponse\022$B" - + "atchCreateFeaturesOperationMetadata\022\312\001\n\n" - + "GetFeature\0222.google.cloud.aiplatform.v1b" - + "eta1.GetFeatureRequest\032(.google.cloud.ai" - + "platform.v1beta1.Feature\"^\202\323\344\223\002Q\022O/v1bet" - + "a1/{name=projects/*/locations/*/features" - + "tores/*/entityTypes/*/features/*}\332A\004name" - + "\022\335\001\n\014ListFeatures\0224.google.cloud.aiplatf" - + "orm.v1beta1.ListFeaturesRequest\0325.google" - + ".cloud.aiplatform.v1beta1.ListFeaturesRe" - + "sponse\"`\202\323\344\223\002Q\022O/v1beta1/{parent=project" - + "s/*/locations/*/featurestores/*/entityTy" - + "pes/*}/features\332A\006parent\022\360\001\n\rUpdateFeatu" - + "re\0225.google.cloud.aiplatform.v1beta1.Upd" - + "ateFeatureRequest\032(.google.cloud.aiplatf" - + "orm.v1beta1.Feature\"~\202\323\344\223\002b2W/v1beta1/{f" - + "eature.name=projects/*/locations/*/featu" - + "restores/*/entityTypes/*/features/*}:\007fe" - + "ature\332A\023feature,update_mask\022\371\001\n\rDeleteFe" - + "ature\0225.google.cloud.aiplatform.v1beta1." - + "DeleteFeatureRequest\032\035.google.longrunnin" - + "g.Operation\"\221\001\202\323\344\223\002Q*O/v1beta1/{name=pro" - + "jects/*/locations/*/featurestores/*/enti" - + "tyTypes/*/features/*}\332A\004name\312A0\n\025google." - + "protobuf.Empty\022\027DeleteOperationMetadata\022" - + "\262\002\n\023ImportFeatureValues\022;.google.cloud.a" - + "iplatform.v1beta1.ImportFeatureValuesReq" - + "uest\032\035.google.longrunning.Operation\"\276\001\202\323" - + "\344\223\002d\"_/v1beta1/{entity_type=projects/*/l" + + "GenericOperationMetadata\022\035\n\025imported_ent" + + "ity_count\030\002 \001(\003\022$\n\034imported_feature_valu" + + "e_count\030\003 \001(\003\022\031\n\021invalid_row_count\030\006 \001(\003" + + "\"{\n$ExportFeatureValuesOperationMetadata" + + "\022S\n\020generic_metadata\030\001 \001(\01329.google.clou" + + "d.aiplatform.v1beta1.GenericOperationMet" + + "adata\"~\n\'BatchReadFeatureValuesOperation" + + "Metadata\022S\n\020generic_metadata\030\001 \001(\01329.goo" + + "gle.cloud.aiplatform.v1beta1.GenericOper" + + "ationMetadata\"x\n!CreateEntityTypeOperati" + + "onMetadata\022S\n\020generic_metadata\030\001 \001(\01329.g" + + "oogle.cloud.aiplatform.v1beta1.GenericOp" + + "erationMetadata\"u\n\036CreateFeatureOperatio" + + "nMetadata\022S\n\020generic_metadata\030\001 \001(\01329.go" + + "ogle.cloud.aiplatform.v1beta1.GenericOpe" + + "rationMetadata\"{\n$BatchCreateFeaturesOpe" + + "rationMetadata\022S\n\020generic_metadata\030\001 \001(\013" + + "29.google.cloud.aiplatform.v1beta1.Gener" + + "icOperationMetadata2\260)\n\023FeaturestoreServ" + + "ice\022\260\002\n\022CreateFeaturestore\022:.google.clou" + + "d.aiplatform.v1beta1.CreateFeaturestoreR" + + "equest\032\035.google.longrunning.Operation\"\276\001" + + "\202\323\344\223\002F\"6/v1beta1/{parent=projects/*/loca" + + "tions/*}/featurestores:\014featurestore\332A\023p" + + "arent,featurestore\332A#parent,featurestore" + + ",featurestore_id\312A3\n\014Featurestore\022#Creat" + + "eFeaturestoreOperationMetadata\022\300\001\n\017GetFe" + + "aturestore\0227.google.cloud.aiplatform.v1b" + + "eta1.GetFeaturestoreRequest\032-.google.clo" + + "ud.aiplatform.v1beta1.Featurestore\"E\202\323\344\223" + + "\0028\0226/v1beta1/{name=projects/*/locations/" + + "*/featurestores/*}\332A\004name\022\323\001\n\021ListFeatur" + + "estores\0229.google.cloud.aiplatform.v1beta" + + "1.ListFeaturestoresRequest\032:.google.clou" + + "d.aiplatform.v1beta1.ListFeaturestoresRe" + + "sponse\"G\202\323\344\223\0028\0226/v1beta1/{parent=project" + + "s/*/locations/*}/featurestores\332A\006parent\022" + + "\234\002\n\022UpdateFeaturestore\022:.google.cloud.ai" + + "platform.v1beta1.UpdateFeaturestoreReque" + + "st\032\035.google.longrunning.Operation\"\252\001\202\323\344\223" + + "\002S2C/v1beta1/{featurestore.name=projects" + + "/*/locations/*/featurestores/*}:\014feature" + + "store\332A\030featurestore,update_mask\312A3\n\014Fea" + + "turestore\022#UpdateFeaturestoreOperationMe" + + "tadata\022\367\001\n\022DeleteFeaturestore\022:.google.c" + + "loud.aiplatform.v1beta1.DeleteFeaturesto" + + "reRequest\032\035.google.longrunning.Operation" + + "\"\205\001\202\323\344\223\0028*6/v1beta1/{name=projects/*/loc" + + "ations/*/featurestores/*}\332A\004name\332A\nname," + + "force\312A0\n\025google.protobuf.Empty\022\027DeleteO" + + "perationMetadata\022\262\002\n\020CreateEntityType\0228." + + "google.cloud.aiplatform.v1beta1.CreateEn" + + "tityTypeRequest\032\035.google.longrunning.Ope" + + "ration\"\304\001\202\323\344\223\002S\"D/v1beta1/{parent=projec" + + "ts/*/locations/*/featurestores/*}/entity" + + "Types:\013entity_type\332A\022parent,entity_type\332" + + "A!parent,entity_type,entity_type_id\312A/\n\n" + + "EntityType\022!CreateEntityTypeOperationMet" + + "adata\022\310\001\n\rGetEntityType\0225.google.cloud.a" + + "iplatform.v1beta1.GetEntityTypeRequest\032+" + + ".google.cloud.aiplatform.v1beta1.EntityT" + + "ype\"S\202\323\344\223\002F\022D/v1beta1/{name=projects/*/l" + "ocations/*/featurestores/*/entityTypes/*" - + "}:importFeatureValues:\001*\332A\013entity_type\312A" - + "C\n\033ImportFeatureValuesResponse\022$ImportFe" - + "atureValuesOperationMetadata\022\265\002\n\026BatchRe" - + "adFeatureValues\022>.google.cloud.aiplatfor" - + "m.v1beta1.BatchReadFeatureValuesRequest\032" - + "\035.google.longrunning.Operation\"\273\001\202\323\344\223\002Z\"" - + "U/v1beta1/{featurestore=projects/*/locat" - + "ions/*/featurestores/*}:batchReadFeature" - + "Values:\001*\332A\014featurestore\312AI\n\036BatchReadFe" - + "atureValuesResponse\022\'BatchReadFeatureVal" - + "uesOperationMetadata\022\262\002\n\023ExportFeatureVa" - + "lues\022;.google.cloud.aiplatform.v1beta1.E" - + "xportFeatureValuesRequest\032\035.google.longr" - + "unning.Operation\"\276\001\202\323\344\223\002d\"_/v1beta1/{ent" - + "ity_type=projects/*/locations/*/features" - + "tores/*/entityTypes/*}:exportFeatureValu" - + "es:\001*\332A\013entity_type\312AC\n\033ExportFeatureVal" - + "uesResponse\022$ExportFeatureValuesOperatio" - + "nMetadata\022\356\001\n\016SearchFeatures\0226.google.cl" - + "oud.aiplatform.v1beta1.SearchFeaturesReq" - + "uest\0327.google.cloud.aiplatform.v1beta1.S" - + "earchFeaturesResponse\"k\202\323\344\223\002I\022G/v1beta1/" - + "{location=projects/*/locations/*}/featur" - + "estores:searchFeatures\332A\010location\332A\016loca" - + "tion,query\032M\312A\031aiplatform.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\365\001\n#com.google.cloud.aiplatfor" - + "m.v1beta1B\030FeaturestoreServiceProtoP\001ZIg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1beta1;aiplatform\252\002\037Googl" - + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" - + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" - + "Platform::V1beta1b\006proto3" + + "}\332A\004name\022\333\001\n\017ListEntityTypes\0227.google.cl" + + "oud.aiplatform.v1beta1.ListEntityTypesRe" + + "quest\0328.google.cloud.aiplatform.v1beta1." + + "ListEntityTypesResponse\"U\202\323\344\223\002F\022D/v1beta" + + "1/{parent=projects/*/locations/*/feature" + + "stores/*}/entityTypes\332A\006parent\022\372\001\n\020Updat" + + "eEntityType\0228.google.cloud.aiplatform.v1" + + "beta1.UpdateEntityTypeRequest\032+.google.c" + + "loud.aiplatform.v1beta1.EntityType\"\177\202\323\344\223" + + "\002_2P/v1beta1/{entity_type.name=projects/" + + "*/locations/*/featurestores/*/entityType" + + "s/*}:\013entity_type\332A\027entity_type,update_m" + + "ask\022\201\002\n\020DeleteEntityType\0228.google.cloud." + + "aiplatform.v1beta1.DeleteEntityTypeReque" + + "st\032\035.google.longrunning.Operation\"\223\001\202\323\344\223" + + "\002F*D/v1beta1/{name=projects/*/locations/" + + "*/featurestores/*/entityTypes/*}\332A\004name\332" + + "A\nname,force\312A0\n\025google.protobuf.Empty\022\027" + + "DeleteOperationMetadata\022\241\002\n\rCreateFeatur" + + "e\0225.google.cloud.aiplatform.v1beta1.Crea" + + "teFeatureRequest\032\035.google.longrunning.Op" + + "eration\"\271\001\202\323\344\223\002Z\"O/v1beta1/{parent=proje" + + "cts/*/locations/*/featurestores/*/entity" + + "Types/*}/features:\007feature\332A\016parent,feat" + + "ure\332A\031parent,feature,feature_id\312A)\n\007Feat" + + "ure\022\036CreateFeatureOperationMetadata\022\262\002\n\023" + + "BatchCreateFeatures\022;.google.cloud.aipla" + + "tform.v1beta1.BatchCreateFeaturesRequest" + + "\032\035.google.longrunning.Operation\"\276\001\202\323\344\223\002`" + + "\"[/v1beta1/{parent=projects/*/locations/" + + "*/featurestores/*/entityTypes/*}/feature" + + "s:batchCreate:\001*\332A\017parent,requests\312AC\n\033B" + + "atchCreateFeaturesResponse\022$BatchCreateF" + + "eaturesOperationMetadata\022\312\001\n\nGetFeature\022" + + "2.google.cloud.aiplatform.v1beta1.GetFea" + + "tureRequest\032(.google.cloud.aiplatform.v1" + + "beta1.Feature\"^\202\323\344\223\002Q\022O/v1beta1/{name=pr" + + "ojects/*/locations/*/featurestores/*/ent" + + "ityTypes/*/features/*}\332A\004name\022\335\001\n\014ListFe" + + "atures\0224.google.cloud.aiplatform.v1beta1" + + ".ListFeaturesRequest\0325.google.cloud.aipl" + + "atform.v1beta1.ListFeaturesResponse\"`\202\323\344" + + "\223\002Q\022O/v1beta1/{parent=projects/*/locatio" + + "ns/*/featurestores/*/entityTypes/*}/feat" + + "ures\332A\006parent\022\360\001\n\rUpdateFeature\0225.google" + + ".cloud.aiplatform.v1beta1.UpdateFeatureR" + + "equest\032(.google.cloud.aiplatform.v1beta1" + + ".Feature\"~\202\323\344\223\002b2W/v1beta1/{feature.name" + + "=projects/*/locations/*/featurestores/*/" + + "entityTypes/*/features/*}:\007feature\332A\023fea" + + "ture,update_mask\022\371\001\n\rDeleteFeature\0225.goo" + + "gle.cloud.aiplatform.v1beta1.DeleteFeatu" + + "reRequest\032\035.google.longrunning.Operation" + + "\"\221\001\202\323\344\223\002Q*O/v1beta1/{name=projects/*/loc" + + "ations/*/featurestores/*/entityTypes/*/f" + + "eatures/*}\332A\004name\312A0\n\025google.protobuf.Em" + + "pty\022\027DeleteOperationMetadata\022\262\002\n\023ImportF" + + "eatureValues\022;.google.cloud.aiplatform.v" + + "1beta1.ImportFeatureValuesRequest\032\035.goog" + + "le.longrunning.Operation\"\276\001\202\323\344\223\002d\"_/v1be" + + "ta1/{entity_type=projects/*/locations/*/" + + "featurestores/*/entityTypes/*}:importFea" + + "tureValues:\001*\332A\013entity_type\312AC\n\033ImportFe" + + "atureValuesResponse\022$ImportFeatureValues" + + "OperationMetadata\022\265\002\n\026BatchReadFeatureVa" + + "lues\022>.google.cloud.aiplatform.v1beta1.B" + + "atchReadFeatureValuesRequest\032\035.google.lo" + + "ngrunning.Operation\"\273\001\202\323\344\223\002Z\"U/v1beta1/{" + + "featurestore=projects/*/locations/*/feat" + + "urestores/*}:batchReadFeatureValues:\001*\332A" + + "\014featurestore\312AI\n\036BatchReadFeatureValues" + + "Response\022\'BatchReadFeatureValuesOperatio" + + "nMetadata\022\262\002\n\023ExportFeatureValues\022;.goog" + + "le.cloud.aiplatform.v1beta1.ExportFeatur" + + "eValuesRequest\032\035.google.longrunning.Oper" + + "ation\"\276\001\202\323\344\223\002d\"_/v1beta1/{entity_type=pr" + + "ojects/*/locations/*/featurestores/*/ent" + + "ityTypes/*}:exportFeatureValues:\001*\332A\013ent" + + "ity_type\312AC\n\033ExportFeatureValuesResponse" + + "\022$ExportFeatureValuesOperationMetadata\022\356" + + "\001\n\016SearchFeatures\0226.google.cloud.aiplatf" + + "orm.v1beta1.SearchFeaturesRequest\0327.goog" + + "le.cloud.aiplatform.v1beta1.SearchFeatur" + + "esResponse\"k\202\323\344\223\002I\022G/v1beta1/{location=p" + + "rojects/*/locations/*}/featurestores:sea" + + "rchFeatures\332A\010location\332A\016location,query\032" + + "M\312A\031aiplatform.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\365" + + "\001\n#com.google.cloud.aiplatform.v1beta1B\030" + + "FeaturestoreServiceProtoP\001ZIgoogle.golan" + + "g.org/genproto/googleapis/cloud/aiplatfo" + + "rm/v1beta1;aiplatform\252\002\037Google.Cloud.AIP" + + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" + + "1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -552,10 +549,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EntityTypeProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.FeatureProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.FeaturestoreProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), @@ -962,10 +957,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EntityTypeProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.FeatureProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.FeaturestoreProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java index 73a231556..1441c1af5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java @@ -109,6 +109,8 @@ private FilterSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java index 2ad61cbed..85ec640e2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java @@ -99,6 +99,8 @@ private FractionSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -190,13 +192,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { output.writeDouble(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { output.writeDouble(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { output.writeDouble(3, testFraction_); } unknownFields.writeTo(output); @@ -208,13 +210,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java index 01ead5962..01bb7d664 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java @@ -88,6 +88,8 @@ private GcsDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java index 4d876133c..ffd17dce2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java @@ -92,6 +92,8 @@ private GcsSource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java index 23c2d293b..bb0cac6f9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java @@ -122,6 +122,8 @@ private GenericOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java index 1dd7f6a8d..5206ff4ab 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java @@ -103,6 +103,8 @@ private GetAnnotationSpecRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java index 11a5d8cf8..7fec7df29 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java @@ -88,6 +88,8 @@ private GetArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java index d7b34ee88..4f2454555 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java @@ -88,6 +88,8 @@ private GetBatchPredictionJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java index 8c0f852c5..761526279 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java @@ -88,6 +88,8 @@ private GetContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java index bae193371..0310b98a8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java @@ -88,6 +88,8 @@ private GetCustomJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java index bd9fd3c84..bdea909fc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java @@ -88,6 +88,8 @@ private GetDataLabelingJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java index 64a1ead77..42b157bbc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java @@ -103,6 +103,8 @@ private GetDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java index 398dd9713..5f5230bd9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java @@ -88,6 +88,8 @@ private GetEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java index 4e2ffbcf4..2768d4d43 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java @@ -88,6 +88,8 @@ private GetEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java index 43f5355c2..5fb09f1fc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java @@ -88,6 +88,8 @@ private GetExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java index 7952c5c1b..9ebce56c7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java @@ -88,6 +88,8 @@ private GetFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java index 06f9baa20..f5da82931 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java @@ -88,6 +88,8 @@ private GetFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java index 36079f3b8..736022d5a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java @@ -89,6 +89,8 @@ private GetHyperparameterTuningJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java index 0d7869fcd..e396a3537 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java @@ -88,6 +88,8 @@ private GetIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java index 3911dfb27..dd2c69475 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java @@ -88,6 +88,8 @@ private GetIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java index 900da6306..ced4c656a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java @@ -88,6 +88,8 @@ private GetMetadataSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java index 3a5c37e67..5a56a8c2b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java @@ -88,6 +88,8 @@ private GetMetadataStoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java index 011301092..632e5bcc3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java @@ -91,6 +91,8 @@ private GetModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java index a53405415..bdc13abf4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java @@ -88,6 +88,8 @@ private GetModelEvaluationRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java index 5eba79908..cf86ce021 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java @@ -89,6 +89,8 @@ private GetModelEvaluationSliceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java index 2067b80f2..0c17b478b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java @@ -88,6 +88,8 @@ private GetModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java index 1fb14b9d3..f29736ca7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java @@ -88,6 +88,8 @@ private GetPipelineJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java index e77c086ef..54cbc056a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java @@ -88,6 +88,8 @@ private GetSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index d2af7bbfe..776d451fa 100644 --- 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 @@ -88,6 +88,8 @@ private GetStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java index d2fb1e318..e8271537a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java @@ -89,6 +89,8 @@ private GetTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java index 72e3fb890..abfad6ad3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java @@ -88,6 +88,8 @@ private GetTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java index 8e5e65b0f..4eadce80b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java @@ -88,6 +88,8 @@ private GetTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java index abcc87ac1..f61c96848 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java @@ -89,6 +89,8 @@ private GetTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java index d4d977345..b02ebdedc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java @@ -88,6 +88,8 @@ private GetTrainingPipelineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index aeb4a4d02..b3b4ff274 100644 --- 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 @@ -88,6 +88,8 @@ private GetTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java index 68aaed14e..024dee872 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java @@ -271,6 +271,8 @@ private HyperparameterTuningJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -989,7 +991,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1032,7 +1034,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1053,7 +1055,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4154,7 +4156,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -4198,7 +4200,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4219,7 +4221,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4247,7 +4249,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4272,11 +4274,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java index 627f89c8b..c3a23c969 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java @@ -549,7 +549,12 @@ public interface HyperparameterTuningJobOrBuilder * * map<string, string> labels = 16; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java index a31218ed2..00ae143da 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java @@ -46,54 +46,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n?google/cloud/aiplatform/v1beta1/hyperp" + "arameter_tuning_job.proto\022\037google.cloud." - + "aiplatform.v1beta1\032\034google/api/annotatio" - + "ns.proto\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\0320google/clo" - + "ud/aiplatform/v1beta1/custom_job.proto\0325" - + "google/cloud/aiplatform/v1beta1/encrypti" - + "on_spec.proto\032/google/cloud/aiplatform/v" - + "1beta1/job_state.proto\032+google/cloud/aip" - + "latform/v1beta1/study.proto\032\037google/prot" - + "obuf/timestamp.proto\032\027google/rpc/status." - + "proto\"\231\010\n\027HyperparameterTuningJob\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022" - + "C\n\nstudy_spec\030\004 \001(\0132*.google.cloud.aipla" - + "tform.v1beta1.StudySpecB\003\340A\002\022\034\n\017max_tria" - + "l_count\030\005 \001(\005B\003\340A\002\022!\n\024parallel_trial_cou" - + "nt\030\006 \001(\005B\003\340A\002\022\036\n\026max_failed_trial_count\030" - + "\007 \001(\005\022K\n\016trial_job_spec\030\010 \001(\0132..google.c" - + "loud.aiplatform.v1beta1.CustomJobSpecB\003\340" - + "A\002\022;\n\006trials\030\t \003(\0132&.google.cloud.aiplat" - + "form.v1beta1.TrialB\003\340A\003\022=\n\005state\030\n \001(\0162)" - + ".google.cloud.aiplatform.v1beta1.JobStat" - + "eB\003\340A\003\0224\n\013create_time\030\013 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\014 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" - + "_time\030\r \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022&\n\005error\030\017 \001(\0132\022.goog" - + "le.rpc.StatusB\003\340A\003\022T\n\006labels\030\020 \003(\0132D.goo" - + "gle.cloud.aiplatform.v1beta1.Hyperparame" - + "terTuningJob.LabelsEntry\022H\n\017encryption_s" - + "pec\030\021 \001(\0132/.google.cloud.aiplatform.v1be" - + "ta1.EncryptionSpec\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n1aiplat" - + "form.googleapis.com/HyperparameterTuning" - + "Job\022\\projects/{project}/locations/{locat" - + "ion}/hyperparameterTuningJobs/{hyperpara" - + "meter_tuning_job}B\371\001\n#com.google.cloud.a" - + "iplatform.v1beta1B\034HyperparameterTuningJ" - + "obProtoP\001ZIgoogle.golang.org/genproto/go" - + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + "aiplatform.v1beta1\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\0320" + + "google/cloud/aiplatform/v1beta1/custom_j" + + "ob.proto\0325google/cloud/aiplatform/v1beta" + + "1/encryption_spec.proto\032/google/cloud/ai" + + "platform/v1beta1/job_state.proto\032+google" + + "/cloud/aiplatform/v1beta1/study.proto\032\037g" + + "oogle/protobuf/timestamp.proto\032\027google/r" + + "pc/status.proto\"\231\010\n\027HyperparameterTuning" + + "Job\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\004 \001(\0132*.google.c" + + "loud.aiplatform.v1beta1.StudySpecB\003\340A\002\022\034" + + "\n\017max_trial_count\030\005 \001(\005B\003\340A\002\022!\n\024parallel" + + "_trial_count\030\006 \001(\005B\003\340A\002\022\036\n\026max_failed_tr" + + "ial_count\030\007 \001(\005\022K\n\016trial_job_spec\030\010 \001(\0132" + + "..google.cloud.aiplatform.v1beta1.Custom" + + "JobSpecB\003\340A\002\022;\n\006trials\030\t \003(\0132&.google.cl" + + "oud.aiplatform.v1beta1.TrialB\003\340A\003\022=\n\005sta" + + "te\030\n \001(\0162).google.cloud.aiplatform.v1bet" + + "a1.JobStateB\003\340A\003\0224\n\013create_time\030\013 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0223\n\nstart_" + + "time\030\014 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0221\n\010end_time\030\r \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022&\n\005error\030\017 " + + "\001(\0132\022.google.rpc.StatusB\003\340A\003\022T\n\006labels\030\020" + + " \003(\0132D.google.cloud.aiplatform.v1beta1.H" + + "yperparameterTuningJob.LabelsEntry\022H\n\017en" + + "cryption_spec\030\021 \001(\0132/.google.cloud.aipla" + + "tform.v1beta1.EncryptionSpec\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A" + + "\221\001\n1aiplatform.googleapis.com/Hyperparam" + + "eterTuningJob\022\\projects/{project}/locati" + + "ons/{location}/hyperparameterTuningJobs/" + + "{hyperparameter_tuning_job}B\371\001\n#com.goog" + + "le.cloud.aiplatform.v1beta1B\034Hyperparame" + + "terTuningJobProtoP\001ZIgoogle.golang.org/g" + + "enproto/googleapis/cloud/aiplatform/v1be" + + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.CustomJobProto.getDescriptor(), @@ -142,7 +141,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.CustomJobProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java index da5e2d089..d9392dc7a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java @@ -92,6 +92,8 @@ private IdMatcher( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 3fb12626b..82598bf5b 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 @@ -123,6 +123,8 @@ private ImportDataConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -301,7 +303,7 @@ public int getDataItemLabelsCount() { @java.lang.Override public boolean containsDataItemLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDataItemLabels().getMap().containsKey(key); } @@ -357,7 +359,7 @@ public java.util.Map getDataItemLabelsMap() public java.lang.String getDataItemLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -384,7 +386,7 @@ public java.lang.String getDataItemLabelsOrDefault( @java.lang.Override public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); if (!map.containsKey(key)) { @@ -982,8 +984,9 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource valu } else { if (sourceCase_ == 1) { gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); } - gcsSourceBuilder_.setMessage(value); } sourceCase_ = 1; return this; @@ -1129,7 +1132,7 @@ public int getDataItemLabelsCount() { @java.lang.Override public boolean containsDataItemLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDataItemLabels().getMap().containsKey(key); } @@ -1185,7 +1188,7 @@ public java.util.Map getDataItemLabelsMap() public java.lang.String getDataItemLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1212,7 +1215,7 @@ public java.lang.String getDataItemLabelsOrDefault( @java.lang.Override public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDataItemLabels().getMap(); if (!map.containsKey(key)) { @@ -1246,7 +1249,7 @@ public Builder clearDataItemLabels() { */ public Builder removeDataItemLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableDataItemLabels().getMutableMap().remove(key); return this; @@ -1277,11 +1280,12 @@ public java.util.Map getMutableDataItemLabel */ public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableDataItemLabels().getMutableMap().put(key, value); return this; } 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 881c67492..a0d424732 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 @@ -140,7 +140,12 @@ public interface ImportDataConfigOrBuilder * * map<string, string> data_item_labels = 2; */ - java.lang.String getDataItemLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getDataItemLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java index cd24f79b3..dab35cab8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java @@ -97,6 +97,8 @@ private ImportDataOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java index 07af2199d..83c029ca0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java @@ -103,6 +103,8 @@ private ImportDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataResponse.java index 00f147ff7..ec97d98f7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataResponse.java @@ -79,6 +79,8 @@ private ImportDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java index a1b9f5c13..9f3e7ef83 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java @@ -114,6 +114,8 @@ private ImportFeatureValuesOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java index 745cdf525..0641f6c80 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java @@ -201,6 +201,8 @@ private ImportFeatureValuesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -364,6 +366,8 @@ private FeatureSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2419,8 +2423,9 @@ public Builder mergeAvroSource(com.google.cloud.aiplatform.v1beta1.AvroSource va } else { if (sourceCase_ == 2) { avroSourceBuilder_.mergeFrom(value); + } else { + avroSourceBuilder_.setMessage(value); } - avroSourceBuilder_.setMessage(value); } sourceCase_ = 2; return this; @@ -2560,8 +2565,9 @@ public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1beta1.BigQueryS } else { if (sourceCase_ == 3) { bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); } - bigquerySourceBuilder_.setMessage(value); } sourceCase_ = 3; return this; @@ -2702,8 +2708,9 @@ public Builder mergeCsvSource(com.google.cloud.aiplatform.v1beta1.CsvSource valu } else { if (sourceCase_ == 4) { csvSourceBuilder_.mergeFrom(value); + } else { + csvSourceBuilder_.setMessage(value); } - csvSourceBuilder_.setMessage(value); } sourceCase_ = 4; return this; @@ -3023,8 +3030,9 @@ public Builder mergeFeatureTime(com.google.protobuf.Timestamp value) { } else { if (featureTimeSourceCase_ == 7) { featureTimeBuilder_.mergeFrom(value); + } else { + featureTimeBuilder_.setMessage(value); } - featureTimeBuilder_.setMessage(value); } featureTimeSourceCase_ = 7; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java index 81da5c4ab..1cfc006ea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java @@ -94,6 +94,8 @@ private ImportFeatureValuesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java index dd077a1e7..cdab7f9bf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java @@ -105,6 +105,8 @@ private ImportModelEvaluationRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java index fbc7bf641..e720a62a9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java @@ -193,6 +193,8 @@ private Index( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -676,7 +678,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -719,7 +721,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -740,7 +742,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2676,7 +2678,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2720,7 +2722,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2741,7 +2743,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2769,7 +2771,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2794,11 +2796,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java index 086de18ad..c2aadc6a5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java @@ -184,6 +184,8 @@ private IndexEndpoint( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -545,7 +547,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -588,7 +590,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -609,7 +611,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -736,9 +738,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -770,9 +772,9 @@ public java.lang.String getNetwork() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -802,18 +804,22 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-   * Optional. If true, expose the IndexEndpoint via private service connect.
+   * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect],
    * can be set.
    * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/index_endpoint.proto;l=97 * @return The enablePrivateServiceConnect. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } @@ -2250,7 +2256,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2294,7 +2300,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2315,7 +2321,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2343,7 +2349,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2368,11 +2374,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -2833,9 +2840,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2866,9 +2873,9 @@ public java.lang.String getNetwork() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2899,9 +2906,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2931,9 +2938,9 @@ public Builder setNetwork(java.lang.String value) { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2959,9 +2966,9 @@ public Builder clearNetwork() { * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -2989,18 +2996,22 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If true, expose the IndexEndpoint via private service connect.
+     * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/index_endpoint.proto;l=97 * @return The enablePrivateServiceConnect. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } @@ -3008,18 +3019,22 @@ public boolean getEnablePrivateServiceConnect() { * * *
-     * Optional. If true, expose the IndexEndpoint via private service connect.
+     * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/index_endpoint.proto;l=97 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnablePrivateServiceConnect(boolean value) { enablePrivateServiceConnect_ = value; @@ -3030,17 +3045,21 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * * *
-     * Optional. If true, expose the IndexEndpoint via private service connect.
+     * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
      * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or
      * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect],
      * can be set.
      * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/index_endpoint.proto;l=97 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnablePrivateServiceConnect() { enablePrivateServiceConnect_ = false; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java index 2906496b3..ccf8529e9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java @@ -249,7 +249,12 @@ public interface IndexEndpointOrBuilder * * map<string, string> labels = 6; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -359,9 +364,9 @@ public interface IndexEndpointOrBuilder * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -382,9 +387,9 @@ public interface IndexEndpointOrBuilder * to which the IndexEndpoint should be peered. * Private services access must already be configured for the network. If left * unspecified, the Endpoint is not peered with any network. - * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - * can be set. + * [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): * projects/{project}/global/networks/{network}. * Where {project} is a project number, as in '12345', and {network} is @@ -401,16 +406,20 @@ public interface IndexEndpointOrBuilder * * *
-   * Optional. If true, expose the IndexEndpoint via private service connect.
+   * Optional. Deprecated: If true, expose the IndexEndpoint via private service connect.
    * Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or
    * [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect],
    * can be set.
    * 
* - * bool enable_private_service_connect = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect is + * deprecated. See google/cloud/aiplatform/v1beta1/index_endpoint.proto;l=97 * @return The enablePrivateServiceConnect. */ + @java.lang.Deprecated boolean getEnablePrivateServiceConnect(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java index 370c5ec1d..14b67dcc1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java @@ -62,66 +62,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/cloud/aiplatform/v1beta1/index_" + "endpoint.proto\022\037google.cloud.aiplatform." - + "v1beta1\032\034google/api/annotations.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032+google/cloud/aiplatfo" - + "rm/v1beta1/index.proto\0327google/cloud/aip" - + "latform/v1beta1/machine_resources.proto\032" - + "\037google/protobuf/timestamp.proto\"\320\004\n\rInd" - + "exEndpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display" - + "_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022M\n" - + "\020deployed_indexes\030\004 \003(\0132..google.cloud.a" - + "iplatform.v1beta1.DeployedIndexB\003\340A\003\022\014\n\004" - + "etag\030\005 \001(\t\022J\n\006labels\030\006 \003(\0132:.google.clou" - + "d.aiplatform.v1beta1.IndexEndpoint.Label" - + "sEntry\0224\n\013create_time\030\007 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007ne" - + "twork\030\t \001(\tB\003\340A\001\022+\n\036enable_private_servi" - + "ce_connect\030\n \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:u\352Ar\n\'aipla" - + "tform.googleapis.com/IndexEndpoint\022Gproj" - + "ects/{project}/locations/{location}/inde" - + "xEndpoints/{index_endpoint}\"\253\005\n\rDeployed" - + "Index\022\017\n\002id\030\001 \001(\tB\003\340A\002\0226\n\005index\030\002 \001(\tB\'\340" - + "A\002\372A!\n\037aiplatform.googleapis.com/Index\022\024" - + "\n\014display_name\030\003 \001(\t\0224\n\013create_time\030\004 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n\021pr" - + "ivate_endpoints\030\005 \001(\01326.google.cloud.aip" - + "latform.v1beta1.IndexPrivateEndpointsB\003\340" - + "A\003\0228\n\017index_sync_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022U\n\023automatic_resour" - + "ces\030\007 \001(\01323.google.cloud.aiplatform.v1be" - + "ta1.AutomaticResourcesB\003\340A\001\022U\n\023dedicated" - + "_resources\030\020 \001(\01323.google.cloud.aiplatfo" - + "rm.v1beta1.DedicatedResourcesB\003\340A\001\022\"\n\025en" - + "able_access_logging\030\010 \001(\010B\003\340A\001\022a\n\032deploy" - + "ed_index_auth_config\030\t \001(\01328.google.clou" - + "d.aiplatform.v1beta1.DeployedIndexAuthCo" - + "nfigB\003\340A\001\022\037\n\022reserved_ip_ranges\030\n \003(\tB\003\340" - + "A\001\022\035\n\020deployment_group\030\013 \001(\tB\003\340A\001\"\263\001\n\027De" - + "ployedIndexAuthConfig\022\\\n\rauth_provider\030\001" - + " \001(\0132E.google.cloud.aiplatform.v1beta1.D" - + "eployedIndexAuthConfig.AuthProvider\032:\n\014A" - + "uthProvider\022\021\n\taudiences\030\001 \003(\t\022\027\n\017allowe" - + "d_issuers\030\002 \003(\t\"Y\n\025IndexPrivateEndpoints" - + "\022\037\n\022match_grpc_address\030\001 \001(\tB\003\340A\003\022\037\n\022ser" - + "vice_attachment\030\002 \001(\tB\003\340A\003B\357\001\n#com.googl" - + "e.cloud.aiplatform.v1beta1B\022IndexEndpoin" - + "tProtoP\001ZIgoogle.golang.org/genproto/goo" - + "gleapis/cloud/aiplatform/v1beta1;aiplatf" - + "orm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037" - + "Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google" - + "::Cloud::AIPlatform::V1beta1b\006proto3" + + "v1beta1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\0327google/clou" + + "d/aiplatform/v1beta1/machine_resources.p" + + "roto\032\037google/protobuf/timestamp.proto\"\322\004" + + "\n\rIndexEndpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di" + + "splay_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001" + + "(\t\022M\n\020deployed_indexes\030\004 \003(\0132..google.cl" + + "oud.aiplatform.v1beta1.DeployedIndexB\003\340A" + + "\003\022\014\n\004etag\030\005 \001(\t\022J\n\006labels\030\006 \003(\0132:.google" + + ".cloud.aiplatform.v1beta1.IndexEndpoint." + + "LabelsEntry\0224\n\013create_time\030\007 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "\024\n\007network\030\t \001(\tB\003\340A\001\022-\n\036enable_private_" + + "service_connect\030\n \001(\010B\005\030\001\340A\001\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:u\352Ar" + + "\n\'aiplatform.googleapis.com/IndexEndpoin" + + "t\022Gprojects/{project}/locations/{locatio" + + "n}/indexEndpoints/{index_endpoint}\"\253\005\n\rD" + + "eployedIndex\022\017\n\002id\030\001 \001(\tB\003\340A\002\0226\n\005index\030\002" + + " \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/" + + "Index\022\024\n\014display_name\030\003 \001(\t\0224\n\013create_ti" + + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022V\n\021private_endpoints\030\005 \001(\01326.google.cl" + + "oud.aiplatform.v1beta1.IndexPrivateEndpo" + + "intsB\003\340A\003\0228\n\017index_sync_time\030\006 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022U\n\023automatic" + + "_resources\030\007 \001(\01323.google.cloud.aiplatfo" + + "rm.v1beta1.AutomaticResourcesB\003\340A\001\022U\n\023de" + + "dicated_resources\030\020 \001(\01323.google.cloud.a" + + "iplatform.v1beta1.DedicatedResourcesB\003\340A" + + "\001\022\"\n\025enable_access_logging\030\010 \001(\010B\003\340A\001\022a\n" + + "\032deployed_index_auth_config\030\t \001(\01328.goog" + + "le.cloud.aiplatform.v1beta1.DeployedInde" + + "xAuthConfigB\003\340A\001\022\037\n\022reserved_ip_ranges\030\n" + + " \003(\tB\003\340A\001\022\035\n\020deployment_group\030\013 \001(\tB\003\340A\001" + + "\"\263\001\n\027DeployedIndexAuthConfig\022\\\n\rauth_pro" + + "vider\030\001 \001(\0132E.google.cloud.aiplatform.v1" + + "beta1.DeployedIndexAuthConfig.AuthProvid" + + "er\032:\n\014AuthProvider\022\021\n\taudiences\030\001 \003(\t\022\027\n" + + "\017allowed_issuers\030\002 \003(\t\"Y\n\025IndexPrivateEn" + + "dpoints\022\037\n\022match_grpc_address\030\001 \001(\tB\003\340A\003" + + "\022\037\n\022service_attachment\030\002 \001(\tB\003\340A\003B\357\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\022Index" + + "EndpointProtoP\001ZIgoogle.golang.org/genpr" + + "oto/googleapis/cloud/aiplatform/v1beta1;" + + "aiplatform\252\002\037Google.Cloud.AIPlatform.V1B" + + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002" + + "\"Google::Cloud::AIPlatform::V1beta1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.IndexProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -204,10 +201,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.IndexProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java index d90bc888a..c7c683bc8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java @@ -337,7 +337,12 @@ com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder getDeployedIndexes * * map<string, string> labels = 9; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java index 61ca1aacf..d905f476e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java @@ -100,6 +100,8 @@ private IndexPrivateEndpoints( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java index 99a69f549..2d10174dc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java @@ -45,39 +45,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/aiplatform/v1beta1/index." - + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" - + "google/api/annotations.proto\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\0328google/cloud/aiplatform/v1beta" - + "1/deployed_index_ref.proto\032\034google/proto" - + "buf/struct.proto\032\037google/protobuf/timest" - + "amp.proto\"\264\004\n\005Index\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031" - + "\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013description" - + "\030\003 \001(\t\022 \n\023metadata_schema_uri\030\004 \001(\tB\003\340A\005" - + "\022(\n\010metadata\030\006 \001(\0132\026.google.protobuf.Val" - + "ue\022P\n\020deployed_indexes\030\007 \003(\01321.google.cl" - + "oud.aiplatform.v1beta1.DeployedIndexRefB" - + "\003\340A\003\022\014\n\004etag\030\010 \001(\t\022B\n\006labels\030\t \003(\01322.goo" - + "gle.cloud.aiplatform.v1beta1.Index.Label" - + "sEntry\0224\n\013create_time\030\n \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\013 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001:]\352AZ\n\037aiplatform.googleapis.com/Index\022" - + "7projects/{project}/locations/{location}" - + "/indexes/{index}B\347\001\n#com.google.cloud.ai" - + "platform.v1beta1B\nIndexProtoP\001ZIgoogle.g" - + "olang.org/genproto/googleapis/cloud/aipl" - + "atform/v1beta1;aiplatform\252\002\037Google.Cloud" - + ".AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPla" - + "tform\\V1beta1\352\002\"Google::Cloud::AIPlatfor" - + "m::V1beta1b\006proto3" + + "proto\022\037google.cloud.aiplatform.v1beta1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0328google/cloud/aiplatf" + + "orm/v1beta1/deployed_index_ref.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/proto" + + "buf/timestamp.proto\"\264\004\n\005Index\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013d" + + "escription\030\003 \001(\t\022 \n\023metadata_schema_uri\030" + + "\004 \001(\tB\003\340A\005\022(\n\010metadata\030\006 \001(\0132\026.google.pr" + + "otobuf.Value\022P\n\020deployed_indexes\030\007 \003(\01321" + + ".google.cloud.aiplatform.v1beta1.Deploye" + + "dIndexRefB\003\340A\003\022\014\n\004etag\030\010 \001(\t\022B\n\006labels\030\t" + + " \003(\01322.google.cloud.aiplatform.v1beta1.I" + + "ndex.LabelsEntry\0224\n\013create_time\030\n \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\013 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:]\352AZ\n\037aiplatform.googleapis." + + "com/Index\0227projects/{project}/locations/" + + "{location}/indexes/{index}B\347\001\n#com.googl" + + "e.cloud.aiplatform.v1beta1B\nIndexProtoP\001" + + "ZIgoogle.golang.org/genproto/googleapis/" + + "cloud/aiplatform/v1beta1;aiplatform\252\002\037Go" + + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" + + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud:" + + ":AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.DeployedIndexRefProto.getDescriptor(), @@ -115,7 +113,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.DeployedIndexRefProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java index 1684b1e88..5afef068c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java @@ -232,6 +232,8 @@ private InputDataConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1736,8 +1738,9 @@ public Builder mergeFractionSplit(com.google.cloud.aiplatform.v1beta1.FractionSp } else { if (splitCase_ == 2) { fractionSplitBuilder_.mergeFrom(value); + } else { + fractionSplitBuilder_.setMessage(value); } - fractionSplitBuilder_.setMessage(value); } splitCase_ = 2; return this; @@ -1945,8 +1948,9 @@ public Builder mergeFilterSplit(com.google.cloud.aiplatform.v1beta1.FilterSplit } else { if (splitCase_ == 3) { filterSplitBuilder_.mergeFrom(value); + } else { + filterSplitBuilder_.setMessage(value); } - filterSplitBuilder_.setMessage(value); } splitCase_ = 3; return this; @@ -2159,8 +2163,9 @@ public Builder mergePredefinedSplit(com.google.cloud.aiplatform.v1beta1.Predefin } else { if (splitCase_ == 4) { predefinedSplitBuilder_.mergeFrom(value); + } else { + predefinedSplitBuilder_.setMessage(value); } - predefinedSplitBuilder_.setMessage(value); } splitCase_ = 4; return this; @@ -2378,8 +2383,9 @@ public Builder mergeTimestampSplit(com.google.cloud.aiplatform.v1beta1.Timestamp } else { if (splitCase_ == 5) { timestampSplitBuilder_.mergeFrom(value); + } else { + timestampSplitBuilder_.setMessage(value); } - timestampSplitBuilder_.setMessage(value); } splitCase_ = 5; return this; @@ -2597,8 +2603,9 @@ public Builder mergeStratifiedSplit(com.google.cloud.aiplatform.v1beta1.Stratifi } else { if (splitCase_ == 12) { stratifiedSplitBuilder_.mergeFrom(value); + } else { + stratifiedSplitBuilder_.setMessage(value); } - stratifiedSplitBuilder_.setMessage(value); } splitCase_ = 12; return this; @@ -2887,8 +2894,9 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestin } else { if (destinationCase_ == 8) { gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); } - gcsDestinationBuilder_.setMessage(value); } destinationCase_ = 8; return this; @@ -3230,8 +3238,9 @@ public Builder mergeBigqueryDestination( } else { if (destinationCase_ == 10) { bigqueryDestinationBuilder_.mergeFrom(value); + } else { + bigqueryDestinationBuilder_.setMessage(value); } - bigqueryDestinationBuilder_.setMessage(value); } destinationCase_ = 10; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java index 176248af1..4151d7a69 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java @@ -105,6 +105,8 @@ private Int64Array( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java index 002b142db..e0964fd3e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java @@ -121,6 +121,8 @@ private IntegratedGradientsAttribution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java index 5f1da5b56..f7b726fcb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java @@ -73,36 +73,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n(google/cloud/aiplatform/v1beta1/io.pro" - + "to\022\037google.cloud.aiplatform.v1beta1\032\034goo" - + "gle/api/annotations.proto\032\037google/api/fi" - + "eld_behavior.proto\"Q\n\nAvroSource\022C\n\ngcs_" - + "source\030\001 \001(\0132*.google.cloud.aiplatform.v" - + "1beta1.GcsSourceB\003\340A\002\"P\n\tCsvSource\022C\n\ngc" - + "s_source\030\001 \001(\0132*.google.cloud.aiplatform" - + ".v1beta1.GcsSourceB\003\340A\002\"\036\n\tGcsSource\022\021\n\004" - + "uris\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021out" - + "put_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016BigQuerySou" - + "rce\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\".\n\023BigQueryD" - + "estination\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002\"_\n\016C" - + "svDestination\022M\n\017gcs_destination\030\001 \001(\0132/" - + ".google.cloud.aiplatform.v1beta1.GcsDest" - + "inationB\003\340A\002\"d\n\023TFRecordDestination\022M\n\017g" - + "cs_destination\030\001 \001(\0132/.google.cloud.aipl" - + "atform.v1beta1.GcsDestinationB\003\340A\002\"7\n\034Co" - + "ntainerRegistryDestination\022\027\n\noutput_uri" - + "\030\001 \001(\tB\003\340A\002B\344\001\n#com.google.cloud.aiplatf" - + "orm.v1beta1B\007IoProtoP\001ZIgoogle.golang.or" - + "g/genproto/googleapis/cloud/aiplatform/v" - + "1beta1;aiplatform\252\002\037Google.Cloud.AIPlatf" - + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" - + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" - + "a1b\006proto3" + + "to\022\037google.cloud.aiplatform.v1beta1\032\037goo" + + "gle/api/field_behavior.proto\"Q\n\nAvroSour" + + "ce\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud.ai" + + "platform.v1beta1.GcsSourceB\003\340A\002\"P\n\tCsvSo" + + "urce\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud." + + "aiplatform.v1beta1.GcsSourceB\003\340A\002\"\036\n\tGcs" + + "Source\022\021\n\004uris\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestinat" + + "ion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016B" + + "igQuerySource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\".\n" + + "\023BigQueryDestination\022\027\n\noutput_uri\030\001 \001(\t" + + "B\003\340A\002\"_\n\016CsvDestination\022M\n\017gcs_destinati" + + "on\030\001 \001(\0132/.google.cloud.aiplatform.v1bet" + + "a1.GcsDestinationB\003\340A\002\"d\n\023TFRecordDestin" + + "ation\022M\n\017gcs_destination\030\001 \001(\0132/.google." + + "cloud.aiplatform.v1beta1.GcsDestinationB" + + "\003\340A\002\"7\n\034ContainerRegistryDestination\022\027\n\n" + + "output_uri\030\001 \001(\tB\003\340A\002B\344\001\n#com.google.clo" + + "ud.aiplatform.v1beta1B\007IoProtoP\001ZIgoogle" + + ".golang.org/genproto/googleapis/cloud/ai" + + "platform/v1beta1;aiplatform\252\002\037Google.Clo" + + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" + + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" + + "orm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor = @@ -182,7 +180,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); } 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 fb2cd7cfc..e11eb027e 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 @@ -129,6 +129,20 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_EXPIRED = 9; */ JOB_STATE_EXPIRED(9), + /** + * + * + *
+   * The job is being updated. The job is only able to be updated at RUNNING
+   * state; if the update operation succeeds, job goes back to RUNNING state; if
+   * the update operation fails, the job goes back to RUNNING state with error
+   * messages written to [ModelDeploymentMonitoringJob.partial_errors][] field
+   * if it is a ModelDeploymentMonitoringJob.
+   * 
+ * + * JOB_STATE_UPDATING = 10; + */ + JOB_STATE_UPDATING(10), UNRECOGNIZED(-1), ; @@ -233,6 +247,20 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_EXPIRED = 9; */ public static final int JOB_STATE_EXPIRED_VALUE = 9; + /** + * + * + *
+   * The job is being updated. The job is only able to be updated at RUNNING
+   * state; if the update operation succeeds, job goes back to RUNNING state; if
+   * the update operation fails, the job goes back to RUNNING state with error
+   * messages written to [ModelDeploymentMonitoringJob.partial_errors][] field
+   * if it is a ModelDeploymentMonitoringJob.
+   * 
+ * + * JOB_STATE_UPDATING = 10; + */ + public static final int JOB_STATE_UPDATING_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -278,6 +306,8 @@ public static JobState forNumber(int value) { return JOB_STATE_PAUSED; case 9: return JOB_STATE_EXPIRED; + case 10: + return JOB_STATE_UPDATING; 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 c5bf1cafe..025b4f325 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,28 +37,24 @@ 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*\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\010\022\025\n\021JOB_STATE_EXPIRE" - + "D\020\tB\352\001\n#com.google.cloud.aiplatform.v1be" - + "ta1B\rJobStateProtoP\001ZIgoogle.golang.org/" - + "genproto/googleapis/cloud/aiplatform/v1b" - + "eta1;aiplatform\252\002\037Google.Cloud.AIPlatfor" - + "m.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1be" - + "ta1\352\002\"Google::Cloud::AIPlatform::V1beta1" - + "b\006proto3" + + "a1*\220\002\n\010JobState\022\031\n\025JOB_STATE_UNSPECIFIED" + + "\020\000\022\024\n\020JOB_STATE_QUEUED\020\001\022\025\n\021JOB_STATE_PE" + + "NDING\020\002\022\025\n\021JOB_STATE_RUNNING\020\003\022\027\n\023JOB_ST" + + "ATE_SUCCEEDED\020\004\022\024\n\020JOB_STATE_FAILED\020\005\022\030\n" + + "\024JOB_STATE_CANCELLING\020\006\022\027\n\023JOB_STATE_CAN" + + "CELLED\020\007\022\024\n\020JOB_STATE_PAUSED\020\010\022\025\n\021JOB_ST" + + "ATE_EXPIRED\020\t\022\026\n\022JOB_STATE_UPDATING\020\nB\352\001" + + "\n#com.google.cloud.aiplatform.v1beta1B\rJ" + + "obStateProtoP\001ZIgoogle.golang.org/genpro" + + "to/googleapis/cloud/aiplatform/v1beta1;a" + + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - com.google.api.AnnotationsProto.getDescriptor(); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java index fb5b74abd..62b107b3e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java @@ -120,6 +120,8 @@ private LineageSubgraph( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java index 146490473..4e146c121 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java @@ -42,28 +42,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/lineag" + "e_subgraph.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1\032\034google/api/annotations.proto\032" - + ".google/cloud/aiplatform/v1beta1/artifac" - + "t.proto\032+google/cloud/aiplatform/v1beta1" - + "/event.proto\032/google/cloud/aiplatform/v1" - + "beta1/execution.proto\"\307\001\n\017LineageSubgrap" - + "h\022<\n\tartifacts\030\001 \003(\0132).google.cloud.aipl" - + "atform.v1beta1.Artifact\022>\n\nexecutions\030\002 " - + "\003(\0132*.google.cloud.aiplatform.v1beta1.Ex" - + "ecution\0226\n\006events\030\003 \003(\0132&.google.cloud.a" - + "iplatform.v1beta1.EventB\361\001\n#com.google.c" - + "loud.aiplatform.v1beta1B\024LineageSubgraph" - + "ProtoP\001ZIgoogle.golang.org/genproto/goog" - + "leapis/cloud/aiplatform/v1beta1;aiplatfo" - + "rm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" - + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" - + ":Cloud::AIPlatform::V1beta1b\006proto3" + + "m.v1beta1\032.google/cloud/aiplatform/v1bet" + + "a1/artifact.proto\032+google/cloud/aiplatfo" + + "rm/v1beta1/event.proto\032/google/cloud/aip" + + "latform/v1beta1/execution.proto\"\307\001\n\017Line" + + "ageSubgraph\022<\n\tartifacts\030\001 \003(\0132).google." + + "cloud.aiplatform.v1beta1.Artifact\022>\n\nexe" + + "cutions\030\002 \003(\0132*.google.cloud.aiplatform." + + "v1beta1.Execution\0226\n\006events\030\003 \003(\0132&.goog" + + "le.cloud.aiplatform.v1beta1.EventB\361\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\024Linea" + + "geSubgraphProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EventProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(), @@ -76,7 +75,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Artifacts", "Executions", "Events", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EventProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java index d27037241..303ce1336 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java @@ -132,6 +132,8 @@ private ListAnnotationsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java index 26f83115f..b286e5e73 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java @@ -102,6 +102,8 @@ private ListAnnotationsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java index 15d49526b..1318f53a6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java @@ -109,6 +109,8 @@ private ListArtifactsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java index 41fd9910e..8f46e0108 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java @@ -102,6 +102,8 @@ private ListArtifactsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 67c584173..cfdaf5120 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 @@ -125,6 +125,8 @@ private ListBatchPredictionJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 3340db950..b7bbc4539 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 @@ -105,6 +105,8 @@ private ListBatchPredictionJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java index 767079021..8d53c8ee2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java @@ -109,6 +109,8 @@ private ListContextsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java index 61c999cc2..e60c42296 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java @@ -101,6 +101,8 @@ private ListContextsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java index b116a6db8..ed3d704cb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java @@ -124,6 +124,8 @@ private ListCustomJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 8d67ad5c5..6a540c3f7 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 @@ -102,6 +102,8 @@ private ListCustomJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java index fcc8c61b4..1ec1a328d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java @@ -132,6 +132,8 @@ private ListDataItemsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java index a99c86375..4cda29e86 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java @@ -102,6 +102,8 @@ private ListDataItemsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java index 00ef074db..dc3a87458 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java @@ -132,6 +132,8 @@ private ListDataLabelingJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java index 1e3bd49ca..ab13af7bc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java @@ -103,6 +103,8 @@ private ListDataLabelingJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java index d2f30c03e..1fb707ea0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java @@ -132,6 +132,8 @@ private ListDatasetsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java index 1a526e22d..41fdb1699 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java @@ -101,6 +101,8 @@ private ListDatasetsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java index 8a3fc5f27..ab48a6b7c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java @@ -124,6 +124,8 @@ private ListEndpointsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 7557e4c25..c2872ff45 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 @@ -102,6 +102,8 @@ private ListEndpointsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java index e323db31e..da8616b9d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java @@ -132,6 +132,8 @@ private ListEntityTypesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java index 9f443aa5f..6a2cf36cb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java @@ -102,6 +102,8 @@ private ListEntityTypesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java index cf4b9b072..a2c0ceac7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java @@ -109,6 +109,8 @@ private ListExecutionsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java index 7da302057..db1af1f72 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java @@ -102,6 +102,8 @@ private ListExecutionsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java index 464f1a657..495aad3c4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java @@ -137,6 +137,8 @@ private ListFeaturesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java index f8d8c117a..50019dcbc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java @@ -101,6 +101,8 @@ private ListFeaturesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java index c2f99740f..a2b0e8f06 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java @@ -132,6 +132,8 @@ private ListFeaturestoresRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java index 1e991d246..4fe6a29be 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java @@ -103,6 +103,8 @@ private ListFeaturestoresResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java index 48f1bcec6..f3277033a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java @@ -126,6 +126,8 @@ private ListHyperparameterTuningJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 d7c296c38..ea01b621f 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 @@ -106,6 +106,8 @@ private ListHyperparameterTuningJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java index 53d95a9c2..c9abb2819 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java @@ -124,6 +124,8 @@ private ListIndexEndpointsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java index 1b2b60cfb..89788241d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java @@ -103,6 +103,8 @@ private ListIndexEndpointsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java index 6e7135069..765cdd369 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java @@ -124,6 +124,8 @@ private ListIndexesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java index 03edbc23f..daeb841da 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java @@ -101,6 +101,8 @@ private ListIndexesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java index e9c78b9e1..86f6790c5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java @@ -109,6 +109,8 @@ private ListMetadataSchemasRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java index 5472b2b79..07ab08b3a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java @@ -103,6 +103,8 @@ private ListMetadataSchemasResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java index c6468db7e..fa976a357 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java @@ -101,6 +101,8 @@ private ListMetadataStoresRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java index d73dd7a46..dff64c542 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java @@ -103,6 +103,8 @@ private ListMetadataStoresResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java index b1ad3b478..f4b6f16e7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java @@ -127,6 +127,8 @@ private ListModelDeploymentMonitoringJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java index a5d43ba37..417a0e830 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java @@ -107,6 +107,8 @@ private ListModelDeploymentMonitoringJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java index b30c05dbd..adb975a71 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java @@ -125,6 +125,8 @@ private ListModelEvaluationSlicesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java index 8d5a5704d..6ca483380 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java @@ -105,6 +105,8 @@ private ListModelEvaluationSlicesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java index a88e9177d..9679594ec 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java @@ -124,6 +124,8 @@ private ListModelEvaluationsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java index f21d68adf..0496a4fd8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java @@ -103,6 +103,8 @@ private ListModelEvaluationsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequest.java new file mode 100644 index 000000000..78813a4b2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequest.java @@ -0,0 +1,1442 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} + */ +public final class ListModelVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) + ListModelVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionsRequest.newBuilder() to construct. + private ListModelVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionsRequest() { + name_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListModelVersionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest(this); + result.name_ = name_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelVersionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequestOrBuilder.java new file mode 100644 index 000000000..377aec5e7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListModelVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponse.java new file mode 100644 index 000000000..377f2c9cd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponse.java @@ -0,0 +1,1188 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} + */ +public final class ListModelVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) + ListModelVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionsResponse.newBuilder() to construct. + private ListModelVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionsResponse() { + models_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListModelVersionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + models_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + models_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Model.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + models_ = java.util.Collections.unmodifiableList(models_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.Builder.class); + } + + public static final int MODELS_FIELD_NUMBER = 1; + private java.util.List models_; + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + @java.lang.Override + public java.util.List getModelsList() { + return models_; + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + @java.lang.Override + public java.util.List + getModelsOrBuilderList() { + return models_; + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + @java.lang.Override + public int getModelsCount() { + return models_.size(); + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Model getModels(int index) { + return models_.get(index); + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelsOrBuilder(int index) { + return models_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < models_.size(); i++) { + output.writeMessage(1, models_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < models_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, models_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) obj; + + if (!getModelsList().equals(other.getModelsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getModelsCount() > 0) { + hash = (37 * hash) + MODELS_FIELD_NUMBER; + hash = (53 * hash) + getModelsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getModelsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (modelsBuilder_ == null) { + models_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + modelsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(this); + int from_bitField0_ = bitField0_; + if (modelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + models_ = java.util.Collections.unmodifiableList(models_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.models_ = models_; + } else { + result.models_ = modelsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.getDefaultInstance()) + return this; + if (modelsBuilder_ == null) { + if (!other.models_.isEmpty()) { + if (models_.isEmpty()) { + models_ = other.models_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureModelsIsMutable(); + models_.addAll(other.models_); + } + onChanged(); + } + } else { + if (!other.models_.isEmpty()) { + if (modelsBuilder_.isEmpty()) { + modelsBuilder_.dispose(); + modelsBuilder_ = null; + models_ = other.models_; + bitField0_ = (bitField0_ & ~0x00000001); + modelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelsFieldBuilder() + : null; + } else { + modelsBuilder_.addAllMessages(other.models_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List models_ = + java.util.Collections.emptyList(); + + private void ensureModelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + models_ = new java.util.ArrayList(models_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Model, + com.google.cloud.aiplatform.v1beta1.Model.Builder, + com.google.cloud.aiplatform.v1beta1.ModelOrBuilder> + modelsBuilder_; + + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public java.util.List getModelsList() { + if (modelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(models_); + } else { + return modelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public int getModelsCount() { + if (modelsBuilder_ == null) { + return models_.size(); + } else { + return modelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Model getModels(int index) { + if (modelsBuilder_ == null) { + return models_.get(index); + } else { + return modelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder setModels(int index, com.google.cloud.aiplatform.v1beta1.Model value) { + if (modelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelsIsMutable(); + models_.set(index, value); + onChanged(); + } else { + modelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder setModels( + int index, com.google.cloud.aiplatform.v1beta1.Model.Builder builderForValue) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.set(index, builderForValue.build()); + onChanged(); + } else { + modelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder addModels(com.google.cloud.aiplatform.v1beta1.Model value) { + if (modelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelsIsMutable(); + models_.add(value); + onChanged(); + } else { + modelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder addModels(int index, com.google.cloud.aiplatform.v1beta1.Model value) { + if (modelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelsIsMutable(); + models_.add(index, value); + onChanged(); + } else { + modelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder addModels(com.google.cloud.aiplatform.v1beta1.Model.Builder builderForValue) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.add(builderForValue.build()); + onChanged(); + } else { + modelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder addModels( + int index, com.google.cloud.aiplatform.v1beta1.Model.Builder builderForValue) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.add(index, builderForValue.build()); + onChanged(); + } else { + modelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder addAllModels( + java.lang.Iterable values) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, models_); + onChanged(); + } else { + modelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder clearModels() { + if (modelsBuilder_ == null) { + models_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + modelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public Builder removeModels(int index) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.remove(index); + onChanged(); + } else { + modelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Model.Builder getModelsBuilder(int index) { + return getModelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelsOrBuilder(int index) { + if (modelsBuilder_ == null) { + return models_.get(index); + } else { + return modelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public java.util.List + getModelsOrBuilderList() { + if (modelsBuilder_ != null) { + return modelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(models_); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Model.Builder addModelsBuilder() { + return getModelsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Model.Builder addModelsBuilder(int index) { + return getModelsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + public java.util.List + getModelsBuilderList() { + return getModelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Model, + com.google.cloud.aiplatform.v1beta1.Model.Builder, + com.google.cloud.aiplatform.v1beta1.ModelOrBuilder> + getModelsFieldBuilder() { + if (modelsBuilder_ == null) { + modelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Model, + com.google.cloud.aiplatform.v1beta1.Model.Builder, + com.google.cloud.aiplatform.v1beta1.ModelOrBuilder>( + models_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + models_ = null; + } + return modelsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelVersionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponseOrBuilder.java new file mode 100644 index 000000000..fb1eb7dfe --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListModelVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + java.util.List getModelsList(); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + com.google.cloud.aiplatform.v1beta1.Model getModels(int index); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + int getModelsCount(); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + java.util.List + getModelsOrBuilderList(); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Model models = 1; + */ + com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java index 5b016251e..35e9360c7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java @@ -124,6 +124,8 @@ private ListModelsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java index 1a6fc2e2d..fdb8f086f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java @@ -101,6 +101,8 @@ private ListModelsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index acc3a090a..1d9f55270 100644 --- 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 @@ -88,6 +88,8 @@ private ListOptimalTrialsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index ad5de1ce9..be830e0b1 100644 --- 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 @@ -94,6 +94,8 @@ private ListOptimalTrialsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java index 90a124494..7a13c0344 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java @@ -117,6 +117,8 @@ private ListPipelineJobsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -216,6 +218,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -264,6 +269,9 @@ public java.lang.String getFilter() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -961,6 +969,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1008,6 +1019,9 @@ public java.lang.String getFilter() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1055,6 +1069,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1101,6 +1118,9 @@ public Builder setFilter(java.lang.String value) { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1143,6 +1163,9 @@ public Builder clearFilter() { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java index ffa2b0ec6..027b756f5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java @@ -73,6 +73,9 @@ public interface ListPipelineJobsRequestOrBuilder * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -110,6 +113,9 @@ public interface ListPipelineJobsRequestOrBuilder * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java index 4f837aadb..eb63c669e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java @@ -102,6 +102,8 @@ private ListPipelineJobsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java index 6f2268894..059674e6b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java @@ -116,6 +116,8 @@ private ListSpecialistPoolsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java index 13498d798..ff94cb9b4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java @@ -103,6 +103,8 @@ private ListSpecialistPoolsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 343252227..e8e541503 100644 --- 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 @@ -101,6 +101,8 @@ private ListStudiesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index c820bf8f7..637be748a 100644 --- 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 @@ -101,6 +101,8 @@ private ListStudiesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java index e183d9aef..559912d37 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java @@ -133,6 +133,8 @@ private ListTensorboardExperimentsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java index 373881376..b274ed0a6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java @@ -105,6 +105,8 @@ private ListTensorboardExperimentsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java index bd8950227..4791c0520 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java @@ -132,6 +132,8 @@ private ListTensorboardRunsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java index f0e37fc22..4debeebc9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java @@ -103,6 +103,8 @@ private ListTensorboardRunsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java index 993c3ca2f..fe05a9cc9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java @@ -133,6 +133,8 @@ private ListTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java index a6b812701..c8dfd8814 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java @@ -105,6 +105,8 @@ private ListTensorboardTimeSeriesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java index c96a23245..9c83020a2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java @@ -132,6 +132,8 @@ private ListTensorboardsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java index c62471186..b6f9a45af 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java @@ -102,6 +102,8 @@ private ListTensorboardsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java index a9507d26f..69a370bb9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java @@ -124,6 +124,8 @@ private ListTrainingPipelinesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 5021993bf..34d7bab2e 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 @@ -103,6 +103,8 @@ private ListTrainingPipelinesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 1cebf6acf..aaffea54a 100644 --- 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 @@ -101,6 +101,8 @@ private ListTrialsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 0fab2a486..002abca98 100644 --- 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 @@ -101,6 +101,8 @@ private ListTrialsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index fa1cbf570..a70fded34 100644 --- 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 @@ -96,6 +96,8 @@ private LookupStudyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 a48d4b967..76177f63b 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_NfsMount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_NfsMount_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -66,43 +70,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n7google/cloud/aiplatform/v1beta1/machin" + "e_resources.proto\022\037google.cloud.aiplatfo" - + "rm.v1beta1\032\034google/api/annotations.proto" - + "\032\037google/api/field_behavior.proto\0326googl" - + "e/cloud/aiplatform/v1beta1/accelerator_t" - + "ype.proto\"\224\001\n\013MachineSpec\022\031\n\014machine_typ" - + "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" - + "\"\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\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\362\001\n#com.google.cloud" - + ".aiplatform.v1beta1B\025MachineResourcesPro" - + "toP\001ZIgoogle.golang.org/genproto/googlea" - + "pis/cloud/aiplatform/v1beta1;aiplatform\252" - + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" - + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cl" - + "oud::AIPlatform::V1beta1b\006proto3" + + "rm.v1beta1\032\037google/api/field_behavior.pr" + + "oto\0326google/cloud/aiplatform/v1beta1/acc" + + "elerator_type.proto\"\224\001\n\013MachineSpec\022\031\n\014m" + + "achine_type\030\001 \001(\tB\003\340A\005\022O\n\020accelerator_ty" + + "pe\030\002 \001(\01620.google.cloud.aiplatform.v1bet" + + "a1.AcceleratorTypeB\003\340A\005\022\031\n\021accelerator_c" + + "ount\030\003 \001(\005\"\202\002\n\022DedicatedResources\022J\n\014mac" + + "hine_spec\030\001 \001(\0132,.google.cloud.aiplatfor" + + "m.v1beta1.MachineSpecB\006\340A\002\340A\005\022!\n\021min_rep" + + "lica_count\030\002 \001(\005B\006\340A\002\340A\005\022\036\n\021max_replica_" + + "count\030\003 \001(\005B\003\340A\005\022]\n\030autoscaling_metric_s" + + "pecs\030\004 \003(\01326.google.cloud.aiplatform.v1b" + + "eta1.AutoscalingMetricSpecB\003\340A\005\"T\n\022Autom" + + "aticResources\022\036\n\021min_replica_count\030\001 \001(\005" + + "B\003\340A\005\022\036\n\021max_replica_count\030\002 \001(\005B\003\340A\005\"\252\001" + + "\n\027BatchDedicatedResources\022J\n\014machine_spe" + + "c\030\001 \001(\0132,.google.cloud.aiplatform.v1beta" + + "1.MachineSpecB\006\340A\002\340A\005\022#\n\026starting_replic" + + "a_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\rrepli" + + "ca_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\"L\n\010NfsMount\022\023\n\006server\030\001 \001(\tB\003\340A\002\022\021\n\004p" + + "ath\030\002 \001(\tB\003\340A\002\022\030\n\013mount_point\030\003 \001(\tB\003\340A\002" + + "\"A\n\025AutoscalingMetricSpec\022\030\n\013metric_name" + + "\030\001 \001(\tB\003\340A\002\022\016\n\006target\030\002 \001(\005B\362\001\n#com.goog" + + "le.cloud.aiplatform.v1beta1B\025MachineReso" + + "urcesProtoP\001ZIgoogle.golang.org/genproto" + + "/googleapis/cloud/aiplatform/v1beta1;aip" + + "latform\252\002\037Google.Cloud.AIPlatform.V1Beta" + + "1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Go" + + "ogle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.AcceleratorTypeProto.getDescriptor(), }); @@ -154,8 +158,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", }); - internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_NfsMount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor, + new java.lang.String[] { + "Server", "Path", "MountPoint", + }); + internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor, @@ -167,7 +179,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.AcceleratorTypeProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java index 5f304141e..5ec6e45db 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java @@ -101,6 +101,8 @@ private MachineSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java index 17516ec1c..10cd38d4c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java @@ -84,6 +84,8 @@ private ManualBatchTuningParameters( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java index 02af75fcf..1db675517 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java @@ -42,23 +42,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\nDgoogle/cloud/aiplatform/v1beta1/manual" + "_batch_tuning_parameters.proto\022\037google.c" - + "loud.aiplatform.v1beta1\032\034google/api/anno" - + "tations.proto\032\037google/api/field_behavior" - + ".proto\"6\n\033ManualBatchTuningParameters\022\027\n" - + "\nbatch_size\030\001 \001(\005B\003\340A\005B\375\001\n#com.google.cl" - + "oud.aiplatform.v1beta1B ManualBatchTunin" - + "gParametersProtoP\001ZIgoogle.golang.org/ge" - + "nproto/googleapis/cloud/aiplatform/v1bet" - + "a1;aiplatform\252\002\037Google.Cloud.AIPlatform." - + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" - + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" - + "proto3" + + "loud.aiplatform.v1beta1\032\037google/api/fiel" + + "d_behavior.proto\"6\n\033ManualBatchTuningPar" + + "ameters\022\027\n\nbatch_size\030\001 \001(\005B\003\340A\005B\375\001\n#com" + + ".google.cloud.aiplatform.v1beta1B Manual" + + "BatchTuningParametersProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/aiplat" + + "form/v1beta1;aiplatform\252\002\037Google.Cloud.A" + + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" + + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:" + + ":V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_ManualBatchTuningParameters_descriptor = @@ -74,7 +72,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java index 29bc42789..bf3c81590 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java @@ -118,6 +118,8 @@ private Measurement( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -264,6 +266,8 @@ private Metric( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -373,7 +377,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricId_); } - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(2, value_); } unknownFields.writeTo(output); @@ -388,7 +392,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricId_); } - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequest.java new file mode 100644 index 000000000..4e4e33d57 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequest.java @@ -0,0 +1,1083 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} + */ +public final class MergeVersionAliasesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) + MergeVersionAliasesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergeVersionAliasesRequest.newBuilder() to construct. + private MergeVersionAliasesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergeVersionAliasesRequest() { + name_ = ""; + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergeVersionAliasesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MergeVersionAliasesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + versionAliases_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.class, + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_ALIASES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList versionAliases_; + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_; + } + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < versionAliases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, versionAliases_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < versionAliases_.size(); i++) { + dataSize += computeStringSizeNoTag(versionAliases_.getRaw(i)); + } + size += dataSize; + size += 1 * getVersionAliasesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest other = + (com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVersionAliasesList().equals(other.getVersionAliasesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getVersionAliasesCount() > 0) { + hash = (37 * hash) + VERSION_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getVersionAliasesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.class, + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest build() { + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest result = + new com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.versionAliases_ = versionAliases_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.versionAliases_.isEmpty()) { + if (versionAliases_.isEmpty()) { + versionAliases_ = other.versionAliases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVersionAliasesIsMutable(); + versionAliases_.addAll(other.versionAliases_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList versionAliases_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureVersionAliasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The versionAliases to set. + * @return This builder for chaining. + */ + public Builder setVersionAliases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addAllVersionAliases(java.lang.Iterable values) { + ensureVersionAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionAliases_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVersionAliases() { + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) + private static final com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergeVersionAliasesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MergeVersionAliasesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequestOrBuilder.java new file mode 100644 index 000000000..e5a24d9db --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface MergeVersionAliasesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the versionAliases. + */ + java.util.List getVersionAliasesList(); + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of versionAliases. + */ + int getVersionAliasesCount(); + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + java.lang.String getVersionAliases(int index); + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + com.google.protobuf.ByteString getVersionAliasesBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java index 895854058..ccaf07dc9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java @@ -46,36 +46,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/cloud/aiplatform/v1beta1/metada" + "ta_store.proto\022\037google.cloud.aiplatform." - + "v1beta1\032\034google/api/annotations.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\0325google/cloud/aiplatfo" - + "rm/v1beta1/encryption_spec.proto\032\037google" - + "/protobuf/timestamp.proto\"\361\003\n\rMetadataSt" - + "ore\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\003 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022H\n\017encryption_spec\030\005 \001(\0132/.go" - + "ogle.cloud.aiplatform.v1beta1.Encryption" - + "Spec\022\023\n\013description\030\006 \001(\t\022U\n\005state\030\007 \001(\013" - + "2A.google.cloud.aiplatform.v1beta1.Metad" - + "ataStore.MetadataStoreStateB\003\340A\003\0324\n\022Meta" - + "dataStoreState\022\036\n\026disk_utilization_bytes" - + "\030\001 \001(\003:u\352Ar\n\'aiplatform.googleapis.com/M" - + "etadataStore\022Gprojects/{project}/locatio" - + "ns/{location}/metadataStores/{metadata_s" - + "tore}B\352\001\n#com.google.cloud.aiplatform.v1" - + "beta1B\rMetadataProtoP\001ZIgoogle.golang.or" - + "g/genproto/googleapis/cloud/aiplatform/v" - + "1beta1;aiplatform\252\002\037Google.Cloud.AIPlatf" - + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" - + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" - + "a1b\006proto3" + + "v1beta1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\0325google/clou" + + "d/aiplatform/v1beta1/encryption_spec.pro" + + "to\032\037google/protobuf/timestamp.proto\"\361\003\n\r" + + "MetadataStore\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013crea" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022H\n\017encryption_spec\030" + + "\005 \001(\0132/.google.cloud.aiplatform.v1beta1." + + "EncryptionSpec\022\023\n\013description\030\006 \001(\t\022U\n\005s" + + "tate\030\007 \001(\0132A.google.cloud.aiplatform.v1b" + + "eta1.MetadataStore.MetadataStoreStateB\003\340" + + "A\003\0324\n\022MetadataStoreState\022\036\n\026disk_utiliza" + + "tion_bytes\030\001 \001(\003:u\352Ar\n\'aiplatform.google" + + "apis.com/MetadataStore\022Gprojects/{projec" + + "t}/locations/{location}/metadataStores/{" + + "metadata_store}B\352\001\n#com.google.cloud.aip" + + "latform.v1beta1B\rMetadataProtoP\001ZIgoogle" + + ".golang.org/genproto/googleapis/cloud/ai" + + "platform/v1beta1;aiplatform\252\002\037Google.Clo" + + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" + + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" + + "orm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), @@ -105,7 +103,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java index 605e61d15..7310195eb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java @@ -135,6 +135,8 @@ private MetadataSchema( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java index b3f282d13..ec5c9cb59 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java @@ -42,35 +42,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/aiplatform/v1beta1/metada" + "ta_schema.proto\022\037google.cloud.aiplatform" - + ".v1beta1\032\034google/api/annotations.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\"\205\004\n\016MetadataSchema\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\026\n\016schema_version\030\002 \001(\t\022\023\n\006sch" - + "ema\030\003 \001(\tB\003\340A\002\022W\n\013schema_type\030\004 \001(\0162B.go" - + "ogle.cloud.aiplatform.v1beta1.MetadataSc" - + "hema.MetadataSchemaType\0224\n\013create_time\030\005" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" - + "\013description\030\006 \001(\t\"s\n\022MetadataSchemaType" - + "\022$\n METADATA_SCHEMA_TYPE_UNSPECIFIED\020\000\022\021" - + "\n\rARTIFACT_TYPE\020\001\022\022\n\016EXECUTION_TYPE\020\002\022\020\n" - + "\014CONTEXT_TYPE\020\003:\231\001\352A\225\001\n(aiplatform.googl" - + "eapis.com/MetadataSchema\022iprojects/{proj" - + "ect}/locations/{location}/metadataStores" - + "/{metadata_store}/metadataSchemas/{metad" - + "ata_schema}B\360\001\n#com.google.cloud.aiplatf" - + "orm.v1beta1B\023MetadataSchemaProtoP\001ZIgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1beta1;aiplatform\252\002\037Google.C" - + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" - + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" - + "tform::V1beta1b\006proto3" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\205\004\n\016MetadataSchema" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016schema_version\030\002 " + + "\001(\t\022\023\n\006schema\030\003 \001(\tB\003\340A\002\022W\n\013schema_type\030" + + "\004 \001(\0162B.google.cloud.aiplatform.v1beta1." + + "MetadataSchema.MetadataSchemaType\0224\n\013cre" + + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\023\n\013description\030\006 \001(\t\"s\n\022Metadata" + + "SchemaType\022$\n METADATA_SCHEMA_TYPE_UNSPE" + + "CIFIED\020\000\022\021\n\rARTIFACT_TYPE\020\001\022\022\n\016EXECUTION" + + "_TYPE\020\002\022\020\n\014CONTEXT_TYPE\020\003:\231\001\352A\225\001\n(aiplat" + + "form.googleapis.com/MetadataSchema\022iproj" + + "ects/{project}/locations/{location}/meta" + + "dataStores/{metadata_store}/metadataSche" + + "mas/{metadata_schema}B\360\001\n#com.google.clo" + + "ud.aiplatform.v1beta1B\023MetadataSchemaPro" + + "toP\001ZIgoogle.golang.org/genproto/googlea" + + "pis/cloud/aiplatform/v1beta1;aiplatform\252" + + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" + + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cl" + + "oud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -89,7 +87,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java index 6f9fa8e9c..21d01ba91 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java @@ -279,7 +279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ken\030\002 \001(\t\"\246\001\n\025UpdateArtifactRequest\022@\n\010a" + "rtifact\030\001 \001(\0132).google.cloud.aiplatform." + "v1beta1.ArtifactB\003\340A\002\0224\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\025\n\ra" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\025\n\ra" + "llow_missing\030\003 \001(\010\"d\n\025DeleteArtifactRequ" + "est\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.go" + "ogleapis.com/Artifact\022\021\n\004etag\030\002 \001(\tB\003\340A\001" @@ -307,7 +307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030\002 \001(\t\"\243\001\n\024UpdateContextRequest\022>\n\007conte" + "xt\030\001 \001(\0132(.google.cloud.aiplatform.v1bet" + "a1.ContextB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\022\025\n\rallow_m" + + "oogle.protobuf.FieldMaskB\003\340A\001\022\025\n\rallow_m" + "issing\030\003 \001(\010\"q\n\024DeleteContextRequest\0227\n\004" + "name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapi" + "s.com/Context\022\r\n\005force\030\002 \001(\010\022\021\n\004etag\030\003 \001" @@ -350,7 +350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onRequest\022B\n\texecution\030\001 \001(\0132*.google.cl" + "oud.aiplatform.v1beta1.ExecutionB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\002\022\025\n\rallow_missing\030\003 \001(\010\"f\n\026De" + + "ldMaskB\003\340A\001\022\025\n\rallow_missing\030\003 \001(\010\"f\n\026De" + "leteExecutionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372" + "A%\n#aiplatform.googleapis.com/Execution\022" + "\021\n\004etag\030\002 \001(\tB\003\340A\001\"~\n\026PurgeExecutionsReq" diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java index bcdcce3a6..8bf9f3e50 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java @@ -162,6 +162,8 @@ private MetadataStore( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -269,6 +271,8 @@ private MetadataStoreState( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 efd050474..1c3ec8a4a 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 @@ -202,6 +202,8 @@ private MigratableResource( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -372,6 +374,8 @@ private MlEngineModelVersion( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1307,6 +1311,8 @@ private AutomlModel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2193,6 +2199,8 @@ private AutomlDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3175,6 +3183,8 @@ private DataLabelingDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3343,6 +3353,8 @@ private DataLabelingAnnotatedDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6574,8 +6586,9 @@ public Builder mergeMlEngineModelVersion( } else { if (resourceCase_ == 1) { mlEngineModelVersionBuilder_.mergeFrom(value); + } else { + mlEngineModelVersionBuilder_.setMessage(value); } - mlEngineModelVersionBuilder_.setMessage(value); } resourceCase_ = 1; return this; @@ -6817,8 +6830,9 @@ public Builder mergeAutomlModel( } else { if (resourceCase_ == 2) { automlModelBuilder_.mergeFrom(value); + } else { + automlModelBuilder_.setMessage(value); } - automlModelBuilder_.setMessage(value); } resourceCase_ = 2; return this; @@ -7057,8 +7071,9 @@ public Builder mergeAutomlDataset( } else { if (resourceCase_ == 3) { automlDatasetBuilder_.mergeFrom(value); + } else { + automlDatasetBuilder_.setMessage(value); } - automlDatasetBuilder_.setMessage(value); } resourceCase_ = 3; return this; @@ -7299,8 +7314,9 @@ public Builder mergeDataLabelingDataset( } else { if (resourceCase_ == 4) { dataLabelingDatasetBuilder_.mergeFrom(value); + } else { + dataLabelingDatasetBuilder_.setMessage(value); } - dataLabelingDatasetBuilder_.setMessage(value); } resourceCase_ = 4; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java index 11bc460c9..95c08b27b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java @@ -62,66 +62,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n9google/cloud/aiplatform/v1beta1/migrat" + "able_resource.proto\022\037google.cloud.aiplat" - + "form.v1beta1\032\034google/api/annotations.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032\037google/protobuf/" - + "timestamp.proto\"\354\t\n\022MigratableResource\022p" - + "\n\027ml_engine_model_version\030\001 \001(\0132H.google" - + ".cloud.aiplatform.v1beta1.MigratableReso" - + "urce.MlEngineModelVersionB\003\340A\003H\000\022\\\n\014auto" - + "ml_model\030\002 \001(\0132?.google.cloud.aiplatform" - + ".v1beta1.MigratableResource.AutomlModelB" - + "\003\340A\003H\000\022`\n\016automl_dataset\030\003 \001(\0132A.google." - + "cloud.aiplatform.v1beta1.MigratableResou" - + "rce.AutomlDatasetB\003\340A\003H\000\022m\n\025data_labelin" - + "g_dataset\030\004 \001(\0132G.google.cloud.aiplatfor" - + "m.v1beta1.MigratableResource.DataLabelin" - + "gDatasetB\003\340A\003H\000\022:\n\021last_migrate_time\030\005 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n\020l" - + "ast_update_time\030\006 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\032Y\n\024MlEngineModelVersion\022\020" - + "\n\010endpoint\030\001 \001(\t\022/\n\007version\030\002 \001(\tB\036\372A\033\n\031" - + "ml.googleapis.com/Version\032Z\n\013AutomlModel" - + "\022/\n\005model\030\001 \001(\tB \372A\035\n\033automl.googleapis." - + "com/Model\022\032\n\022model_display_name\030\003 \001(\t\032b\n" - + "\rAutomlDataset\0223\n\007dataset\030\001 \001(\tB\"\372A\037\n\035au" - + "toml.googleapis.com/Dataset\022\034\n\024dataset_d" - + "isplay_name\030\004 \001(\t\032\226\003\n\023DataLabelingDatase" - + "t\0229\n\007dataset\030\001 \001(\tB(\372A%\n#datalabeling.go" - + "ogleapis.com/Dataset\022\034\n\024dataset_display_" - + "name\030\004 \001(\t\022\216\001\n data_labeling_annotated_d" - + "atasets\030\003 \003(\0132d.google.cloud.aiplatform." - + "v1beta1.MigratableResource.DataLabelingD" - + "ataset.DataLabelingAnnotatedDataset\032\224\001\n\034" - + "DataLabelingAnnotatedDataset\022L\n\021annotate" - + "d_dataset\030\001 \001(\tB1\372A.\n,datalabeling.googl" - + "eapis.com/AnnotatedDataset\022&\n\036annotated_" - + "dataset_display_name\030\003 \001(\tB\n\n\010resourceB\313" - + "\005\n#com.google.cloud.aiplatform.v1beta1B\027" - + "MigratableResourceProtoP\001ZIgoogle.golang" - + ".org/genproto/googleapis/cloud/aiplatfor" - + "m/v1beta1;aiplatform\252\002\037Google.Cloud.AIPl" - + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" - + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" - + "beta1\352AQ\n\031ml.googleapis.com/Version\0224pro" - + "jects/{project}/models/{model}/versions/" - + "{version}\352AU\n\033automl.googleapis.com/Mode" - + "l\0226projects/{project}/locations/{locatio" - + "n}/models/{model}\352A[\n\035automl.googleapis." - + "com/Dataset\022:projects/{project}/location" - + "s/{location}/datasets/{dataset}\352AL\n#data" - + "labeling.googleapis.com/Dataset\022%project" - + "s/{project}/datasets/{dataset}\352A{\n,datal" - + "abeling.googleapis.com/AnnotatedDataset\022" - + "Kprojects/{project}/datasets/{dataset}/a" - + "nnotatedDatasets/{annotated_dataset}b\006pr" - + "oto3" + + "form.v1beta1\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032\037google" + + "/protobuf/timestamp.proto\"\354\t\n\022Migratable" + + "Resource\022p\n\027ml_engine_model_version\030\001 \001(" + + "\0132H.google.cloud.aiplatform.v1beta1.Migr" + + "atableResource.MlEngineModelVersionB\003\340A\003" + + "H\000\022\\\n\014automl_model\030\002 \001(\0132?.google.cloud." + + "aiplatform.v1beta1.MigratableResource.Au" + + "tomlModelB\003\340A\003H\000\022`\n\016automl_dataset\030\003 \001(\013" + + "2A.google.cloud.aiplatform.v1beta1.Migra" + + "tableResource.AutomlDatasetB\003\340A\003H\000\022m\n\025da" + + "ta_labeling_dataset\030\004 \001(\0132G.google.cloud" + + ".aiplatform.v1beta1.MigratableResource.D" + + "ataLabelingDatasetB\003\340A\003H\000\022:\n\021last_migrat" + + "e_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0229\n\020last_update_time\030\006 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\032Y\n\024MlEngineMode" + + "lVersion\022\020\n\010endpoint\030\001 \001(\t\022/\n\007version\030\002 " + + "\001(\tB\036\372A\033\n\031ml.googleapis.com/Version\032Z\n\013A" + + "utomlModel\022/\n\005model\030\001 \001(\tB \372A\035\n\033automl.g" + + "oogleapis.com/Model\022\032\n\022model_display_nam" + + "e\030\003 \001(\t\032b\n\rAutomlDataset\0223\n\007dataset\030\001 \001(" + + "\tB\"\372A\037\n\035automl.googleapis.com/Dataset\022\034\n" + + "\024dataset_display_name\030\004 \001(\t\032\226\003\n\023DataLabe" + + "lingDataset\0229\n\007dataset\030\001 \001(\tB(\372A%\n#datal" + + "abeling.googleapis.com/Dataset\022\034\n\024datase" + + "t_display_name\030\004 \001(\t\022\216\001\n data_labeling_a" + + "nnotated_datasets\030\003 \003(\0132d.google.cloud.a" + + "iplatform.v1beta1.MigratableResource.Dat" + + "aLabelingDataset.DataLabelingAnnotatedDa" + + "taset\032\224\001\n\034DataLabelingAnnotatedDataset\022L" + + "\n\021annotated_dataset\030\001 \001(\tB1\372A.\n,datalabe" + + "ling.googleapis.com/AnnotatedDataset\022&\n\036" + + "annotated_dataset_display_name\030\003 \001(\tB\n\n\010" + + "resourceB\313\005\n#com.google.cloud.aiplatform" + + ".v1beta1B\027MigratableResourceProtoP\001ZIgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1beta1;aiplatform\252\002\037Google." + + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\" + + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl" + + "atform::V1beta1\352AQ\n\031ml.googleapis.com/Ve" + + "rsion\0224projects/{project}/models/{model}" + + "/versions/{version}\352AU\n\033automl.googleapi" + + "s.com/Model\0226projects/{project}/location" + + "s/{location}/models/{model}\352A[\n\035automl.g" + + "oogleapis.com/Dataset\022:projects/{project" + + "}/locations/{location}/datasets/{dataset" + + "}\352AL\n#datalabeling.googleapis.com/Datase" + + "t\022%projects/{project}/datasets/{dataset}" + + "\352A{\n,datalabeling.googleapis.com/Annotat" + + "edDataset\022Kprojects/{project}/datasets/{" + + "dataset}/annotatedDatasets/{annotated_da" + + "taset}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -197,7 +195,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java index b9c32e1c7..5a1667a8b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java @@ -188,6 +188,8 @@ private MigrateResourceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -400,6 +402,8 @@ private MigrateMlEngineModelVersionConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1572,6 +1576,8 @@ private MigrateAutomlModelConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2526,6 +2532,8 @@ private MigrateAutomlDatasetConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3590,6 +3598,8 @@ private MigrateDataLabelingDatasetConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3731,6 +3741,8 @@ private MigrateDataLabelingAnnotatedDatasetConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6805,8 +6817,9 @@ public Builder mergeMigrateMlEngineModelVersionConfig( } else { if (requestCase_ == 1) { migrateMlEngineModelVersionConfigBuilder_.mergeFrom(value); + } else { + migrateMlEngineModelVersionConfigBuilder_.setMessage(value); } - migrateMlEngineModelVersionConfigBuilder_.setMessage(value); } requestCase_ = 1; return this; @@ -7069,8 +7082,9 @@ public Builder mergeMigrateAutomlModelConfig( } else { if (requestCase_ == 2) { migrateAutomlModelConfigBuilder_.mergeFrom(value); + } else { + migrateAutomlModelConfigBuilder_.setMessage(value); } - migrateAutomlModelConfigBuilder_.setMessage(value); } requestCase_ = 2; return this; @@ -7338,8 +7352,9 @@ public Builder mergeMigrateAutomlDatasetConfig( } else { if (requestCase_ == 3) { migrateAutomlDatasetConfigBuilder_.mergeFrom(value); + } else { + migrateAutomlDatasetConfigBuilder_.setMessage(value); } - migrateAutomlDatasetConfigBuilder_.setMessage(value); } requestCase_ = 3; return this; @@ -7610,8 +7625,9 @@ public Builder mergeMigrateDataLabelingDatasetConfig( } else { if (requestCase_ == 4) { migrateDataLabelingDatasetConfigBuilder_.mergeFrom(value); + } else { + migrateDataLabelingDatasetConfigBuilder_.setMessage(value); } - migrateDataLabelingDatasetConfigBuilder_.setMessage(value); } requestCase_ = 4; return this; 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 ed313855f..fac30728d 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 @@ -110,6 +110,8 @@ private MigrateResourceResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java index 2f7857254..3872302f0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java @@ -93,105 +93,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rm.v1beta1\032\034google/api/annotations.proto" + "\032\027google/api/client.proto\032\037google/api/fi" + "eld_behavior.proto\032\031google/api/resource." - + "proto\032-google/cloud/aiplatform/v1beta1/d" - + "ataset.proto\0329google/cloud/aiplatform/v1" - + "beta1/migratable_resource.proto\032+google/" - + "cloud/aiplatform/v1beta1/model.proto\032/go" - + "ogle/cloud/aiplatform/v1beta1/operation." - + "proto\032#google/longrunning/operations.pro" - + "to\032\027google/rpc/status.proto\"\224\001\n SearchMi" - + "gratableResourcesRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\022\016\n\006filter\030\004 \001(\t\"\217\001\n!SearchMigratableR" - + "esourcesResponse\022Q\n\024migratable_resources" - + "\030\001 \003(\01323.google.cloud.aiplatform.v1beta1" - + ".MigratableResource\022\027\n\017next_page_token\030\002" - + " \001(\t\"\272\001\n\034BatchMigrateResourcesRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" - + "pis.com/Location\022_\n\031migrate_resource_req" - + "uests\030\002 \003(\01327.google.cloud.aiplatform.v1" - + "beta1.MigrateResourceRequestB\003\340A\002\"\374\n\n\026Mi" - + "grateResourceRequest\022\213\001\n&migrate_ml_engi" - + "ne_model_version_config\030\001 \001(\0132Y.google.c" - + "loud.aiplatform.v1beta1.MigrateResourceR" - + "equest.MigrateMlEngineModelVersionConfig" - + "H\000\022w\n\033migrate_automl_model_config\030\002 \001(\0132" - + "P.google.cloud.aiplatform.v1beta1.Migrat" - + "eResourceRequest.MigrateAutomlModelConfi" - + "gH\000\022{\n\035migrate_automl_dataset_config\030\003 \001" - + "(\0132R.google.cloud.aiplatform.v1beta1.Mig" - + "rateResourceRequest.MigrateAutomlDataset" - + "ConfigH\000\022\210\001\n$migrate_data_labeling_datas" - + "et_config\030\004 \001(\0132X.google.cloud.aiplatfor" - + "m.v1beta1.MigrateResourceRequest.Migrate" - + "DataLabelingDatasetConfigH\000\032\225\001\n!MigrateM" - + "lEngineModelVersionConfig\022\025\n\010endpoint\030\001 " - + "\001(\tB\003\340A\002\0228\n\rmodel_version\030\002 \001(\tB!\340A\002\372A\033\n" - + "\031ml.googleapis.com/Version\022\037\n\022model_disp" - + "lay_name\030\003 \001(\tB\003\340A\002\032o\n\030MigrateAutomlMode" - + "lConfig\0222\n\005model\030\001 \001(\tB#\340A\002\372A\035\n\033automl.g" - + "oogleapis.com/Model\022\037\n\022model_display_nam" - + "e\030\002 \001(\tB\003\340A\001\032w\n\032MigrateAutomlDatasetConf" - + "ig\0226\n\007dataset\030\001 \001(\tB%\340A\002\372A\037\n\035automl.goog" - + "leapis.com/Dataset\022!\n\024dataset_display_na" - + "me\030\002 \001(\tB\003\340A\002\032\305\003\n MigrateDataLabelingDat" - + "asetConfig\022<\n\007dataset\030\001 \001(\tB+\340A\002\372A%\n#dat" - + "alabeling.googleapis.com/Dataset\022!\n\024data" - + "set_display_name\030\002 \001(\tB\003\340A\001\022\301\001\n/migrate_" - + "data_labeling_annotated_dataset_configs\030" - + "\003 \003(\0132\202\001.google.cloud.aiplatform.v1beta1" - + ".MigrateResourceRequest.MigrateDataLabel" - + "ingDatasetConfig.MigrateDataLabelingAnno" - + "tatedDatasetConfigB\003\340A\001\032|\n)MigrateDataLa" - + "belingAnnotatedDatasetConfig\022O\n\021annotate" - + "d_dataset\030\001 \001(\tB4\340A\002\372A.\n,datalabeling.go" - + "ogleapis.com/AnnotatedDatasetB\t\n\007request" - + "\"}\n\035BatchMigrateResourcesResponse\022\\\n\032mig" - + "rate_resource_responses\030\001 \003(\01328.google.c" - + "loud.aiplatform.v1beta1.MigrateResourceR" - + "esponse\"\362\001\n\027MigrateResourceResponse\0229\n\007d" - + "ataset\030\001 \001(\tB&\372A#\n!aiplatform.googleapis" - + ".com/DatasetH\000\0225\n\005model\030\002 \001(\tB$\372A!\n\037aipl" - + "atform.googleapis.com/ModelH\000\022P\n\023migrata" - + "ble_resource\030\003 \001(\01323.google.cloud.aiplat" - + "form.v1beta1.MigratableResourceB\023\n\021migra" - + "ted_resource\"\352\003\n&BatchMigrateResourcesOp" - + "erationMetadata\022S\n\020generic_metadata\030\001 \001(" - + "\01329.google.cloud.aiplatform.v1beta1.Gene" - + "ricOperationMetadata\022n\n\017partial_results\030" - + "\002 \003(\0132U.google.cloud.aiplatform.v1beta1." - + "BatchMigrateResourcesOperationMetadata.P" - + "artialResult\032\372\001\n\rPartialResult\022#\n\005error\030" - + "\002 \001(\0132\022.google.rpc.StatusH\000\0225\n\005model\030\003 \001" - + "(\tB$\372A!\n\037aiplatform.googleapis.com/Model" - + "H\000\0229\n\007dataset\030\004 \001(\tB&\372A#\n!aiplatform.goo" - + "gleapis.com/DatasetH\000\022H\n\007request\030\001 \001(\01327" - + ".google.cloud.aiplatform.v1beta1.Migrate" - + "ResourceRequestB\010\n\006result2\233\005\n\020MigrationS" - + "ervice\022\373\001\n\031SearchMigratableResources\022A.g" - + "oogle.cloud.aiplatform.v1beta1.SearchMig" - + "ratableResourcesRequest\032B.google.cloud.a" - + "iplatform.v1beta1.SearchMigratableResour" - + "cesResponse\"W\202\323\344\223\002H\"C/v1beta1/{parent=pr" - + "ojects/*/locations/*}/migratableResource" - + "s:search:\001*\332A\006parent\022\271\002\n\025BatchMigrateRes" - + "ources\022=.google.cloud.aiplatform.v1beta1" - + ".BatchMigrateResourcesRequest\032\035.google.l" - + "ongrunning.Operation\"\301\001\202\323\344\223\002N\"I/v1beta1/" - + "{parent=projects/*/locations/*}/migratab" - + "leResources:batchMigrate:\001*\332A parent,mig" - + "rate_resource_requests\312AG\n\035BatchMigrateR" - + "esourcesResponse\022&BatchMigrateResourcesO" - + "perationMetadata\032M\312A\031aiplatform.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\362\001\n#com.google.cloud.aip" - + "latform.v1beta1B\025MigrationServiceProtoP\001" - + "ZIgoogle.golang.org/genproto/googleapis/" - + "cloud/aiplatform/v1beta1;aiplatform\252\002\037Go" - + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" - + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud:" - + ":AIPlatform::V1beta1b\006proto3" + + "proto\0329google/cloud/aiplatform/v1beta1/m" + + "igratable_resource.proto\032/google/cloud/a" + + "iplatform/v1beta1/operation.proto\032#googl" + + "e/longrunning/operations.proto\032\027google/r" + + "pc/status.proto\"\224\001\n SearchMigratableReso" + + "urcesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" + + "cations.googleapis.com/Location\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter" + + "\030\004 \001(\t\"\217\001\n!SearchMigratableResourcesResp" + + "onse\022Q\n\024migratable_resources\030\001 \003(\01323.goo" + + "gle.cloud.aiplatform.v1beta1.MigratableR" + + "esource\022\027\n\017next_page_token\030\002 \001(\t\"\272\001\n\034Bat" + + "chMigrateResourcesRequest\0229\n\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + + "tion\022_\n\031migrate_resource_requests\030\002 \003(\0132" + + "7.google.cloud.aiplatform.v1beta1.Migrat" + + "eResourceRequestB\003\340A\002\"\374\n\n\026MigrateResourc" + + "eRequest\022\213\001\n&migrate_ml_engine_model_ver" + + "sion_config\030\001 \001(\0132Y.google.cloud.aiplatf" + + "orm.v1beta1.MigrateResourceRequest.Migra" + + "teMlEngineModelVersionConfigH\000\022w\n\033migrat" + + "e_automl_model_config\030\002 \001(\0132P.google.clo" + + "ud.aiplatform.v1beta1.MigrateResourceReq" + + "uest.MigrateAutomlModelConfigH\000\022{\n\035migra" + + "te_automl_dataset_config\030\003 \001(\0132R.google." + + "cloud.aiplatform.v1beta1.MigrateResource" + + "Request.MigrateAutomlDatasetConfigH\000\022\210\001\n" + + "$migrate_data_labeling_dataset_config\030\004 " + + "\001(\0132X.google.cloud.aiplatform.v1beta1.Mi" + + "grateResourceRequest.MigrateDataLabeling" + + "DatasetConfigH\000\032\225\001\n!MigrateMlEngineModel" + + "VersionConfig\022\025\n\010endpoint\030\001 \001(\tB\003\340A\002\0228\n\r" + + "model_version\030\002 \001(\tB!\340A\002\372A\033\n\031ml.googleap" + + "is.com/Version\022\037\n\022model_display_name\030\003 \001" + + "(\tB\003\340A\002\032o\n\030MigrateAutomlModelConfig\0222\n\005m" + + "odel\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.co" + + "m/Model\022\037\n\022model_display_name\030\002 \001(\tB\003\340A\001" + + "\032w\n\032MigrateAutomlDatasetConfig\0226\n\007datase" + + "t\030\001 \001(\tB%\340A\002\372A\037\n\035automl.googleapis.com/D" + + "ataset\022!\n\024dataset_display_name\030\002 \001(\tB\003\340A" + + "\002\032\305\003\n MigrateDataLabelingDatasetConfig\022<" + + "\n\007dataset\030\001 \001(\tB+\340A\002\372A%\n#datalabeling.go" + + "ogleapis.com/Dataset\022!\n\024dataset_display_" + + "name\030\002 \001(\tB\003\340A\001\022\301\001\n/migrate_data_labelin" + + "g_annotated_dataset_configs\030\003 \003(\0132\202\001.goo" + + "gle.cloud.aiplatform.v1beta1.MigrateReso" + + "urceRequest.MigrateDataLabelingDatasetCo" + + "nfig.MigrateDataLabelingAnnotatedDataset" + + "ConfigB\003\340A\001\032|\n)MigrateDataLabelingAnnota" + + "tedDatasetConfig\022O\n\021annotated_dataset\030\001 " + + "\001(\tB4\340A\002\372A.\n,datalabeling.googleapis.com" + + "/AnnotatedDatasetB\t\n\007request\"}\n\035BatchMig" + + "rateResourcesResponse\022\\\n\032migrate_resourc" + + "e_responses\030\001 \003(\01328.google.cloud.aiplatf" + + "orm.v1beta1.MigrateResourceResponse\"\362\001\n\027" + + "MigrateResourceResponse\0229\n\007dataset\030\001 \001(\t" + + "B&\372A#\n!aiplatform.googleapis.com/Dataset" + + "H\000\0225\n\005model\030\002 \001(\tB$\372A!\n\037aiplatform.googl" + + "eapis.com/ModelH\000\022P\n\023migratable_resource" + + "\030\003 \001(\01323.google.cloud.aiplatform.v1beta1" + + ".MigratableResourceB\023\n\021migrated_resource" + + "\"\352\003\n&BatchMigrateResourcesOperationMetad" + + "ata\022S\n\020generic_metadata\030\001 \001(\01329.google.c" + + "loud.aiplatform.v1beta1.GenericOperation" + + "Metadata\022n\n\017partial_results\030\002 \003(\0132U.goog" + + "le.cloud.aiplatform.v1beta1.BatchMigrate" + + "ResourcesOperationMetadata.PartialResult" + + "\032\372\001\n\rPartialResult\022#\n\005error\030\002 \001(\0132\022.goog" + + "le.rpc.StatusH\000\0225\n\005model\030\003 \001(\tB$\372A!\n\037aip" + + "latform.googleapis.com/ModelH\000\0229\n\007datase" + + "t\030\004 \001(\tB&\372A#\n!aiplatform.googleapis.com/" + + "DatasetH\000\022H\n\007request\030\001 \001(\01327.google.clou" + + "d.aiplatform.v1beta1.MigrateResourceRequ" + + "estB\010\n\006result2\233\005\n\020MigrationService\022\373\001\n\031S" + + "earchMigratableResources\022A.google.cloud." + + "aiplatform.v1beta1.SearchMigratableResou" + + "rcesRequest\032B.google.cloud.aiplatform.v1" + + "beta1.SearchMigratableResourcesResponse\"" + + "W\202\323\344\223\002H\"C/v1beta1/{parent=projects/*/loc" + + "ations/*}/migratableResources:search:\001*\332" + + "A\006parent\022\271\002\n\025BatchMigrateResources\022=.goo" + + "gle.cloud.aiplatform.v1beta1.BatchMigrat" + + "eResourcesRequest\032\035.google.longrunning.O" + + "peration\"\301\001\202\323\344\223\002N\"I/v1beta1/{parent=proj" + + "ects/*/locations/*}/migratableResources:" + + "batchMigrate:\001*\332A parent,migrate_resourc" + + "e_requests\312AG\n\035BatchMigrateResourcesResp" + + "onse\022&BatchMigrateResourcesOperationMeta" + + "data\032M\312A\031aiplatform.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "ormB\362\001\n#com.google.cloud.aiplatform.v1be" + + "ta1B\025MigrationServiceProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/aiplat" + + "form/v1beta1;aiplatform\252\002\037Google.Cloud.A" + + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" + + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:" + + ":V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -201,9 +199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MigratableResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -343,9 +339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MigratableResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); 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 9b1bd209b..faf74ffcd 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 @@ -39,8 +39,11 @@ private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Model() { name_ = ""; + versionId_ = ""; + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; displayName_ = ""; description_ = ""; + versionDescription_ = ""; metadataSchemaUri_ = ""; supportedExportFormats_ = java.util.Collections.emptyList(); trainingPipeline_ = ""; @@ -168,9 +171,9 @@ private Model( case 80: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000004; } supportedDeploymentResourcesTypes_.add(rawValue); break; @@ -181,9 +184,9 @@ private Model( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000004; } supportedDeploymentResourcesTypes_.add(rawValue); } @@ -193,9 +196,9 @@ private Model( case 90: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000008; } supportedInputStorageFormats_.add(s); break; @@ -203,9 +206,9 @@ private Model( case 98: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { supportedOutputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000010; } supportedOutputStorageFormats_.add(s); break; @@ -242,10 +245,10 @@ private Model( } case 122: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { deployedModels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000020; } deployedModels_.add( input.readMessage( @@ -262,10 +265,10 @@ private Model( } case 138: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000040; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -275,11 +278,11 @@ private Model( } case 162: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.Model.ExportFormat>(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } supportedExportFormats_.add( input.readMessage( @@ -326,6 +329,60 @@ private Model( java.lang.String s = input.readStringRequireUtf8(); artifactUri_ = s; + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + versionId_ = s; + break; + } + case 234: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + versionAliases_.add(s); + break; + } + case 242: + { + java.lang.String s = input.readStringRequireUtf8(); + + versionDescription_ = s; + break; + } + case 250: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (versionCreateTime_ != null) { + subBuilder = versionCreateTime_.toBuilder(); + } + versionCreateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(versionCreateTime_); + versionCreateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 258: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (versionUpdateTime_ != null) { + subBuilder = versionUpdateTime_.toBuilder(); + } + versionUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(versionUpdateTime_); + versionUpdateTime_ = subBuilder.buildPartial(); + } + break; } default: @@ -339,25 +396,30 @@ private Model( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = supportedInputStorageFormats_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { supportedOutputStorageFormats_ = supportedOutputStorageFormats_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000020) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); } - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); } + if (((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -784,6 +846,8 @@ private ExportFormat( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2078,6 +2142,266 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int VERSION_ID_FIELD_NUMBER = 28; + private volatile java.lang.Object versionId_; + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionId. + */ + @java.lang.Override + public java.lang.String getVersionId() { + java.lang.Object ref = versionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for versionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionIdBytes() { + java.lang.Object ref = versionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_ALIASES_FIELD_NUMBER = 29; + private com.google.protobuf.LazyStringList versionAliases_; + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_; + } + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + + public static final int VERSION_CREATE_TIME_FIELD_NUMBER = 31; + private com.google.protobuf.Timestamp versionCreateTime_; + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionCreateTime field is set. + */ + @java.lang.Override + public boolean hasVersionCreateTime() { + return versionCreateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getVersionCreateTime() { + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { + return getVersionCreateTime(); + } + + public static final int VERSION_UPDATE_TIME_FIELD_NUMBER = 32; + private com.google.protobuf.Timestamp versionUpdateTime_; + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionUpdateTime field is set. + */ + @java.lang.Override + public boolean hasVersionUpdateTime() { + return versionUpdateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getVersionUpdateTime() { + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { + return getVersionUpdateTime(); + } + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** @@ -2180,6 +2504,55 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int VERSION_DESCRIPTION_FIELD_NUMBER = 30; + private volatile java.lang.Object versionDescription_; + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The versionDescription. + */ + @java.lang.Override + public java.lang.String getVersionDescription() { + java.lang.Object ref = versionDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionDescription_ = s; + return s; + } + } + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The bytes for versionDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionDescriptionBytes() { + java.lang.Object ref = versionDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PREDICT_SCHEMATA_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1beta1.PredictSchemata predictSchemata_; /** @@ -3511,7 +3884,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3554,7 +3927,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3575,7 +3948,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3715,6 +4088,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, artifactUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, versionId_); + } + for (int i = 0; i < versionAliases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, versionAliases_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, versionDescription_); + } + if (versionCreateTime_ != null) { + output.writeMessage(31, getVersionCreateTime()); + } + if (versionUpdateTime_ != null) { + output.writeMessage(32, getVersionUpdateTime()); + } unknownFields.writeTo(output); } @@ -3814,6 +4202,26 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, artifactUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, versionId_); + } + { + int dataSize = 0; + for (int i = 0; i < versionAliases_.size(); i++) { + dataSize += computeStringSizeNoTag(versionAliases_.getRaw(i)); + } + size += dataSize; + size += 2 * getVersionAliasesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, versionDescription_); + } + if (versionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getVersionCreateTime()); + } + if (versionUpdateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getVersionUpdateTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3831,8 +4239,19 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.Model) obj; if (!getName().equals(other.getName())) return false; + if (!getVersionId().equals(other.getVersionId())) return false; + if (!getVersionAliasesList().equals(other.getVersionAliasesList())) return false; + if (hasVersionCreateTime() != other.hasVersionCreateTime()) return false; + if (hasVersionCreateTime()) { + if (!getVersionCreateTime().equals(other.getVersionCreateTime())) return false; + } + if (hasVersionUpdateTime() != other.hasVersionUpdateTime()) return false; + if (hasVersionUpdateTime()) { + if (!getVersionUpdateTime().equals(other.getVersionUpdateTime())) return false; + } if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (!getVersionDescription().equals(other.getVersionDescription())) return false; if (hasPredictSchemata() != other.hasPredictSchemata()) return false; if (hasPredictSchemata()) { if (!getPredictSchemata().equals(other.getPredictSchemata())) return false; @@ -3888,10 +4307,26 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getVersionId().hashCode(); + if (getVersionAliasesCount() > 0) { + hash = (37 * hash) + VERSION_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getVersionAliasesList().hashCode(); + } + if (hasVersionCreateTime()) { + hash = (37 * hash) + VERSION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getVersionCreateTime().hashCode(); + } + if (hasVersionUpdateTime()) { + hash = (37 * hash) + VERSION_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getVersionUpdateTime().hashCode(); + } hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + VERSION_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getVersionDescription().hashCode(); if (hasPredictSchemata()) { hash = (37 * hash) + PREDICT_SCHEMATA_FIELD_NUMBER; hash = (53 * hash) + getPredictSchemata().hashCode(); @@ -4122,10 +4557,28 @@ public Builder clear() { super.clear(); name_ = ""; + versionId_ = ""; + + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (versionCreateTimeBuilder_ == null) { + versionCreateTime_ = null; + } else { + versionCreateTime_ = null; + versionCreateTimeBuilder_ = null; + } + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTime_ = null; + } else { + versionUpdateTime_ = null; + versionUpdateTimeBuilder_ = null; + } displayName_ = ""; description_ = ""; + versionDescription_ = ""; + if (predictSchemataBuilder_ == null) { predictSchemata_ = null; } else { @@ -4142,7 +4595,7 @@ public Builder clear() { } if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { supportedExportFormatsBuilder_.clear(); } @@ -4157,11 +4610,11 @@ public Builder clear() { artifactUri_ = ""; supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); - supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; + supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); + supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -4176,7 +4629,7 @@ public Builder clear() { } if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { deployedModelsBuilder_.clear(); } @@ -4224,8 +4677,25 @@ public com.google.cloud.aiplatform.v1beta1.Model buildPartial() { new com.google.cloud.aiplatform.v1beta1.Model(this); int from_bitField0_ = bitField0_; result.name_ = name_; + result.versionId_ = versionId_; + if (((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.versionAliases_ = versionAliases_; + if (versionCreateTimeBuilder_ == null) { + result.versionCreateTime_ = versionCreateTime_; + } else { + result.versionCreateTime_ = versionCreateTimeBuilder_.build(); + } + if (versionUpdateTimeBuilder_ == null) { + result.versionUpdateTime_ = versionUpdateTime_; + } else { + result.versionUpdateTime_ = versionUpdateTimeBuilder_.build(); + } result.displayName_ = displayName_; result.description_ = description_; + result.versionDescription_ = versionDescription_; if (predictSchemataBuilder_ == null) { result.predictSchemata_ = predictSchemata_; } else { @@ -4238,9 +4708,9 @@ public com.google.cloud.aiplatform.v1beta1.Model buildPartial() { result.metadata_ = metadataBuilder_.build(); } if (supportedExportFormatsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.supportedExportFormats_ = supportedExportFormats_; } else { @@ -4253,20 +4723,20 @@ public com.google.cloud.aiplatform.v1beta1.Model buildPartial() { result.containerSpec_ = containerSpecBuilder_.build(); } result.artifactUri_ = artifactUri_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.supportedDeploymentResourcesTypes_ = supportedDeploymentResourcesTypes_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = supportedInputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.supportedInputStorageFormats_ = supportedInputStorageFormats_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { supportedOutputStorageFormats_ = supportedOutputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.supportedOutputStorageFormats_ = supportedOutputStorageFormats_; if (createTimeBuilder_ == null) { @@ -4280,9 +4750,9 @@ public com.google.cloud.aiplatform.v1beta1.Model buildPartial() { result.updateTime_ = updateTimeBuilder_.build(); } if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.deployedModels_ = deployedModels_; } else { @@ -4354,6 +4824,26 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { name_ = other.name_; onChanged(); } + if (!other.getVersionId().isEmpty()) { + versionId_ = other.versionId_; + onChanged(); + } + if (!other.versionAliases_.isEmpty()) { + if (versionAliases_.isEmpty()) { + versionAliases_ = other.versionAliases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVersionAliasesIsMutable(); + versionAliases_.addAll(other.versionAliases_); + } + onChanged(); + } + if (other.hasVersionCreateTime()) { + mergeVersionCreateTime(other.getVersionCreateTime()); + } + if (other.hasVersionUpdateTime()) { + mergeVersionUpdateTime(other.getVersionUpdateTime()); + } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -4362,6 +4852,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { description_ = other.description_; onChanged(); } + if (!other.getVersionDescription().isEmpty()) { + versionDescription_ = other.versionDescription_; + onChanged(); + } if (other.hasPredictSchemata()) { mergePredictSchemata(other.getPredictSchemata()); } @@ -4376,7 +4870,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedExportFormats_.isEmpty()) { if (supportedExportFormats_.isEmpty()) { supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSupportedExportFormatsIsMutable(); supportedExportFormats_.addAll(other.supportedExportFormats_); @@ -4389,7 +4883,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { supportedExportFormatsBuilder_.dispose(); supportedExportFormatsBuilder_ = null; supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); supportedExportFormatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSupportedExportFormatsFieldBuilder() @@ -4413,7 +4907,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedDeploymentResourcesTypes_.isEmpty()) { if (supportedDeploymentResourcesTypes_.isEmpty()) { supportedDeploymentResourcesTypes_ = other.supportedDeploymentResourcesTypes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSupportedDeploymentResourcesTypesIsMutable(); supportedDeploymentResourcesTypes_.addAll(other.supportedDeploymentResourcesTypes_); @@ -4423,7 +4917,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedInputStorageFormats_.isEmpty()) { if (supportedInputStorageFormats_.isEmpty()) { supportedInputStorageFormats_ = other.supportedInputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.addAll(other.supportedInputStorageFormats_); @@ -4433,7 +4927,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedOutputStorageFormats_.isEmpty()) { if (supportedOutputStorageFormats_.isEmpty()) { supportedOutputStorageFormats_ = other.supportedOutputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSupportedOutputStorageFormatsIsMutable(); supportedOutputStorageFormats_.addAll(other.supportedOutputStorageFormats_); @@ -4450,7 +4944,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -4463,7 +4957,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -4510,115 +5004,892 @@ public Builder mergeFrom( mergeFrom(parsedMessage); } } - return this; + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object versionId_ = ""; + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionId. + */ + public java.lang.String getVersionId() { + java.lang.Object ref = versionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for versionId. + */ + public com.google.protobuf.ByteString getVersionIdBytes() { + java.lang.Object ref = versionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The versionId to set. + * @return This builder for chaining. + */ + public Builder setVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + versionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearVersionId() { + + versionId_ = getDefaultInstance().getVersionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for versionId to set. + * @return This builder for chaining. + */ + public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + versionId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList versionAliases_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureVersionAliasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_.getUnmodifiableView(); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index to set the value at. + * @param value The versionAliases to set. + * @return This builder for chaining. + */ + public Builder setVersionAliases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param value The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param values The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addAllVersionAliases(java.lang.Iterable values) { + ensureVersionAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionAliases_); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @return This builder for chaining. + */ + public Builder clearVersionAliases() { + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param value The bytes of the versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp versionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + versionCreateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionCreateTime field is set. + */ + public boolean hasVersionCreateTime() { + return versionCreateTimeBuilder_ != null || versionCreateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionCreateTime. + */ + public com.google.protobuf.Timestamp getVersionCreateTime() { + if (versionCreateTimeBuilder_ == null) { + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; + } else { + return versionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) { + if (versionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionCreateTime_ = value; + onChanged(); + } else { + versionCreateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (versionCreateTimeBuilder_ == null) { + versionCreateTime_ = builderForValue.build(); + onChanged(); + } else { + versionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) { + if (versionCreateTimeBuilder_ == null) { + if (versionCreateTime_ != null) { + versionCreateTime_ = + com.google.protobuf.Timestamp.newBuilder(versionCreateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + versionCreateTime_ = value; + } + onChanged(); + } else { + versionCreateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVersionCreateTime() { + if (versionCreateTimeBuilder_ == null) { + versionCreateTime_ = null; + onChanged(); + } else { + versionCreateTime_ = null; + versionCreateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getVersionCreateTimeBuilder() { + + onChanged(); + return getVersionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { + if (versionCreateTimeBuilder_ != null) { + return versionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getVersionCreateTimeFieldBuilder() { + if (versionCreateTimeBuilder_ == null) { + versionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVersionCreateTime(), getParentForChildren(), isClean()); + versionCreateTime_ = null; + } + return versionCreateTimeBuilder_; } - private int bitField0_; - - private java.lang.Object name_ = ""; + private com.google.protobuf.Timestamp versionUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + versionUpdateTimeBuilder_; /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The name. + * @return Whether the versionUpdateTime field is set. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public boolean hasVersionUpdateTime() { + return versionUpdateTimeBuilder_ != null || versionUpdateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionUpdateTime. + */ + public com.google.protobuf.Timestamp getVersionUpdateTime() { + if (versionUpdateTimeBuilder_ == null) { + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; } else { - return (java.lang.String) ref; + return versionUpdateTimeBuilder_.getMessage(); } } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; - * - * @return The bytes for name. + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + public Builder setVersionUpdateTime(com.google.protobuf.Timestamp value) { + if (versionUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionUpdateTime_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + versionUpdateTimeBuilder_.setMessage(value); } + + return this; } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTime_ = builderForValue.build(); + onChanged(); + } else { + versionUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** * - * @param value The name to set. - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeVersionUpdateTime(com.google.protobuf.Timestamp value) { + if (versionUpdateTimeBuilder_ == null) { + if (versionUpdateTime_ != null) { + versionUpdateTime_ = + com.google.protobuf.Timestamp.newBuilder(versionUpdateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + versionUpdateTime_ = value; + } + onChanged(); + } else { + versionUpdateTimeBuilder_.mergeFrom(value); } - name_ = value; - onChanged(); return this; } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVersionUpdateTime() { + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTime_ = null; + onChanged(); + } else { + versionUpdateTime_ = null; + versionUpdateTimeBuilder_ = null; + } + + return this; + } + /** * - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { + public com.google.protobuf.Timestamp.Builder getVersionUpdateTimeBuilder() { - name_ = getDefaultInstance().getName(); onChanged(); - return this; + return getVersionUpdateTimeFieldBuilder().getBuilder(); } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { + if (versionUpdateTimeBuilder_ != null) { + return versionUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; + } + } + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getVersionUpdateTimeFieldBuilder() { + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVersionUpdateTime(), getParentForChildren(), isClean()); + versionUpdateTime_ = null; } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; + return versionUpdateTimeBuilder_; } private java.lang.Object displayName_ = ""; @@ -4843,6 +6114,112 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object versionDescription_ = ""; + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @return The versionDescription. + */ + public java.lang.String getVersionDescription() { + java.lang.Object ref = versionDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @return The bytes for versionDescription. + */ + public com.google.protobuf.ByteString getVersionDescriptionBytes() { + java.lang.Object ref = versionDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @param value The versionDescription to set. + * @return This builder for chaining. + */ + public Builder setVersionDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + versionDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @return This builder for chaining. + */ + public Builder clearVersionDescription() { + + versionDescription_ = getDefaultInstance().getVersionDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @param value The bytes for versionDescription to set. + * @return This builder for chaining. + */ + public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + versionDescription_ = value; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1beta1.PredictSchemata predictSchemata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.PredictSchemata, @@ -5400,11 +6777,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { supportedExportFormats_ = java.util.Collections.emptyList(); private void ensureSupportedExportFormatsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = new java.util.ArrayList( supportedExportFormats_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -5659,7 +7036,7 @@ public Builder addAllSupportedExportFormats( public Builder clearSupportedExportFormats() { if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { supportedExportFormatsBuilder_.clear(); @@ -5808,7 +7185,7 @@ public Builder removeSupportedExportFormats(int index) { com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder, com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>( supportedExportFormats_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); supportedExportFormats_ = null; @@ -6300,10 +7677,10 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSupportedDeploymentResourcesTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(supportedDeploymentResourcesTypes_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -6519,7 +7896,7 @@ public Builder addAllSupportedDeploymentResourcesTypes( */ public Builder clearSupportedDeploymentResourcesTypes() { supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -6679,10 +8056,10 @@ public Builder addAllSupportedDeploymentResourcesTypesValue( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedInputStorageFormatsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(supportedInputStorageFormats_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } /** @@ -7065,7 +8442,7 @@ public Builder addAllSupportedInputStorageFormats(java.lang.Iterable( deployedModels_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } @@ -8190,7 +9567,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -8338,7 +9715,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedM com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder, com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>( deployedModels_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); deployedModels_ = null; @@ -8847,7 +10224,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -8891,7 +10268,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -8912,7 +10289,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -8940,7 +10317,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -8965,11 +10342,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } 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 9c533b4b7..3ba9de3b9 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 @@ -153,6 +153,8 @@ private ModelContainerSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java index 032968e0a..3968368af 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java @@ -107,6 +107,8 @@ private ModelDeploymentMonitoringBigQueryTable( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java index 208802646..e427542a5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java @@ -354,6 +354,26 @@ private ModelDeploymentMonitoringJob( error_ = subBuilder.buildPartial(); } + break; + } + case 202: + { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder + subBuilder = null; + if (latestMonitoringPipelineMetadata_ != null) { + subBuilder = latestMonitoringPipelineMetadata_.toBuilder(); + } + latestMonitoringPipelineMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latestMonitoringPipelineMetadata_); + latestMonitoringPipelineMetadata_ = subBuilder.buildPartial(); + } + break; } default: @@ -367,6 +387,8 @@ private ModelDeploymentMonitoringJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -538,59 +560,1194 @@ public static MonitoringScheduleState forNumber(int value) { default: return null; } - } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MonitoringScheduleState findValueByNumber(int number) { + return MonitoringScheduleState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MonitoringScheduleState[] VALUES = values(); + + public static MonitoringScheduleState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MonitoringScheduleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState) + } + + public interface LatestMonitoringPipelineMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return Whether the runTime field is set. + */ + boolean hasRunTime(); + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return The runTime. + */ + com.google.protobuf.Timestamp getRunTime(); + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder(); + + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + } + /** + * + * + *
+   * All metadata of most recent monitoring pipelines.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} + */ + public static final class LatestMonitoringPipelineMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + LatestMonitoringPipelineMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LatestMonitoringPipelineMetadata.newBuilder() to construct. + private LatestMonitoringPipelineMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LatestMonitoringPipelineMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LatestMonitoringPipelineMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LatestMonitoringPipelineMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (runTime_ != null) { + subBuilder = runTime_.toBuilder(); + } + runTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runTime_); + runTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder.class); + } + + public static final int RUN_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp runTime_; + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return Whether the runTime field is set. + */ + @java.lang.Override + public boolean hasRunTime() { + return runTime_ != null; + } + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return The runTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRunTime() { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } + /** + * + * + *
+     * The time that most recent monitoring pipelines that is related to this
+     * run.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { + return getRunTime(); + } + + public static final int STATUS_FIELD_NUMBER = 2; + private com.google.rpc.Status status_; + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + * + * + *
+     * The status of the most recent monitoring pipeline.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (runTime_ != null) { + output.writeMessage(1, getRunTime()); + } + if (status_ != null) { + output.writeMessage(2, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRunTime()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + other = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) + obj; + + if (hasRunTime() != other.hasRunTime()) return false; + if (hasRunTime()) { + if (!getRunTime().equals(other.getRunTime())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } + if (!unknownFields.equals(other.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 (hasRunTime()) { + hash = (37 * hash) + RUN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRunTime().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * All metadata of most recent monitoring pipelines.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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 (runTimeBuilder_ == null) { + runTime_ = null; + } else { + runTime_ = null; + runTimeBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + build() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + result = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata(this); + if (runTimeBuilder_ == null) { + result.runTime_ = runTime_; + } else { + result.runTime_ = runTimeBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance()) return this; + if (other.hasRunTime()) { + mergeRunTime(other.getRunTime()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp runTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + runTimeBuilder_; + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return Whether the runTime field is set. + */ + public boolean hasRunTime() { + return runTimeBuilder_ != null || runTime_ != null; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + * + * @return The runTime. + */ + public com.google.protobuf.Timestamp getRunTime() { + if (runTimeBuilder_ == null) { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } else { + return runTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder setRunTime(com.google.protobuf.Timestamp value) { + if (runTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runTime_ = value; + onChanged(); + } else { + runTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (runTimeBuilder_ == null) { + runTime_ = builderForValue.build(); + onChanged(); + } else { + runTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder mergeRunTime(com.google.protobuf.Timestamp value) { + if (runTimeBuilder_ == null) { + if (runTime_ != null) { + runTime_ = + com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial(); + } else { + runTime_ = value; + } + onChanged(); + } else { + runTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public Builder clearRunTime() { + if (runTimeBuilder_ == null) { + runTime_ = null; + onChanged(); + } else { + runTime_ = null; + runTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() { + + onChanged(); + return getRunTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { + if (runTimeBuilder_ != null) { + return runTimeBuilder_.getMessageOrBuilder(); + } else { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } + } + /** + * + * + *
+       * The time that most recent monitoring pipelines that is related to this
+       * run.
+       * 
+ * + * .google.protobuf.Timestamp run_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRunTimeFieldBuilder() { + if (runTimeBuilder_ == null) { + runTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRunTime(), getParentForChildren(), isClean()); + runTime_ = null; + } + return runTimeBuilder_; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + * + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } + return this; + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MonitoringScheduleState findValueByNumber(int number) { - return MonitoringScheduleState.forNumber(number); - } - }; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + * + * + *
+       * The status of the most recent monitoring pipeline.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } - 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."); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - return getDescriptor().getValues().get(ordinal()); + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + private static final com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDescriptor() - .getEnumTypes() - .get(0); + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private static final MonitoringScheduleState[] VALUES = values(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatestMonitoringPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatestMonitoringPipelineMetadata(input, extensionRegistry); + } + }; - public static MonitoringScheduleState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; - - private MonitoringScheduleState(int value) { - this.value = value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState) + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } public static final int NAME_FIELD_NUMBER = 1; @@ -846,6 +2003,67 @@ public int getScheduleStateValue() { : result; } + public static final int LATEST_MONITORING_PIPELINE_METADATA_FIELD_NUMBER = 25; + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + latestMonitoringPipelineMetadata_; + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestMonitoringPipelineMetadata field is set. + */ + @java.lang.Override + public boolean hasLatestMonitoringPipelineMetadata() { + return latestMonitoringPipelineMetadata_ != null; + } + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestMonitoringPipelineMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getLatestMonitoringPipelineMetadata() { + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; + } + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder + getLatestMonitoringPipelineMetadataOrBuilder() { + return getLatestMonitoringPipelineMetadata(); + } + public static final int MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER = 6; private java.util.List< com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> @@ -1486,7 +2704,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1531,7 +2749,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1553,7 +2771,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1975,6 +3193,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (error_ != null) { output.writeMessage(23, getError()); } + if (latestMonitoringPipelineMetadata_ != null) { + output.writeMessage(25, getLatestMonitoringPipelineMetadata()); + } unknownFields.writeTo(output); } @@ -2073,6 +3294,11 @@ public int getSerializedSize() { if (error_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getError()); } + if (latestMonitoringPipelineMetadata_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getLatestMonitoringPipelineMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2094,6 +3320,12 @@ public boolean equals(final java.lang.Object obj) { if (!getEndpoint().equals(other.getEndpoint())) return false; if (state_ != other.state_) return false; if (scheduleState_ != other.scheduleState_) return false; + if (hasLatestMonitoringPipelineMetadata() != other.hasLatestMonitoringPipelineMetadata()) + return false; + if (hasLatestMonitoringPipelineMetadata()) { + if (!getLatestMonitoringPipelineMetadata() + .equals(other.getLatestMonitoringPipelineMetadata())) return false; + } if (!getModelDeploymentMonitoringObjectiveConfigsList() .equals(other.getModelDeploymentMonitoringObjectiveConfigsList())) return false; if (hasModelDeploymentMonitoringScheduleConfig() @@ -2170,6 +3402,10 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + SCHEDULE_STATE_FIELD_NUMBER; hash = (53 * hash) + scheduleState_; + if (hasLatestMonitoringPipelineMetadata()) { + hash = (37 * hash) + LATEST_MONITORING_PIPELINE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getLatestMonitoringPipelineMetadata().hashCode(); + } if (getModelDeploymentMonitoringObjectiveConfigsCount() > 0) { hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getModelDeploymentMonitoringObjectiveConfigsList().hashCode(); @@ -2414,6 +3650,12 @@ public Builder clear() { scheduleState_ = 0; + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadata_ = null; + } else { + latestMonitoringPipelineMetadata_ = null; + latestMonitoringPipelineMetadataBuilder_ = null; + } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); @@ -2533,6 +3775,11 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob buildPar result.endpoint_ = endpoint_; result.state_ = state_; result.scheduleState_ = scheduleState_; + if (latestMonitoringPipelineMetadataBuilder_ == null) { + result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadata_; + } else { + result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadataBuilder_.build(); + } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelDeploymentMonitoringObjectiveConfigs_ = @@ -2685,6 +3932,9 @@ public Builder mergeFrom( if (other.scheduleState_ != 0) { setScheduleStateValue(other.getScheduleStateValue()); } + if (other.hasLatestMonitoringPipelineMetadata()) { + mergeLatestMonitoringPipelineMetadata(other.getLatestMonitoringPipelineMetadata()); + } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { if (!other.modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { if (modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { @@ -3400,6 +4650,239 @@ public Builder clearScheduleState() { return this; } + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + latestMonitoringPipelineMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder> + latestMonitoringPipelineMetadataBuilder_; + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestMonitoringPipelineMetadata field is set. + */ + public boolean hasLatestMonitoringPipelineMetadata() { + return latestMonitoringPipelineMetadataBuilder_ != null + || latestMonitoringPipelineMetadata_ != null; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestMonitoringPipelineMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + getLatestMonitoringPipelineMetadata() { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; + } else { + return latestMonitoringPipelineMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestMonitoringPipelineMetadata( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + value) { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestMonitoringPipelineMetadata_ = value; + onChanged(); + } else { + latestMonitoringPipelineMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestMonitoringPipelineMetadata( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder + builderForValue) { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadata_ = builderForValue.build(); + onChanged(); + } else { + latestMonitoringPipelineMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLatestMonitoringPipelineMetadata( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + value) { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + if (latestMonitoringPipelineMetadata_ != null) { + latestMonitoringPipelineMetadata_ = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.newBuilder(latestMonitoringPipelineMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + latestMonitoringPipelineMetadata_ = value; + } + onChanged(); + } else { + latestMonitoringPipelineMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLatestMonitoringPipelineMetadata() { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadata_ = null; + onChanged(); + } else { + latestMonitoringPipelineMetadata_ = null; + latestMonitoringPipelineMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder + getLatestMonitoringPipelineMetadataBuilder() { + + onChanged(); + return getLatestMonitoringPipelineMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder + getLatestMonitoringPipelineMetadataOrBuilder() { + if (latestMonitoringPipelineMetadataBuilder_ != null) { + return latestMonitoringPipelineMetadataBuilder_.getMessageOrBuilder(); + } else { + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; + } + } + /** + * + * + *
+     * Output only. Latest triggered monitoring pipeline metadata.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder> + getLatestMonitoringPipelineMetadataFieldBuilder() { + if (latestMonitoringPipelineMetadataBuilder_ == null) { + latestMonitoringPipelineMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder>( + getLatestMonitoringPipelineMetadata(), getParentForChildren(), isClean()); + latestMonitoringPipelineMetadata_ = null; + } + return latestMonitoringPipelineMetadataBuilder_; + } + private java.util.List< com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); @@ -5698,7 +7181,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -5744,7 +7227,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -5766,7 +7249,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -5795,7 +7278,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -5821,11 +7304,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java index 5f38b997a..bba0f8a9e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java @@ -177,6 +177,50 @@ public interface ModelDeploymentMonitoringJobOrBuilder com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState getScheduleState(); + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestMonitoringPipelineMetadata field is set. + */ + boolean hasLatestMonitoringPipelineMetadata(); + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestMonitoringPipelineMetadata. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + getLatestMonitoringPipelineMetadata(); + /** + * + * + *
+   * Output only. Latest triggered monitoring pipeline metadata.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadataOrBuilder + getLatestMonitoringPipelineMetadataOrBuilder(); + /** * * @@ -684,7 +728,12 @@ com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable getBi * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java index 9a384e576..99fc3ca85 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java @@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -66,115 +70,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\nEgoogle/cloud/aiplatform/v1beta1/model_" + "deployment_monitoring_job.proto\022\037google." - + "cloud.aiplatform.v1beta1\032\034google/api/ann" - + "otations.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\0325goog" - + "le/cloud/aiplatform/v1beta1/encryption_s" - + "pec.proto\032>google/cloud/aiplatform/v1bet" - + "a1/feature_monitoring_stats.proto\032(googl" - + "e/cloud/aiplatform/v1beta1/io.proto\032/goo" - + "gle/cloud/aiplatform/v1beta1/job_state.p" - + "roto\0326google/cloud/aiplatform/v1beta1/mo" - + "del_monitoring.proto\032\036google/protobuf/du" - + "ration.proto\032\034google/protobuf/struct.pro" - + "to\032\037google/protobuf/timestamp.proto\032\027goo" - + "gle/rpc/status.proto\"\334\016\n\034ModelDeployment" - + "MonitoringJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014disp" - + "lay_name\030\002 \001(\tB\003\340A\002\022<\n\010endpoint\030\003 \001(\tB*\340" - + "A\002\372A$\n\"aiplatform.googleapis.com/Endpoin" - + "t\022=\n\005state\030\004 \001(\0162).google.cloud.aiplatfo" - + "rm.v1beta1.JobStateB\003\340A\003\022r\n\016schedule_sta" - + "te\030\005 \001(\0162U.google.cloud.aiplatform.v1bet" - + "a1.ModelDeploymentMonitoringJob.Monitori" - + "ngScheduleStateB\003\340A\003\022\205\001\n-model_deploymen" - + "t_monitoring_objective_configs\030\006 \003(\0132I.g" + + "cloud.aiplatform.v1beta1\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\0325google/cloud/aiplatform/v1beta1/en" + + "cryption_spec.proto\032>google/cloud/aiplat" + + "form/v1beta1/feature_monitoring_stats.pr" + + "oto\032(google/cloud/aiplatform/v1beta1/io." + + "proto\032/google/cloud/aiplatform/v1beta1/j" + + "ob_state.proto\0326google/cloud/aiplatform/" + + "v1beta1/model_monitoring.proto\032\036google/p" + + "rotobuf/duration.proto\032\034google/protobuf/" + + "struct.proto\032\037google/protobuf/timestamp." + + "proto\032\027google/rpc/status.proto\"\345\020\n\034Model" + + "DeploymentMonitoringJob\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022<\n\010endpoin" + + "t\030\003 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.c" + + "om/Endpoint\022=\n\005state\030\004 \001(\0162).google.clou" + + "d.aiplatform.v1beta1.JobStateB\003\340A\003\022r\n\016sc" + + "hedule_state\030\005 \001(\0162U.google.cloud.aiplat" + + "form.v1beta1.ModelDeploymentMonitoringJo" + + "b.MonitoringScheduleStateB\003\340A\003\022\220\001\n#lates" + + "t_monitoring_pipeline_metadata\030\031 \001(\0132^.g" + "oogle.cloud.aiplatform.v1beta1.ModelDepl" - + "oymentMonitoringObjectiveConfigB\003\340A\002\022\202\001\n" - + "+model_deployment_monitoring_schedule_co" - + "nfig\030\007 \001(\0132H.google.cloud.aiplatform.v1b" - + "eta1.ModelDeploymentMonitoringScheduleCo" - + "nfigB\003\340A\002\022Y\n\031logging_sampling_strategy\030\010" - + " \001(\01321.google.cloud.aiplatform.v1beta1.S" - + "amplingStrategyB\003\340A\002\022b\n\035model_monitoring" - + "_alert_config\030\017 \001(\0132;.google.cloud.aipla" - + "tform.v1beta1.ModelMonitoringAlertConfig" - + "\022#\n\033predict_instance_schema_uri\030\t \001(\t\0227\n" - + "\027sample_predict_instance\030\023 \001(\0132\026.google." - + "protobuf.Value\022$\n\034analysis_instance_sche" - + "ma_uri\030\020 \001(\t\022e\n\017bigquery_tables\030\n \003(\0132G." - + "google.cloud.aiplatform.v1beta1.ModelDep" - + "loymentMonitoringBigQueryTableB\003\340A\003\022*\n\007l" - + "og_ttl\030\021 \001(\0132\031.google.protobuf.Duration\022" - + "Y\n\006labels\030\013 \003(\0132I.google.cloud.aiplatfor" - + "m.v1beta1.ModelDeploymentMonitoringJob.L" - + "abelsEntry\0224\n\013create_time\030\014 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022;" - + "\n\022next_schedule_time\030\016 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022W\n\036stats_anomalies_b" - + "ase_directory\030\024 \001(\0132/.google.cloud.aipla" - + "tform.v1beta1.GcsDestination\022H\n\017encrypti" - + "on_spec\030\025 \001(\0132/.google.cloud.aiplatform." - + "v1beta1.EncryptionSpec\022\'\n\037enable_monitor" - + "ing_pipeline_logs\030\026 \001(\010\022&\n\005error\030\027 \001(\0132\022" - + ".google.rpc.StatusB\003\340A\003\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"k\n\027Monito" - + "ringScheduleState\022)\n%MONITORING_SCHEDULE" - + "_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007OFF" - + "LINE\020\002\022\013\n\007RUNNING\020\003:\245\001\352A\241\001\n6aiplatform.g" - + "oogleapis.com/ModelDeploymentMonitoringJ" - + "ob\022gprojects/{project}/locations/{locati" - + "on}/modelDeploymentMonitoringJobs/{model" - + "_deployment_monitoring_job}\"\222\003\n&ModelDep" - + "loymentMonitoringBigQueryTable\022e\n\nlog_so" - + "urce\030\001 \001(\0162Q.google.cloud.aiplatform.v1b" - + "eta1.ModelDeploymentMonitoringBigQueryTa" - + "ble.LogSource\022a\n\010log_type\030\002 \001(\0162O.google" - + ".cloud.aiplatform.v1beta1.ModelDeploymen" - + "tMonitoringBigQueryTable.LogType\022\033\n\023bigq" - + "uery_table_path\030\003 \001(\t\"B\n\tLogSource\022\032\n\026LO" - + "G_SOURCE_UNSPECIFIED\020\000\022\014\n\010TRAINING\020\001\022\013\n\007" - + "SERVING\020\002\"=\n\007LogType\022\030\n\024LOG_TYPE_UNSPECI" - + "FIED\020\000\022\013\n\007PREDICT\020\001\022\013\n\007EXPLAIN\020\002\"\240\001\n(Mod" - + "elDeploymentMonitoringObjectiveConfig\022\031\n" - + "\021deployed_model_id\030\001 \001(\t\022Y\n\020objective_co" - + "nfig\030\002 \001(\0132?.google.cloud.aiplatform.v1b" - + "eta1.ModelMonitoringObjectiveConfig\"c\n\'M" - + "odelDeploymentMonitoringScheduleConfig\0228" - + "\n\020monitor_interval\030\001 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\002\"\305\004\n\035ModelMonitoringStat" - + "sAnomalies\022Z\n\tobjective\030\001 \001(\0162G.google.c" - + "loud.aiplatform.v1beta1.ModelDeploymentM" - + "onitoringObjectiveType\022\031\n\021deployed_model" - + "_id\030\002 \001(\t\022\025\n\ranomaly_count\030\003 \001(\005\022s\n\rfeat" - + "ure_stats\030\004 \003(\0132\\.google.cloud.aiplatfor" - + "m.v1beta1.ModelMonitoringStatsAnomalies." - + "FeatureHistoricStatsAnomalies\032\240\002\n\035Featur" - + "eHistoricStatsAnomalies\022\034\n\024feature_displ" - + "ay_name\030\001 \001(\t\022C\n\tthreshold\030\003 \001(\01320.googl" - + "e.cloud.aiplatform.v1beta1.ThresholdConf" - + "ig\022L\n\016training_stats\030\004 \001(\01324.google.clou" - + "d.aiplatform.v1beta1.FeatureStatsAnomaly" - + "\022N\n\020prediction_stats\030\005 \003(\01324.google.clou" - + "d.aiplatform.v1beta1.FeatureStatsAnomaly" - + "*\316\001\n&ModelDeploymentMonitoringObjectiveT" - + "ype\022:\n6MODEL_DEPLOYMENT_MONITORING_OBJEC" - + "TIVE_TYPE_UNSPECIFIED\020\000\022\024\n\020RAW_FEATURE_S" - + "KEW\020\001\022\025\n\021RAW_FEATURE_DRIFT\020\002\022\034\n\030FEATURE_" - + "ATTRIBUTION_SKEW\020\003\022\035\n\031FEATURE_ATTRIBUTIO" - + "N_DRIFT\020\004B\376\001\n#com.google.cloud.aiplatfor" - + "m.v1beta1B!ModelDeploymentMonitoringJobP" - + "rotoP\001ZIgoogle.golang.org/genproto/googl" - + "eapis/cloud/aiplatform/v1beta1;aiplatfor" - + "m\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Go" - + "ogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::" - + "Cloud::AIPlatform::V1beta1b\006proto3" + + "oymentMonitoringJob.LatestMonitoringPipe" + + "lineMetadataB\003\340A\003\022\205\001\n-model_deployment_m" + + "onitoring_objective_configs\030\006 \003(\0132I.goog" + + "le.cloud.aiplatform.v1beta1.ModelDeploym" + + "entMonitoringObjectiveConfigB\003\340A\002\022\202\001\n+mo" + + "del_deployment_monitoring_schedule_confi" + + "g\030\007 \001(\0132H.google.cloud.aiplatform.v1beta" + + "1.ModelDeploymentMonitoringScheduleConfi" + + "gB\003\340A\002\022Y\n\031logging_sampling_strategy\030\010 \001(" + + "\01321.google.cloud.aiplatform.v1beta1.Samp" + + "lingStrategyB\003\340A\002\022b\n\035model_monitoring_al" + + "ert_config\030\017 \001(\0132;.google.cloud.aiplatfo" + + "rm.v1beta1.ModelMonitoringAlertConfig\022#\n" + + "\033predict_instance_schema_uri\030\t \001(\t\0227\n\027sa" + + "mple_predict_instance\030\023 \001(\0132\026.google.pro" + + "tobuf.Value\022$\n\034analysis_instance_schema_" + + "uri\030\020 \001(\t\022e\n\017bigquery_tables\030\n \003(\0132G.goo" + + "gle.cloud.aiplatform.v1beta1.ModelDeploy" + + "mentMonitoringBigQueryTableB\003\340A\003\022*\n\007log_" + + "ttl\030\021 \001(\0132\031.google.protobuf.Duration\022Y\n\006" + + "labels\030\013 \003(\0132I.google.cloud.aiplatform.v" + + "1beta1.ModelDeploymentMonitoringJob.Labe" + + "lsEntry\0224\n\013create_time\030\014 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\r \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022;\n\022n" + + "ext_schedule_time\030\016 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022W\n\036stats_anomalies_base" + + "_directory\030\024 \001(\0132/.google.cloud.aiplatfo" + + "rm.v1beta1.GcsDestination\022H\n\017encryption_" + + "spec\030\025 \001(\0132/.google.cloud.aiplatform.v1b" + + "eta1.EncryptionSpec\022\'\n\037enable_monitoring" + + "_pipeline_logs\030\026 \001(\010\022&\n\005error\030\027 \001(\0132\022.go" + + "ogle.rpc.StatusB\003\340A\003\032t\n LatestMonitoring" + + "PipelineMetadata\022,\n\010run_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\"\n\006status\030\002 \001(\0132\022" + + ".google.rpc.Status\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"k\n\027MonitoringS" + + "cheduleState\022)\n%MONITORING_SCHEDULE_STAT" + + "E_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007OFFLINE\020" + + "\002\022\013\n\007RUNNING\020\003:\245\001\352A\241\001\n6aiplatform.google" + + "apis.com/ModelDeploymentMonitoringJob\022gp" + + "rojects/{project}/locations/{location}/m" + + "odelDeploymentMonitoringJobs/{model_depl" + + "oyment_monitoring_job}\"\222\003\n&ModelDeployme" + + "ntMonitoringBigQueryTable\022e\n\nlog_source\030" + + "\001 \001(\0162Q.google.cloud.aiplatform.v1beta1." + + "ModelDeploymentMonitoringBigQueryTable.L" + + "ogSource\022a\n\010log_type\030\002 \001(\0162O.google.clou" + + "d.aiplatform.v1beta1.ModelDeploymentMoni" + + "toringBigQueryTable.LogType\022\033\n\023bigquery_" + + "table_path\030\003 \001(\t\"B\n\tLogSource\022\032\n\026LOG_SOU" + + "RCE_UNSPECIFIED\020\000\022\014\n\010TRAINING\020\001\022\013\n\007SERVI" + + "NG\020\002\"=\n\007LogType\022\030\n\024LOG_TYPE_UNSPECIFIED\020" + + "\000\022\013\n\007PREDICT\020\001\022\013\n\007EXPLAIN\020\002\"\240\001\n(ModelDep" + + "loymentMonitoringObjectiveConfig\022\031\n\021depl" + + "oyed_model_id\030\001 \001(\t\022Y\n\020objective_config\030" + + "\002 \001(\0132?.google.cloud.aiplatform.v1beta1." + + "ModelMonitoringObjectiveConfig\"c\n\'ModelD" + + "eploymentMonitoringScheduleConfig\0228\n\020mon" + + "itor_interval\030\001 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\002\"\305\004\n\035ModelMonitoringStatsAnom" + + "alies\022Z\n\tobjective\030\001 \001(\0162G.google.cloud." + + "aiplatform.v1beta1.ModelDeploymentMonito" + + "ringObjectiveType\022\031\n\021deployed_model_id\030\002" + + " \001(\t\022\025\n\ranomaly_count\030\003 \001(\005\022s\n\rfeature_s" + + "tats\030\004 \003(\0132\\.google.cloud.aiplatform.v1b" + + "eta1.ModelMonitoringStatsAnomalies.Featu" + + "reHistoricStatsAnomalies\032\240\002\n\035FeatureHist" + + "oricStatsAnomalies\022\034\n\024feature_display_na" + + "me\030\001 \001(\t\022C\n\tthreshold\030\003 \001(\01320.google.clo" + + "ud.aiplatform.v1beta1.ThresholdConfig\022L\n" + + "\016training_stats\030\004 \001(\01324.google.cloud.aip" + + "latform.v1beta1.FeatureStatsAnomaly\022N\n\020p" + + "rediction_stats\030\005 \003(\01324.google.cloud.aip" + + "latform.v1beta1.FeatureStatsAnomaly*\316\001\n&" + + "ModelDeploymentMonitoringObjectiveType\022:" + + "\n6MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_" + + "TYPE_UNSPECIFIED\020\000\022\024\n\020RAW_FEATURE_SKEW\020\001" + + "\022\025\n\021RAW_FEATURE_DRIFT\020\002\022\034\n\030FEATURE_ATTRI" + + "BUTION_SKEW\020\003\022\035\n\031FEATURE_ATTRIBUTION_DRI" + + "FT\020\004B\376\001\n#com.google.cloud.aiplatform.v1b" + + "eta1B!ModelDeploymentMonitoringJobProtoP" + + "\001ZIgoogle.golang.org/genproto/googleapis" + + "/cloud/aiplatform/v1beta1;aiplatform\252\002\037G" + + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" + + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" + + "::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), @@ -198,6 +207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "State", "ScheduleState", + "LatestMonitoringPipelineMetadata", "ModelDeploymentMonitoringObjectiveConfigs", "ModelDeploymentMonitoringScheduleConfig", "LoggingSamplingStrategy", @@ -216,10 +226,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableMonitoringPipelineLogs", "Error", }); - internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata_descriptor, + new java.lang.String[] { + "RunTime", "Status", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_descriptor + .getNestedTypes() + .get(1); internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor, @@ -275,7 +295,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java index c4271b9b9..21b6f3325 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java @@ -109,6 +109,8 @@ private ModelDeploymentMonitoringObjectiveConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java index bacabc382..b7b309020 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java @@ -96,6 +96,8 @@ private ModelDeploymentMonitoringScheduleConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java index 9987ed936..2fad6e167 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java @@ -172,6 +172,8 @@ private ModelEvaluation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -356,6 +358,8 @@ private ModelEvaluationExplanationSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java index 872ec9a23..17073cb6b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java @@ -46,40 +46,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/model_" + "evaluation.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1\032\034google/api/annotations.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\0321google/cloud/aiplat" - + "form/v1beta1/explanation.proto\032\034google/p" - + "rotobuf/struct.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\375\004\n\017ModelEvaluation\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\032\n\022metrics_schema_uri\030\002 \001(\t" - + "\022\'\n\007metrics\030\003 \001(\0132\026.google.protobuf.Valu" - + "e\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\030\n\020slice_dimensions\030\005 \003(" - + "\t\022L\n\021model_explanation\030\010 \001(\01321.google.cl" - + "oud.aiplatform.v1beta1.ModelExplanation\022" - + "j\n\021explanation_specs\030\t \003(\0132O.google.clou" - + "d.aiplatform.v1beta1.ModelEvaluation.Mod" - + "elEvaluationExplanationSpec\032\206\001\n\036ModelEva" - + "luationExplanationSpec\022\030\n\020explanation_ty" - + "pe\030\001 \001(\t\022J\n\020explanation_spec\030\002 \001(\01320.goo" - + "gle.cloud.aiplatform.v1beta1.Explanation" - + "Spec:\177\352A|\n)aiplatform.googleapis.com/Mod" - + "elEvaluation\022Oprojects/{project}/locatio" - + "ns/{location}/models/{model}/evaluations" - + "/{evaluation}B\361\001\n#com.google.cloud.aipla" - + "tform.v1beta1B\024ModelEvaluationProtoP\001ZIg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1beta1;aiplatform\252\002\037Googl" - + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" - + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" - + "Platform::V1beta1b\006proto3" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\0321google/cl" + + "oud/aiplatform/v1beta1/explanation.proto" + + "\032\034google/protobuf/struct.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\375\004\n\017ModelEvaluat" + + "ion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\022metrics_schema" + + "_uri\030\002 \001(\t\022\'\n\007metrics\030\003 \001(\0132\026.google.pro" + + "tobuf.Value\0224\n\013create_time\030\004 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022\030\n\020slice_dimen" + + "sions\030\005 \003(\t\022L\n\021model_explanation\030\010 \001(\01321" + + ".google.cloud.aiplatform.v1beta1.ModelEx" + + "planation\022j\n\021explanation_specs\030\t \003(\0132O.g" + + "oogle.cloud.aiplatform.v1beta1.ModelEval" + + "uation.ModelEvaluationExplanationSpec\032\206\001" + + "\n\036ModelEvaluationExplanationSpec\022\030\n\020expl" + + "anation_type\030\001 \001(\t\022J\n\020explanation_spec\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.E" + + "xplanationSpec:\177\352A|\n)aiplatform.googleap" + + "is.com/ModelEvaluation\022Oprojects/{projec" + + "t}/locations/{location}/models/{model}/e" + + "valuations/{evaluation}B\361\001\n#com.google.c" + + "loud.aiplatform.v1beta1B\024ModelEvaluation" + + "ProtoP\001ZIgoogle.golang.org/genproto/goog" + + "leapis/cloud/aiplatform/v1beta1;aiplatfo" + + "rm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" + + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" + + ":Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(), @@ -116,7 +114,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java index bafcd42e0..2b0dc2b30 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java @@ -144,6 +144,8 @@ private ModelEvaluationSlice( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -308,6 +310,8 @@ private Slice( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java index 4706957bb..d627708c0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java @@ -46,35 +46,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n - * Next ID: 6 + * Next ID: 8 *
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} @@ -160,6 +160,8 @@ private ModelMonitoringObjectiveConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -550,6 +552,8 @@ private TrainingDataset( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1729,8 +1733,9 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource valu } else { if (dataSourceCase_ == 4) { gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); } - gcsSourceBuilder_.setMessage(value); } dataSourceCase_ = 4; return this; @@ -1948,8 +1953,9 @@ public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1beta1.BigQueryS } else { if (dataSourceCase_ == 5) { bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); } - bigquerySourceBuilder_.setMessage(value); } dataSourceCase_ = 5; return this; @@ -2637,8 +2643,12 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); /** * * @@ -2716,8 +2726,12 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); /** * * @@ -2841,6 +2855,8 @@ private TrainingPredictionSkewDetectionConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2930,7 +2946,7 @@ public int getSkewThresholdsCount() { @java.lang.Override public boolean containsSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetSkewThresholds().getMap().containsKey(key); } @@ -2978,7 +2994,7 @@ public boolean containsSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -3002,7 +3018,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDe public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -3062,7 +3078,7 @@ public int getAttributionScoreSkewThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreSkewThresholds().getMap().containsKey(key); } @@ -3110,7 +3126,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3133,7 +3149,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3641,7 +3657,7 @@ public int getSkewThresholdsCount() { @java.lang.Override public boolean containsSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetSkewThresholds().getMap().containsKey(key); } @@ -3689,7 +3705,7 @@ public boolean containsSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -3713,7 +3729,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDe public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetSkewThresholds().getMap(); @@ -3743,7 +3759,7 @@ public Builder clearSkewThresholds() { */ public Builder removeSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableSkewThresholds().getMutableMap().remove(key); return this; @@ -3771,11 +3787,12 @@ public Builder removeSkewThresholds(java.lang.String key) { public Builder putSkewThresholds( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableSkewThresholds().getMutableMap().put(key, value); return this; } @@ -3849,7 +3866,7 @@ public int getAttributionScoreSkewThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreSkewThresholds().getMap().containsKey(key); } @@ -3897,7 +3914,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3920,7 +3937,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreSkewThresholds().getMap(); @@ -3949,7 +3966,7 @@ public Builder clearAttributionScoreSkewThresholds() { */ public Builder removeAttributionScoreSkewThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAttributionScoreSkewThresholds().getMutableMap().remove(key); return this; @@ -3976,11 +3993,12 @@ public Builder removeAttributionScoreSkewThresholds(java.lang.String key) { public Builder putAttributionScoreSkewThresholds( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAttributionScoreSkewThresholds().getMutableMap().put(key, value); return this; } @@ -4133,8 +4151,12 @@ public interface PredictionDriftDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); /** * * @@ -4208,8 +4230,12 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); /** * * @@ -4331,6 +4357,8 @@ private PredictionDriftDetectionConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -4420,7 +4448,7 @@ public int getDriftThresholdsCount() { @java.lang.Override public boolean containsDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDriftThresholds().getMap().containsKey(key); } @@ -4468,7 +4496,7 @@ public boolean containsDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -4492,7 +4520,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrD public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -4551,7 +4579,7 @@ public int getAttributionScoreDriftThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreDriftThresholds().getMap().containsKey(key); } @@ -4597,7 +4625,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -4619,7 +4647,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -5126,7 +5154,7 @@ public int getDriftThresholdsCount() { @java.lang.Override public boolean containsDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetDriftThresholds().getMap().containsKey(key); } @@ -5174,7 +5202,7 @@ public boolean containsDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -5198,7 +5226,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrD public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetDriftThresholds().getMap(); @@ -5228,7 +5256,7 @@ public Builder clearDriftThresholds() { */ public Builder removeDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableDriftThresholds().getMutableMap().remove(key); return this; @@ -5256,11 +5284,12 @@ public Builder removeDriftThresholds(java.lang.String key) { public Builder putDriftThresholds( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableDriftThresholds().getMutableMap().put(key, value); return this; } @@ -5333,7 +5362,7 @@ public int getAttributionScoreDriftThresholdsCount() { @java.lang.Override public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributionScoreDriftThresholds().getMap().containsKey(key); } @@ -5379,7 +5408,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -5401,7 +5430,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributionScoreDriftThresholds().getMap(); @@ -5429,7 +5458,7 @@ public Builder clearAttributionScoreDriftThresholds() { */ public Builder removeAttributionScoreDriftThresholds(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAttributionScoreDriftThresholds().getMutableMap().remove(key); return this; @@ -5455,11 +5484,12 @@ public Builder removeAttributionScoreDriftThresholds(java.lang.String key) { public Builder putAttributionScoreDriftThresholds( java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAttributionScoreDriftThresholds().getMutableMap().put(key, value); return this; } @@ -5695,6 +5725,8 @@ private ExplanationConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -5942,6 +5974,8 @@ private ExplanationBaseline( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6920,8 +6954,9 @@ public Builder mergeGcs(com.google.cloud.aiplatform.v1beta1.GcsDestination value } else { if (destinationCase_ == 2) { gcsBuilder_.mergeFrom(value); + } else { + gcsBuilder_.setMessage(value); } - gcsBuilder_.setMessage(value); } destinationCase_ = 2; return this; @@ -7133,8 +7168,9 @@ public Builder mergeBigquery( } else { if (destinationCase_ == 3) { bigqueryBuilder_.mergeFrom(value); + } else { + bigqueryBuilder_.setMessage(value); } - bigqueryBuilder_.setMessage(value); } destinationCase_ = 3; return this; @@ -8693,7 +8729,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Next ID: 6
+   * Next ID: 8
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java index ac0e7d32b..e9218554a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java @@ -98,100 +98,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/model_" + "monitoring.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1\032\034google/api/annotations.proto\032" - + "\031google/api/resource.proto\032(google/cloud" - + "/aiplatform/v1beta1/io.proto\"\205\025\n\036ModelMo" - + "nitoringObjectiveConfig\022i\n\020training_data" - + "set\030\001 \001(\0132O.google.cloud.aiplatform.v1be" - + "ta1.ModelMonitoringObjectiveConfig.Train" - + "ingDataset\022\230\001\n)training_prediction_skew_" - + "detection_config\030\002 \001(\0132e.google.cloud.ai" - + "platform.v1beta1.ModelMonitoringObjectiv" - + "eConfig.TrainingPredictionSkewDetectionC" - + "onfig\022\211\001\n!prediction_drift_detection_con" - + "fig\030\003 \001(\0132^.google.cloud.aiplatform.v1be" - + "ta1.ModelMonitoringObjectiveConfig.Predi" - + "ctionDriftDetectionConfig\022m\n\022explanation" - + "_config\030\005 \001(\0132Q.google.cloud.aiplatform." - + "v1beta1.ModelMonitoringObjectiveConfig.E" - + "xplanationConfig\032\352\002\n\017TrainingDataset\0229\n\007" - + "dataset\030\003 \001(\tB&\372A#\n!aiplatform.googleapi" - + "s.com/DatasetH\000\022@\n\ngcs_source\030\004 \001(\0132*.go" - + "ogle.cloud.aiplatform.v1beta1.GcsSourceH" - + "\000\022J\n\017bigquery_source\030\005 \001(\0132/.google.clou" - + "d.aiplatform.v1beta1.BigQuerySourceH\000\022\023\n" - + "\013data_format\030\002 \001(\t\022\024\n\014target_field\030\006 \001(\t" - + "\022T\n\031logging_sampling_strategy\030\007 \001(\01321.go" - + "ogle.cloud.aiplatform.v1beta1.SamplingSt" - + "rategyB\r\n\013data_source\032\326\004\n%TrainingPredic" - + "tionSkewDetectionConfig\022\222\001\n\017skew_thresho" - + "lds\030\001 \003(\0132y.google.cloud.aiplatform.v1be" - + "ta1.ModelMonitoringObjectiveConfig.Train" - + "ingPredictionSkewDetectionConfig.SkewThr" - + "esholdsEntry\022\265\001\n!attribution_score_skew_" - + "thresholds\030\002 \003(\0132\211\001.google.cloud.aiplatf" + + "m.v1beta1\032\031google/api/resource.proto\032(go" + + "ogle/cloud/aiplatform/v1beta1/io.proto\"\205" + + "\025\n\036ModelMonitoringObjectiveConfig\022i\n\020tra" + + "ining_dataset\030\001 \001(\0132O.google.cloud.aipla" + + "tform.v1beta1.ModelMonitoringObjectiveCo" + + "nfig.TrainingDataset\022\230\001\n)training_predic" + + "tion_skew_detection_config\030\002 \001(\0132e.googl" + + "e.cloud.aiplatform.v1beta1.ModelMonitori" + + "ngObjectiveConfig.TrainingPredictionSkew" + + "DetectionConfig\022\211\001\n!prediction_drift_det" + + "ection_config\030\003 \001(\0132^.google.cloud.aipla" + + "tform.v1beta1.ModelMonitoringObjectiveCo" + + "nfig.PredictionDriftDetectionConfig\022m\n\022e" + + "xplanation_config\030\005 \001(\0132Q.google.cloud.a" + + "iplatform.v1beta1.ModelMonitoringObjecti" + + "veConfig.ExplanationConfig\032\352\002\n\017TrainingD" + + "ataset\0229\n\007dataset\030\003 \001(\tB&\372A#\n!aiplatform" + + ".googleapis.com/DatasetH\000\022@\n\ngcs_source\030" + + "\004 \001(\0132*.google.cloud.aiplatform.v1beta1." + + "GcsSourceH\000\022J\n\017bigquery_source\030\005 \001(\0132/.g" + + "oogle.cloud.aiplatform.v1beta1.BigQueryS" + + "ourceH\000\022\023\n\013data_format\030\002 \001(\t\022\024\n\014target_f" + + "ield\030\006 \001(\t\022T\n\031logging_sampling_strategy\030" + + "\007 \001(\01321.google.cloud.aiplatform.v1beta1." + + "SamplingStrategyB\r\n\013data_source\032\326\004\n%Trai" + + "ningPredictionSkewDetectionConfig\022\222\001\n\017sk" + + "ew_thresholds\030\001 \003(\0132y.google.cloud.aipla" + + "tform.v1beta1.ModelMonitoringObjectiveCo" + + "nfig.TrainingPredictionSkewDetectionConf" + + "ig.SkewThresholdsEntry\022\265\001\n!attribution_s" + + "core_skew_thresholds\030\002 \003(\0132\211\001.google.clo" + + "ud.aiplatform.v1beta1.ModelMonitoringObj" + + "ectiveConfig.TrainingPredictionSkewDetec" + + "tionConfig.AttributionScoreSkewThreshold" + + "sEntry\032g\n\023SkewThresholdsEntry\022\013\n\003key\030\001 \001" + + "(\t\022?\n\005value\030\002 \001(\01320.google.cloud.aiplatf" + + "orm.v1beta1.ThresholdConfig:\0028\001\032w\n#Attri" + + "butionScoreSkewThresholdsEntry\022\013\n\003key\030\001 " + + "\001(\t\022?\n\005value\030\002 \001(\01320.google.cloud.aiplat" + + "form.v1beta1.ThresholdConfig:\0028\001\032\307\004\n\036Pre" + + "dictionDriftDetectionConfig\022\215\001\n\020drift_th" + + "resholds\030\001 \003(\0132s.google.cloud.aiplatform" + + ".v1beta1.ModelMonitoringObjectiveConfig." + + "PredictionDriftDetectionConfig.DriftThre" + + "sholdsEntry\022\260\001\n\"attribution_score_drift_" + + "thresholds\030\002 \003(\0132\203\001.google.cloud.aiplatf" + "orm.v1beta1.ModelMonitoringObjectiveConf" - + "ig.TrainingPredictionSkewDetectionConfig" - + ".AttributionScoreSkewThresholdsEntry\032g\n\023" - + "SkewThresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005valu" - + "e\030\002 \001(\01320.google.cloud.aiplatform.v1beta" - + "1.ThresholdConfig:\0028\001\032w\n#AttributionScor" - + "eSkewThresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005val" - + "ue\030\002 \001(\01320.google.cloud.aiplatform.v1bet" - + "a1.ThresholdConfig:\0028\001\032\307\004\n\036PredictionDri" - + "ftDetectionConfig\022\215\001\n\020drift_thresholds\030\001" - + " \003(\0132s.google.cloud.aiplatform.v1beta1.M" - + "odelMonitoringObjectiveConfig.Prediction" - + "DriftDetectionConfig.DriftThresholdsEntr" - + "y\022\260\001\n\"attribution_score_drift_thresholds" - + "\030\002 \003(\0132\203\001.google.cloud.aiplatform.v1beta" - + "1.ModelMonitoringObjectiveConfig.Predict" - + "ionDriftDetectionConfig.AttributionScore" - + "DriftThresholdsEntry\032h\n\024DriftThresholdsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.googl" - + "e.cloud.aiplatform.v1beta1.ThresholdConf" - + "ig:\0028\001\032x\n$AttributionScoreDriftThreshold" - + "sEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.goo" - + "gle.cloud.aiplatform.v1beta1.ThresholdCo" - + "nfig:\0028\001\032\321\004\n\021ExplanationConfig\022!\n\031enable" - + "_feature_attributes\030\001 \001(\010\022\203\001\n\024explanatio" - + "n_baseline\030\002 \001(\0132e.google.cloud.aiplatfo" - + "rm.v1beta1.ModelMonitoringObjectiveConfi" - + "g.ExplanationConfig.ExplanationBaseline\032" - + "\222\003\n\023ExplanationBaseline\022>\n\003gcs\030\002 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1beta1.GcsDestin" - + "ationH\000\022H\n\010bigquery\030\003 \001(\01324.google.cloud" - + ".aiplatform.v1beta1.BigQueryDestinationH" - + "\000\022\221\001\n\021prediction_format\030\001 \001(\0162v.google.c" - + "loud.aiplatform.v1beta1.ModelMonitoringO" - + "bjectiveConfig.ExplanationConfig.Explana" - + "tionBaseline.PredictionFormat\"N\n\020Predict" - + "ionFormat\022!\n\035PREDICTION_FORMAT_UNSPECIFI" - + "ED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIGQUERY\020\003B\r\n\013destina" - + "tion\"\322\001\n\032ModelMonitoringAlertConfig\022j\n\022e" - + "mail_alert_config\030\001 \001(\0132L.google.cloud.a" - + "iplatform.v1beta1.ModelMonitoringAlertCo" - + "nfig.EmailAlertConfigH\000\022\026\n\016enable_loggin" - + "g\030\002 \001(\010\032\'\n\020EmailAlertConfig\022\023\n\013user_emai" - + "ls\030\001 \003(\tB\007\n\005alert\"/\n\017ThresholdConfig\022\017\n\005" - + "value\030\001 \001(\001H\000B\013\n\tthreshold\"\241\001\n\020SamplingS" - + "trategy\022b\n\024random_sample_config\030\001 \001(\0132D." - + "google.cloud.aiplatform.v1beta1.Sampling" - + "Strategy.RandomSampleConfig\032)\n\022RandomSam" - + "pleConfig\022\023\n\013sample_rate\030\001 \001(\001B\361\001\n#com.g" - + "oogle.cloud.aiplatform.v1beta1B\024ModelMon" - + "itoringProtoP\001ZIgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1beta1;a" - + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" - + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" - + "Google::Cloud::AIPlatform::V1beta1b\006prot" - + "o3" + + "ig.PredictionDriftDetectionConfig.Attrib" + + "utionScoreDriftThresholdsEntry\032h\n\024DriftT" + + "hresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" + + "(\01320.google.cloud.aiplatform.v1beta1.Thr" + + "esholdConfig:\0028\001\032x\n$AttributionScoreDrif" + + "tThresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.T" + + "hresholdConfig:\0028\001\032\321\004\n\021ExplanationConfig" + + "\022!\n\031enable_feature_attributes\030\001 \001(\010\022\203\001\n\024" + + "explanation_baseline\030\002 \001(\0132e.google.clou" + + "d.aiplatform.v1beta1.ModelMonitoringObje" + + "ctiveConfig.ExplanationConfig.Explanatio" + + "nBaseline\032\222\003\n\023ExplanationBaseline\022>\n\003gcs" + + "\030\002 \001(\0132/.google.cloud.aiplatform.v1beta1" + + ".GcsDestinationH\000\022H\n\010bigquery\030\003 \001(\01324.go" + + "ogle.cloud.aiplatform.v1beta1.BigQueryDe" + + "stinationH\000\022\221\001\n\021prediction_format\030\001 \001(\0162" + + "v.google.cloud.aiplatform.v1beta1.ModelM" + + "onitoringObjectiveConfig.ExplanationConf" + + "ig.ExplanationBaseline.PredictionFormat\"" + + "N\n\020PredictionFormat\022!\n\035PREDICTION_FORMAT" + + "_UNSPECIFIED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIGQUERY\020\003B" + + "\r\n\013destination\"\322\001\n\032ModelMonitoringAlertC" + + "onfig\022j\n\022email_alert_config\030\001 \001(\0132L.goog" + + "le.cloud.aiplatform.v1beta1.ModelMonitor" + + "ingAlertConfig.EmailAlertConfigH\000\022\026\n\016ena" + + "ble_logging\030\002 \001(\010\032\'\n\020EmailAlertConfig\022\023\n" + + "\013user_emails\030\001 \003(\tB\007\n\005alert\"/\n\017Threshold" + + "Config\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthreshold\"\241\001\n" + + "\020SamplingStrategy\022b\n\024random_sample_confi" + + "g\030\001 \001(\0132D.google.cloud.aiplatform.v1beta" + + "1.SamplingStrategy.RandomSampleConfig\032)\n" + + "\022RandomSampleConfig\022\023\n\013sample_rate\030\001 \001(\001" + + "B\361\001\n#com.google.cloud.aiplatform.v1beta1" + + "B\024ModelMonitoringProtoP\001ZIgoogle.golang." + + "org/genproto/googleapis/cloud/aiplatform" + + "/v1beta1;aiplatform\252\002\037Google.Cloud.AIPla" + + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" + + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), }); @@ -351,7 +349,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java index 85af49374..9adf0f47e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java @@ -119,6 +119,8 @@ private ModelMonitoringStatsAnomalies( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -432,6 +434,8 @@ private FeatureHistoricStatsAnomalies( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 2c4d7c12c..be6ef9ff3 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 @@ -48,6 +48,206 @@ public interface ModelOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionId. + */ + java.lang.String getVersionId(); + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for versionId. + */ + com.google.protobuf.ByteString getVersionIdBytes(); + + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return A list containing the versionAliases. + */ + java.util.List getVersionAliasesList(); + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return The count of versionAliases. + */ + int getVersionAliasesCount(); + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + java.lang.String getVersionAliases(int index); + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + com.google.protobuf.ByteString getVersionAliasesBytes(int index); + + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionCreateTime field is set. + */ + boolean hasVersionCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionCreateTime. + */ + com.google.protobuf.Timestamp getVersionCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionUpdateTime field is set. + */ + boolean hasVersionUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionUpdateTime. + */ + com.google.protobuf.Timestamp getVersionUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder(); + /** * * @@ -102,6 +302,31 @@ public interface ModelOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The versionDescription. + */ + java.lang.String getVersionDescription(); + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The bytes for versionDescription. + */ + com.google.protobuf.ByteString getVersionDescriptionBytes(); + /** * * @@ -1184,7 +1409,12 @@ com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelsO * * map<string, string> labels = 17; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java index e734730a6..0949cc438 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java @@ -61,84 +61,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/aiplatform/v1beta1/model." - + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" - + "google/api/annotations.proto\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\032-google/cloud/aiplatform/v1beta" - + "1/dataset.proto\0328google/cloud/aiplatform" - + "/v1beta1/deployed_model_ref.proto\0325googl" - + "e/cloud/aiplatform/v1beta1/encryption_sp" - + "ec.proto\032-google/cloud/aiplatform/v1beta" - + "1/env_var.proto\0321google/cloud/aiplatform" - + "/v1beta1/explanation.proto\032\034google/proto" - + "buf/struct.proto\032\037google/protobuf/timest" - + "amp.proto\"\321\014\n\005Model\022\014\n\004name\030\001 \001(\t\022\031\n\014dis" - + "play_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(" - + "\t\022J\n\020predict_schemata\030\004 \001(\01320.google.clo" - + "ud.aiplatform.v1beta1.PredictSchemata\022 \n" - + "\023metadata_schema_uri\030\005 \001(\tB\003\340A\005\022-\n\010metad" - + "ata\030\006 \001(\0132\026.google.protobuf.ValueB\003\340A\005\022Z" - + "\n\030supported_export_formats\030\024 \003(\01323.googl" - + "e.cloud.aiplatform.v1beta1.Model.ExportF" - + "ormatB\003\340A\003\022M\n\021training_pipeline\030\007 \001(\tB2\340" - + "A\003\372A,\n*aiplatform.googleapis.com/Trainin" - + "gPipeline\022P\n\016container_spec\030\t \001(\01323.goog" - + "le.cloud.aiplatform.v1beta1.ModelContain" - + "erSpecB\003\340A\004\022\031\n\014artifact_uri\030\032 \001(\tB\003\340A\005\022q" - + "\n$supported_deployment_resources_types\030\n" - + " \003(\0162>.google.cloud.aiplatform.v1beta1.M" - + "odel.DeploymentResourcesTypeB\003\340A\003\022,\n\037sup" - + "ported_input_storage_formats\030\013 \003(\tB\003\340A\003\022" - + "-\n supported_output_storage_formats\030\014 \003(" - + "\tB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\016 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\017de" - + "ployed_models\030\017 \003(\01321.google.cloud.aipla" - + "tform.v1beta1.DeployedModelRefB\003\340A\003\022J\n\020e" - + "xplanation_spec\030\027 \001(\01320.google.cloud.aip" - + "latform.v1beta1.ExplanationSpec\022\014\n\004etag\030" - + "\020 \001(\t\022B\n\006labels\030\021 \003(\01322.google.cloud.aip" - + "latform.v1beta1.Model.LabelsEntry\022H\n\017enc" - + "ryption_spec\030\030 \001(\0132/.google.cloud.aiplat" - + "form.v1beta1.EncryptionSpec\032\332\001\n\014ExportFo" - + "rmat\022\017\n\002id\030\001 \001(\tB\003\340A\003\022g\n\023exportable_cont" - + "ents\030\002 \003(\0162E.google.cloud.aiplatform.v1b" - + "eta1.Model.ExportFormat.ExportableConten" - + "tB\003\340A\003\"P\n\021ExportableContent\022\"\n\036EXPORTABL" - + "E_CONTENT_UNSPECIFIED\020\000\022\014\n\010ARTIFACT\020\001\022\t\n" - + "\005IMAGE\020\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"v\n\027DeploymentResourcesTy" - + "pe\022)\n%DEPLOYMENT_RESOURCES_TYPE_UNSPECIF" - + "IED\020\000\022\027\n\023DEDICATED_RESOURCES\020\001\022\027\n\023AUTOMA" - + "TIC_RESOURCES\020\002:\\\352AY\n\037aiplatform.googlea" - + "pis.com/Model\0226projects/{project}/locati" - + "ons/{location}/models/{model}\"{\n\017Predict" - + "Schemata\022 \n\023instance_schema_uri\030\001 \001(\tB\003\340" - + "A\005\022\"\n\025parameters_schema_uri\030\002 \001(\tB\003\340A\005\022\"" - + "\n\025prediction_schema_uri\030\003 \001(\tB\003\340A\005\"\205\002\n\022M" - + "odelContainerSpec\022\031\n\timage_uri\030\001 \001(\tB\006\340A" - + "\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005\022\021\n\004args\030\003 \003(\t" - + "B\003\340A\005\0229\n\003env\030\004 \003(\0132\'.google.cloud.aiplat" - + "form.v1beta1.EnvVarB\003\340A\005\0229\n\005ports\030\005 \003(\0132" - + "%.google.cloud.aiplatform.v1beta1.PortB\003" - + "\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014healt" - + "h_route\030\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016container_" - + "port\030\003 \001(\005B\347\001\n#com.google.cloud.aiplatfo" - + "rm.v1beta1B\nModelProtoP\001ZIgoogle.golang." - + "org/genproto/googleapis/cloud/aiplatform" - + "/v1beta1;aiplatform\252\002\037Google.Cloud.AIPla" - + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" - + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" - + "eta1b\006proto3" + + "proto\022\037google.cloud.aiplatform.v1beta1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0328google/cloud/aiplatf" + + "orm/v1beta1/deployed_model_ref.proto\0325go" + + "ogle/cloud/aiplatform/v1beta1/encryption" + + "_spec.proto\032-google/cloud/aiplatform/v1b" + + "eta1/env_var.proto\0321google/cloud/aiplatf" + + "orm/v1beta1/explanation.proto\032\034google/pr" + + "otobuf/struct.proto\032\037google/protobuf/tim" + + "estamp.proto\"\237\016\n\005Model\022\014\n\004name\030\001 \001(\t\022\032\n\n" + + "version_id\030\034 \001(\tB\006\340A\005\340A\003\022\027\n\017version_alia" + + "ses\030\035 \003(\t\022<\n\023version_create_time\030\037 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022<\n\023versi" + + "on_update_time\030 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" + + "\022\023\n\013description\030\003 \001(\t\022\033\n\023version_descrip" + + "tion\030\036 \001(\t\022J\n\020predict_schemata\030\004 \001(\01320.g" + + "oogle.cloud.aiplatform.v1beta1.PredictSc" + + "hemata\022 \n\023metadata_schema_uri\030\005 \001(\tB\003\340A\005" + + "\022-\n\010metadata\030\006 \001(\0132\026.google.protobuf.Val" + + "ueB\003\340A\005\022Z\n\030supported_export_formats\030\024 \003(" + + "\01323.google.cloud.aiplatform.v1beta1.Mode" + + "l.ExportFormatB\003\340A\003\022M\n\021training_pipeline" + + "\030\007 \001(\tB2\340A\003\372A,\n*aiplatform.googleapis.co" + + "m/TrainingPipeline\022P\n\016container_spec\030\t \001" + + "(\01323.google.cloud.aiplatform.v1beta1.Mod" + + "elContainerSpecB\003\340A\004\022\031\n\014artifact_uri\030\032 \001" + + "(\tB\003\340A\005\022q\n$supported_deployment_resource" + + "s_types\030\n \003(\0162>.google.cloud.aiplatform." + + "v1beta1.Model.DeploymentResourcesTypeB\003\340" + + "A\003\022,\n\037supported_input_storage_formats\030\013 " + + "\003(\tB\003\340A\003\022-\n supported_output_storage_for" + + "mats\030\014 \003(\tB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" + + "time\030\016 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022O\n\017deployed_models\030\017 \003(\01321.google.cl" + + "oud.aiplatform.v1beta1.DeployedModelRefB" + + "\003\340A\003\022J\n\020explanation_spec\030\027 \001(\01320.google." + + "cloud.aiplatform.v1beta1.ExplanationSpec" + + "\022\014\n\004etag\030\020 \001(\t\022B\n\006labels\030\021 \003(\01322.google." + + "cloud.aiplatform.v1beta1.Model.LabelsEnt" + + "ry\022H\n\017encryption_spec\030\030 \001(\0132/.google.clo" + + "ud.aiplatform.v1beta1.EncryptionSpec\032\332\001\n" + + "\014ExportFormat\022\017\n\002id\030\001 \001(\tB\003\340A\003\022g\n\023export" + + "able_contents\030\002 \003(\0162E.google.cloud.aipla" + + "tform.v1beta1.Model.ExportFormat.Exporta" + + "bleContentB\003\340A\003\"P\n\021ExportableContent\022\"\n\036" + + "EXPORTABLE_CONTENT_UNSPECIFIED\020\000\022\014\n\010ARTI" + + "FACT\020\001\022\t\n\005IMAGE\020\002\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\027DeploymentRe" + + "sourcesType\022)\n%DEPLOYMENT_RESOURCES_TYPE" + + "_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURCES\020\001\022" + + "\027\n\023AUTOMATIC_RESOURCES\020\002:\\\352AY\n\037aiplatfor" + + "m.googleapis.com/Model\0226projects/{projec" + + "t}/locations/{location}/models/{model}\"{" + + "\n\017PredictSchemata\022 \n\023instance_schema_uri" + + "\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_schema_uri\030\002 \001" + + "(\tB\003\340A\005\022\"\n\025prediction_schema_uri\030\003 \001(\tB\003" + + "\340A\005\"\205\002\n\022ModelContainerSpec\022\031\n\timage_uri\030" + + "\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005\022\021\n\004a" + + "rgs\030\003 \003(\tB\003\340A\005\0229\n\003env\030\004 \003(\0132\'.google.clo" + + "ud.aiplatform.v1beta1.EnvVarB\003\340A\005\0229\n\005por" + + "ts\030\005 \003(\0132%.google.cloud.aiplatform.v1bet" + + "a1.PortB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005" + + "\022\031\n\014health_route\030\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016c" + + "ontainer_port\030\003 \001(\005B\347\001\n#com.google.cloud" + + ".aiplatform.v1beta1B\nModelProtoP\001ZIgoogl" + + "e.golang.org/genproto/googleapis/cloud/a" + + "iplatform/v1beta1;aiplatform\252\002\037Google.Cl" + + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" + + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" + + "form::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.DeployedModelNameProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EnvVarProto.getDescriptor(), @@ -153,8 +154,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_Model_descriptor, new java.lang.String[] { "Name", + "VersionId", + "VersionAliases", + "VersionCreateTime", + "VersionUpdateTime", "DisplayName", "Description", + "VersionDescription", "PredictSchemata", "MetadataSchemaUri", "Metadata", @@ -220,10 +226,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.DeployedModelNameProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EnvVarProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java index 6f03d2d4f..4e69245cb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java @@ -51,6 +51,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ListModelsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ListModelsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -59,6 +67,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -121,153 +137,182 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1beta1\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" + "behavior.proto\032\031google/api/resource.prot" - + "o\0325google/cloud/aiplatform/v1beta1/encry" - + "ption_spec.proto\0321google/cloud/aiplatfor" - + "m/v1beta1/explanation.proto\032(google/clou" - + "d/aiplatform/v1beta1/io.proto\032+google/cl" - + "oud/aiplatform/v1beta1/model.proto\0326goog" - + "le/cloud/aiplatform/v1beta1/model_evalua" - + "tion.proto\032\202\323\344\223\0021\022//v1beta1/{name=p" - + "rojects/*/locations/*/models/*}\332A\004name\022\267" - + "\001\n\nListModels\0222.google.cloud.aiplatform." - + "v1beta1.ListModelsRequest\0323.google.cloud" - + ".aiplatform.v1beta1.ListModelsResponse\"@" - + "\202\323\344\223\0021\022//v1beta1/{parent=projects/*/loca" - + "tions/*}/models\332A\006parent\022\304\001\n\013UpdateModel" - + "\0223.google.cloud.aiplatform.v1beta1.Updat" - + "eModelRequest\032&.google.cloud.aiplatform." - + "v1beta1.Model\"X\202\323\344\223\002>25/v1beta1/{model.n" - + "ame=projects/*/locations/*/models/*}:\005mo" - + "del\332A\021model,update_mask\022\324\001\n\013DeleteModel\022" - + "3.google.cloud.aiplatform.v1beta1.Delete" - + "ModelRequest\032\035.google.longrunning.Operat" - + "ion\"q\202\323\344\223\0021*//v1beta1/{name=projects/*/l" - + "ocations/*/models/*}\332A\004name\312A0\n\025google.p" - + "rotobuf.Empty\022\027DeleteOperationMetadata\022\360" - + "\001\n\013ExportModel\0223.google.cloud.aiplatform" - + ".v1beta1.ExportModelRequest\032\035.google.lon" - + "grunning.Operation\"\214\001\202\323\344\223\002;\"6/v1beta1/{n" - + "ame=projects/*/locations/*/models/*}:exp" - + "ort:\001*\332A\022name,output_config\312A3\n\023ExportMo" - + "delResponse\022\034ExportModelOperationMetadat" - + "a\022\363\001\n\025ImportModelEvaluation\022=.google.clo" - + "ud.aiplatform.v1beta1.ImportModelEvaluat" - + "ionRequest\0320.google.cloud.aiplatform.v1b" - + "eta1.ModelEvaluation\"i\202\323\344\223\002I\"D/v1beta1/{" - + "parent=projects/*/locations/*/models/*}/" - + "evaluations:import:\001*\332A\027parent,model_eva" - + "luation\022\320\001\n\022GetModelEvaluation\022:.google." - + "cloud.aiplatform.v1beta1.GetModelEvaluat" - + "ionRequest\0320.google.cloud.aiplatform.v1b" - + "eta1.ModelEvaluation\"L\202\323\344\223\002?\022=/v1beta1/{" - + "name=projects/*/locations/*/models/*/eva" - + "luations/*}\332A\004name\022\343\001\n\024ListModelEvaluati" - + "ons\022<.google.cloud.aiplatform.v1beta1.Li" - + "stModelEvaluationsRequest\032=.google.cloud" - + ".aiplatform.v1beta1.ListModelEvaluations" - + "Response\"N\202\323\344\223\002?\022=/v1beta1/{parent=proje" - + "cts/*/locations/*/models/*}/evaluations\332" - + "A\006parent\022\350\001\n\027GetModelEvaluationSlice\022?.g" - + "oogle.cloud.aiplatform.v1beta1.GetModelE" - + "valuationSliceRequest\0325.google.cloud.aip" - + "latform.v1beta1.ModelEvaluationSlice\"U\202\323" - + "\344\223\002H\022F/v1beta1/{name=projects/*/location" - + "s/*/models/*/evaluations/*/slices/*}\332A\004n" - + "ame\022\373\001\n\031ListModelEvaluationSlices\022A.goog" - + "le.cloud.aiplatform.v1beta1.ListModelEva" - + "luationSlicesRequest\032B.google.cloud.aipl" - + "atform.v1beta1.ListModelEvaluationSlices" - + "Response\"W\202\323\344\223\002H\022F/v1beta1/{parent=proje" - + "cts/*/locations/*/models/*/evaluations/*" - + "}/slices\332A\006parent\032M\312A\031aiplatform.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\356\001\n#com.google.cloud.ai" - + "platform.v1beta1B\021ModelServiceProtoP\001ZIg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1beta1;aiplatform\252\002\037Googl" - + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" - + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" - + "Platform::V1beta1b\006proto3" + + ".googleapis.com/Model\022\034\n\017version_aliases" + + "\030\002 \003(\tB\003\340A\002\"\375\002\n\022ExportModelRequest\0225\n\004na" + + "me\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis." + + "com/Model\022\\\n\routput_config\030\002 \001(\0132@.googl" + + "e.cloud.aiplatform.v1beta1.ExportModelRe" + + "quest.OutputConfigB\003\340A\002\032\321\001\n\014OutputConfig" + + "\022\030\n\020export_format_id\030\001 \001(\t\022M\n\024artifact_d" + + "estination\030\003 \001(\0132/.google.cloud.aiplatfo" + + "rm.v1beta1.GcsDestination\022X\n\021image_desti" + + "nation\030\004 \001(\0132=.google.cloud.aiplatform.v" + + "1beta1.ContainerRegistryDestination\"\246\002\n\034" + + "ExportModelOperationMetadata\022S\n\020generic_" + + "metadata\030\001 \001(\01329.google.cloud.aiplatform" + + ".v1beta1.GenericOperationMetadata\022b\n\013out" + + "put_info\030\002 \001(\0132H.google.cloud.aiplatform" + + ".v1beta1.ExportModelOperationMetadata.Ou" + + "tputInfoB\003\340A\003\032M\n\nOutputInfo\022 \n\023artifact_" + + "output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_output_ur" + + "i\030\003 \001(\tB\003\340A\003\"\025\n\023ExportModelResponse\"\250\001\n\034" + + "ImportModelEvaluationRequest\0227\n\006parent\030\001" + + " \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/" + + "Model\022O\n\020model_evaluation\030\002 \001(\01320.google" + + ".cloud.aiplatform.v1beta1.ModelEvaluatio" + + "nB\003\340A\002\"\\\n\031GetModelEvaluationRequest\022?\n\004n" + + "ame\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis" + + ".com/ModelEvaluation\"\274\001\n\033ListModelEvalua" + + "tionsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037ai" + + "platform.googleapis.com/Model\022\016\n\006filter\030" + + "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004" + + " \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.protobu" + + "f.FieldMask\"\204\001\n\034ListModelEvaluationsResp" + + "onse\022K\n\021model_evaluations\030\001 \003(\01320.google" + + ".cloud.aiplatform.v1beta1.ModelEvaluatio" + + "n\022\027\n\017next_page_token\030\002 \001(\t\"f\n\036GetModelEv" + + "aluationSliceRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372" + + "A0\n.aiplatform.googleapis.com/ModelEvalu" + + "ationSlice\"\313\001\n ListModelEvaluationSlices" + + "Request\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aiplatf" + + "orm.googleapis.com/ModelEvaluation\022\016\n\006fi" + + "lter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_to" + + "ken\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.pr" + + "otobuf.FieldMask\"\224\001\n!ListModelEvaluation" + + "SlicesResponse\022V\n\027model_evaluation_slice" + + "s\030\001 \003(\01325.google.cloud.aiplatform.v1beta" + + "1.ModelEvaluationSlice\022\027\n\017next_page_toke" + + "n\030\002 \001(\t2\205\031\n\014ModelService\022\352\001\n\013UploadModel" + + "\0223.google.cloud.aiplatform.v1beta1.Uploa" + + "dModelRequest\032\035.google.longrunning.Opera" + + "tion\"\206\001\202\323\344\223\002;\"6/v1beta1/{parent=projects" + + "/*/locations/*}/models:upload:\001*\332A\014paren" + + "t,model\312A3\n\023UploadModelResponse\022\034UploadM" + + "odelOperationMetadata\022\244\001\n\010GetModel\0220.goo" + + "gle.cloud.aiplatform.v1beta1.GetModelReq" + + "uest\032&.google.cloud.aiplatform.v1beta1.M" + + "odel\">\202\323\344\223\0021\022//v1beta1/{name=projects/*/" + + "locations/*/models/*}\332A\004name\022\267\001\n\nListMod" + + "els\0222.google.cloud.aiplatform.v1beta1.Li" + + "stModelsRequest\0323.google.cloud.aiplatfor" + + "m.v1beta1.ListModelsResponse\"@\202\323\344\223\0021\022//v" + + "1beta1/{parent=projects/*/locations/*}/m" + + "odels\332A\006parent\022\327\001\n\021ListModelVersions\0229.g" + + "oogle.cloud.aiplatform.v1beta1.ListModel" + + "VersionsRequest\032:.google.cloud.aiplatfor" + + "m.v1beta1.ListModelVersionsResponse\"K\202\323\344" + + "\223\002>\02225/v1beta1/" + + "{model.name=projects/*/locations/*/model" + + "s/*}:\005model\332A\021model,update_mask\022\324\001\n\013Dele" + + "teModel\0223.google.cloud.aiplatform.v1beta" + + "1.DeleteModelRequest\032\035.google.longrunnin" + + "g.Operation\"q\202\323\344\223\0021*//v1beta1/{name=proj" + + "ects/*/locations/*/models/*}\332A\004name\312A0\n\025" + + "google.protobuf.Empty\022\027DeleteOperationMe" + + "tadata\022\360\001\n\022DeleteModelVersion\022:.google.c" + + "loud.aiplatform.v1beta1.DeleteModelVersi" + + "onRequest\032\035.google.longrunning.Operation" + + "\"\177\202\323\344\223\002?*=/v1beta1/{name=projects/*/loca" + + "tions/*/models/*}:deleteVersion\332A\004name\312A" + + "0\n\025google.protobuf.Empty\022\027DeleteOperatio" + + "nMetadata\022\341\001\n\023MergeVersionAliases\022;.goog" + + "le.cloud.aiplatform.v1beta1.MergeVersion" + + "AliasesRequest\032&.google.cloud.aiplatform" + + ".v1beta1.Model\"e\202\323\344\223\002H\"C/v1beta1/{name=p" + + "rojects/*/locations/*/models/*}:mergeVer" + + "sionAliases:\001*\332A\024name,version_aliases\022\360\001" + + "\n\013ExportModel\0223.google.cloud.aiplatform." + + "v1beta1.ExportModelRequest\032\035.google.long" + + "running.Operation\"\214\001\202\323\344\223\002;\"6/v1beta1/{na" + + "me=projects/*/locations/*/models/*}:expo" + + "rt:\001*\332A\022name,output_config\312A3\n\023ExportMod" + + "elResponse\022\034ExportModelOperationMetadata" + + "\022\363\001\n\025ImportModelEvaluation\022=.google.clou" + + "d.aiplatform.v1beta1.ImportModelEvaluati" + + "onRequest\0320.google.cloud.aiplatform.v1be" + + "ta1.ModelEvaluation\"i\202\323\344\223\002I\"D/v1beta1/{p" + + "arent=projects/*/locations/*/models/*}/e" + + "valuations:import:\001*\332A\027parent,model_eval" + + "uation\022\320\001\n\022GetModelEvaluation\022:.google.c" + + "loud.aiplatform.v1beta1.GetModelEvaluati" + + "onRequest\0320.google.cloud.aiplatform.v1be" + + "ta1.ModelEvaluation\"L\202\323\344\223\002?\022=/v1beta1/{n" + + "ame=projects/*/locations/*/models/*/eval" + + "uations/*}\332A\004name\022\343\001\n\024ListModelEvaluatio" + + "ns\022<.google.cloud.aiplatform.v1beta1.Lis" + + "tModelEvaluationsRequest\032=.google.cloud." + + "aiplatform.v1beta1.ListModelEvaluationsR" + + "esponse\"N\202\323\344\223\002?\022=/v1beta1/{parent=projec" + + "ts/*/locations/*/models/*}/evaluations\332A" + + "\006parent\022\350\001\n\027GetModelEvaluationSlice\022?.go" + + "ogle.cloud.aiplatform.v1beta1.GetModelEv" + + "aluationSliceRequest\0325.google.cloud.aipl" + + "atform.v1beta1.ModelEvaluationSlice\"U\202\323\344" + + "\223\002H\022F/v1beta1/{name=projects/*/locations" + + "/*/models/*/evaluations/*/slices/*}\332A\004na" + + "me\022\373\001\n\031ListModelEvaluationSlices\022A.googl" + + "e.cloud.aiplatform.v1beta1.ListModelEval" + + "uationSlicesRequest\032B.google.cloud.aipla" + + "tform.v1beta1.ListModelEvaluationSlicesR" + + "esponse\"W\202\323\344\223\002H\022F/v1beta1/{parent=projec" + + "ts/*/locations/*/models/*/evaluations/*}" + + "/slices\332A\006parent\032M\312A\031aiplatform.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\356\001\n#com.google.cloud.aip" + + "latform.v1beta1B\021ModelServiceProtoP\001ZIgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" + + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" + + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" + + "latform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -277,8 +322,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ModelEvaluationProto.getDescriptor(), @@ -293,7 +336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UploadModelRequest_descriptor, new java.lang.String[] { - "Parent", "Model", + "Parent", "ParentModel", "ModelId", "Model", }); internal_static_google_cloud_aiplatform_v1beta1_UploadModelOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(1); @@ -309,7 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UploadModelResponse_descriptor, new java.lang.String[] { - "Model", + "Model", "ModelVersionId", }); internal_static_google_cloud_aiplatform_v1beta1_GetModelRequest_descriptor = getDescriptor().getMessageTypes().get(3); @@ -335,8 +378,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Models", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", "Filter", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_descriptor, + new java.lang.String[] { + "Models", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor, @@ -344,15 +403,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "UpdateMask", }); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor, + new java.lang.String[] { + "Name", "VersionAliases", + }); internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_descriptor, @@ -370,7 +445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExportFormatId", "ArtifactDestination", "ImageDestination", }); internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_descriptor, @@ -388,13 +463,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArtifactOutputUri", "ImageOutputUri", }); internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_descriptor, @@ -402,7 +477,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ModelEvaluation", }); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_descriptor, @@ -410,7 +485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_descriptor, @@ -418,7 +493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_descriptor, @@ -426,7 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelEvaluations", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_descriptor, @@ -434,7 +509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_descriptor, @@ -442,7 +517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_descriptor, @@ -464,8 +539,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ModelEvaluationProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java index 3e44dcfcf..997e19613 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java @@ -109,6 +109,8 @@ private MutateDeployedIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java index 300954eb5..7e669aeaf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java @@ -105,6 +105,8 @@ private MutateDeployedIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java index 24f6e6b55..23bbc6397 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java @@ -96,6 +96,8 @@ private MutateDeployedIndexResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java index e425c3c72..a901b6a4f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java @@ -105,6 +105,8 @@ private NearestNeighborSearchOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -369,6 +371,8 @@ private RecordError( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2177,6 +2181,8 @@ private ContentValidationStats( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMount.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMount.java new file mode 100644 index 000000000..363e33b09 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMount.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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; + +/** + * + * + *
+ * Represents a mount configuration for Network File System (NFS) to mount.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NfsMount} + */ +public final class NfsMount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NfsMount) + NfsMountOrBuilder { + private static final long serialVersionUID = 0L; + // Use NfsMount.newBuilder() to construct. + private NfsMount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NfsMount() { + server_ = ""; + path_ = ""; + mountPoint_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NfsMount(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NfsMount( + 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(); + + server_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + mountPoint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_NfsMount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NfsMount.class, + com.google.cloud.aiplatform.v1beta1.NfsMount.Builder.class); + } + + public static final int SERVER_FIELD_NUMBER = 1; + private volatile java.lang.Object server_; + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The server. + */ + @java.lang.Override + public java.lang.String getServer() { + java.lang.Object ref = server_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + server_ = s; + return s; + } + } + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for server. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerBytes() { + java.lang.Object ref = server_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + server_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object path_; + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOUNT_POINT_FIELD_NUMBER = 3; + private volatile java.lang.Object mountPoint_; + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mountPoint. + */ + @java.lang.Override + public java.lang.String getMountPoint() { + java.lang.Object ref = mountPoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountPoint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mountPoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMountPointBytes() { + java.lang.Object ref = mountPoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mountPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(server_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, server_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mountPoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(server_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, server_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mountPoint_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.NfsMount)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NfsMount other = + (com.google.cloud.aiplatform.v1beta1.NfsMount) obj; + + if (!getServer().equals(other.getServer())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getMountPoint().equals(other.getMountPoint())) return false; + if (!unknownFields.equals(other.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) + SERVER_FIELD_NUMBER; + hash = (53 * hash) + getServer().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + MOUNT_POINT_FIELD_NUMBER; + hash = (53 * hash) + getMountPoint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.NfsMount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a mount configuration for Network File System (NFS) to mount.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NfsMount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NfsMount) + com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_NfsMount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NfsMount.class, + com.google.cloud.aiplatform.v1beta1.NfsMount.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.NfsMount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + server_ = ""; + + path_ = ""; + + mountPoint_ = ""; + + 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_NfsMount_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NfsMount getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NfsMount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NfsMount build() { + com.google.cloud.aiplatform.v1beta1.NfsMount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NfsMount buildPartial() { + com.google.cloud.aiplatform.v1beta1.NfsMount result = + new com.google.cloud.aiplatform.v1beta1.NfsMount(this); + result.server_ = server_; + result.path_ = path_; + result.mountPoint_ = mountPoint_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.NfsMount) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.NfsMount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NfsMount other) { + if (other == com.google.cloud.aiplatform.v1beta1.NfsMount.getDefaultInstance()) return this; + if (!other.getServer().isEmpty()) { + server_ = other.server_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getMountPoint().isEmpty()) { + mountPoint_ = other.mountPoint_; + 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.NfsMount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.NfsMount) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object server_ = ""; + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The server. + */ + public java.lang.String getServer() { + java.lang.Object ref = server_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + server_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for server. + */ + public com.google.protobuf.ByteString getServerBytes() { + java.lang.Object ref = server_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + server_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The server to set. + * @return This builder for chaining. + */ + public Builder setServer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + server_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServer() { + + server_ = getDefaultInstance().getServer(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. IP address of the NFS server.
+     * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for server to set. + * @return This builder for chaining. + */ + public Builder setServerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + server_ = value; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + + path_ = getDefaultInstance().getPath(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Source path exported from NFS server.
+     * Has to start with '/', and combined with the ip address, it indicates
+     * the source mount path in the form of `server:path`
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value; + onChanged(); + return this; + } + + private java.lang.Object mountPoint_ = ""; + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mountPoint. + */ + public java.lang.String getMountPoint() { + java.lang.Object ref = mountPoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountPoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mountPoint. + */ + public com.google.protobuf.ByteString getMountPointBytes() { + java.lang.Object ref = mountPoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mountPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mountPoint to set. + * @return This builder for chaining. + */ + public Builder setMountPoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mountPoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMountPoint() { + + mountPoint_ = getDefaultInstance().getMountPoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Destination mount path. The NFS will be mounted for the user under
+     * /mnt/nfs/<mount_point>
+     * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mountPoint to set. + * @return This builder for chaining. + */ + public Builder setMountPointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mountPoint_ = 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.NfsMount) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NfsMount) + private static final com.google.cloud.aiplatform.v1beta1.NfsMount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.NfsMount(); + } + + public static com.google.cloud.aiplatform.v1beta1.NfsMount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsMount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsMount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NfsMount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMountOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMountOrBuilder.java new file mode 100644 index 000000000..16197640f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMountOrBuilder.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/machine_resources.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface NfsMountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NfsMount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The server. + */ + java.lang.String getServer(); + /** + * + * + *
+   * Required. IP address of the NFS server.
+   * 
+ * + * string server = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for server. + */ + com.google.protobuf.ByteString getServerBytes(); + + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+   * Required. Source path exported from NFS server.
+   * Has to start with '/', and combined with the ip address, it indicates
+   * the source mount path in the form of `server:path`
+   * 
+ * + * string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mountPoint. + */ + java.lang.String getMountPoint(); + /** + * + * + *
+   * Required. Destination mount path. The NFS will be mounted for the user under
+   * /mnt/nfs/<mount_point>
+   * 
+ * + * string mount_point = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mountPoint. + */ + com.google.protobuf.ByteString getMountPointBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java index 38ccc6f49..5c9961d83 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java @@ -46,29 +46,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/aiplatform/v1beta1/operat" + "ion.proto\022\037google.cloud.aiplatform.v1bet" - + "a1\032\034google/api/annotations.proto\032\037google" - + "/api/field_behavior.proto\032\037google/protob" - + "uf/timestamp.proto\032\027google/rpc/status.pr" - + "oto\"\271\001\n\030GenericOperationMetadata\0221\n\020part" - + "ial_failures\030\001 \003(\0132\022.google.rpc.StatusB\003" - + "\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\"n\n\027Delet" - + "eOperationMetadata\022S\n\020generic_metadata\030\001" - + " \001(\01329.google.cloud.aiplatform.v1beta1.G" - + "enericOperationMetadataB\353\001\n#com.google.c" - + "loud.aiplatform.v1beta1B\016OperationProtoP" - + "\001ZIgoogle.golang.org/genproto/googleapis" - + "/cloud/aiplatform/v1beta1;aiplatform\252\002\037G" - + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" - + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" - + "::AIPlatform::V1beta1b\006proto3" + + "a1\032\037google/api/field_behavior.proto\032\037goo" + + "gle/protobuf/timestamp.proto\032\027google/rpc" + + "/status.proto\"\271\001\n\030GenericOperationMetada" + + "ta\0221\n\020partial_failures\030\001 \003(\0132\022.google.rp" + + "c.StatusB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\"n\n\027DeleteOperationMetadata\022S\n\020generic_" + + "metadata\030\001 \001(\01329.google.cloud.aiplatform" + + ".v1beta1.GenericOperationMetadataB\353\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\016Opera" + + "tionProtoP\001ZIgoogle.golang.org/genproto/" + + "googleapis/cloud/aiplatform/v1beta1;aipl" + + "atform\252\002\037Google.Cloud.AIPlatform.V1Beta1" + + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" + + "gle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -94,7 +92,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java index 219494bc9..d38a1f335 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java @@ -91,6 +91,8 @@ private PauseModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java index c7a6beff7..35ef3b97a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -94,124 +94,122 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/aiplatform/v1beta1/pipeli" + "ne_job.proto\022\037google.cloud.aiplatform.v1" - + "beta1\032\034google/api/annotations.proto\032\037goo" - + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\032.google/cloud/aiplatform" - + "/v1beta1/artifact.proto\032-google/cloud/ai" - + "platform/v1beta1/context.proto\0325google/c" - + "loud/aiplatform/v1beta1/encryption_spec." - + "proto\032/google/cloud/aiplatform/v1beta1/e" - + "xecution.proto\0324google/cloud/aiplatform/" - + "v1beta1/pipeline_state.proto\032+google/clo" - + "ud/aiplatform/v1beta1/value.proto\032\034googl" - + "e/protobuf/struct.proto\032\037google/protobuf" - + "/timestamp.proto\032\027google/rpc/status.prot" - + "o\"\376\n\n\013PipelineJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014" - + "display_name\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0223\n\nstar" - + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0223\n\rpipeli" - + "ne_spec\030\007 \001(\0132\027.google.protobuf.StructB\003" - + "\340A\002\022B\n\005state\030\010 \001(\0162..google.cloud.aiplat" - + "form.v1beta1.PipelineStateB\003\340A\003\022K\n\njob_d" - + "etail\030\t \001(\01322.google.cloud.aiplatform.v1" - + "beta1.PipelineJobDetailB\003\340A\003\022&\n\005error\030\n " - + "\001(\0132\022.google.rpc.StatusB\003\340A\003\022H\n\006labels\030\013" - + " \003(\01328.google.cloud.aiplatform.v1beta1.P" - + "ipelineJob.LabelsEntry\022R\n\016runtime_config" - + "\030\014 \001(\0132:.google.cloud.aiplatform.v1beta1" - + ".PipelineJob.RuntimeConfig\022H\n\017encryption" - + "_spec\030\020 \001(\0132/.google.cloud.aiplatform.v1" - + "beta1.EncryptionSpec\022\027\n\017service_account\030" - + "\021 \001(\t\0224\n\007network\030\022 \001(\tB#\372A \n\036compute.goo" - + "gleapis.com/Network\032\254\003\n\rRuntimeConfig\022b\n" - + "\nparameters\030\001 \003(\0132J.google.cloud.aiplatf" - + "orm.v1beta1.PipelineJob.RuntimeConfig.Pa" - + "rametersEntryB\002\030\001\022!\n\024gcs_output_director" - + "y\030\002 \001(\tB\003\340A\002\022i\n\020parameter_values\030\003 \003(\0132O" + + "beta1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032.google/cloud/" + + "aiplatform/v1beta1/artifact.proto\032-googl" + + "e/cloud/aiplatform/v1beta1/context.proto" + + "\0325google/cloud/aiplatform/v1beta1/encryp" + + "tion_spec.proto\032/google/cloud/aiplatform" + + "/v1beta1/execution.proto\0324google/cloud/a" + + "iplatform/v1beta1/pipeline_state.proto\032+" + + "google/cloud/aiplatform/v1beta1/value.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\032\027google/rpc/s" + + "tatus.proto\"\371\n\n\013PipelineJob\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\0224\n\013create_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" + + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022.\n\rpipeline_spec\030\007 \001(\0132\027.google.protobu" + + "f.Struct\022B\n\005state\030\010 \001(\0162..google.cloud.a" + + "iplatform.v1beta1.PipelineStateB\003\340A\003\022K\n\n" + + "job_detail\030\t \001(\01322.google.cloud.aiplatfo" + + "rm.v1beta1.PipelineJobDetailB\003\340A\003\022&\n\005err" + + "or\030\n \001(\0132\022.google.rpc.StatusB\003\340A\003\022H\n\006lab" + + "els\030\013 \003(\01328.google.cloud.aiplatform.v1be" + + "ta1.PipelineJob.LabelsEntry\022R\n\016runtime_c" + + "onfig\030\014 \001(\0132:.google.cloud.aiplatform.v1" + + "beta1.PipelineJob.RuntimeConfig\022H\n\017encry" + + "ption_spec\030\020 \001(\0132/.google.cloud.aiplatfo" + + "rm.v1beta1.EncryptionSpec\022\027\n\017service_acc" + + "ount\030\021 \001(\t\0224\n\007network\030\022 \001(\tB#\372A \n\036comput" + + "e.googleapis.com/Network\032\254\003\n\rRuntimeConf" + + "ig\022b\n\nparameters\030\001 \003(\0132J.google.cloud.ai" + + "platform.v1beta1.PipelineJob.RuntimeConf" + + "ig.ParametersEntryB\002\030\001\022!\n\024gcs_output_dir" + + "ectory\030\002 \001(\tB\003\340A\002\022i\n\020parameter_values\030\003 " + + "\003(\0132O.google.cloud.aiplatform.v1beta1.Pi" + + "pelineJob.RuntimeConfig.ParameterValuesE" + + "ntry\032Y\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\0225\n\005" + + "value\030\002 \001(\0132&.google.cloud.aiplatform.v1" + + "beta1.Value:\0028\001\032N\n\024ParameterValuesEntry\022" + + "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro" + + "tobuf.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform." + + "googleapis.com/PipelineJob\022Cprojects/{pr" + + "oject}/locations/{location}/pipelineJobs" + + "/{pipeline_job}\"\371\001\n\021PipelineJobDetail\022G\n" + + "\020pipeline_context\030\001 \001(\0132(.google.cloud.a" + + "iplatform.v1beta1.ContextB\003\340A\003\022K\n\024pipeli" + + "ne_run_context\030\002 \001(\0132(.google.cloud.aipl" + + "atform.v1beta1.ContextB\003\340A\003\022N\n\014task_deta" + + "ils\030\003 \003(\01323.google.cloud.aiplatform.v1be" + + "ta1.PipelineTaskDetailB\003\340A\003\"\317\013\n\022Pipeline" + + "TaskDetail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016pare" + + "nt_task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end_" + + "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022Y\n\017executor_detail\030\006 \001(\0132;.google.cl" + + "oud.aiplatform.v1beta1.PipelineTaskExecu" + + "torDetailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.c" + + "loud.aiplatform.v1beta1.PipelineTaskDeta" + + "il.StateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.googl" + + "e.cloud.aiplatform.v1beta1.ExecutionB\003\340A" + + "\003\022&\n\005error\030\t \001(\0132\022.google.rpc.StatusB\003\340A" + + "\003\022i\n\024pipeline_task_status\030\r \003(\0132F.google" + + ".cloud.aiplatform.v1beta1.PipelineTaskDe" + + "tail.PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n" + + " \003(\0132?.google.cloud.aiplatform.v1beta1.P" + + "ipelineTaskDetail.InputsEntryB\003\340A\003\022V\n\007ou" + + "tputs\030\013 \003(\0132@.google.cloud.aiplatform.v1" + + "beta1.PipelineTaskDetail.OutputsEntryB\003\340" + + "A\003\032\301\001\n\022PipelineTaskStatus\0224\n\013update_time" + + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "M\n\005state\030\002 \001(\01629.google.cloud.aiplatform" + + ".v1beta1.PipelineTaskDetail.StateB\003\340A\003\022&" + + "\n\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q" + + "\n\014ArtifactList\022A\n\tartifacts\030\001 \003(\0132).goog" + + "le.cloud.aiplatform.v1beta1.ArtifactB\003\340A" + + "\003\032o\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002" + + " \001(\0132@.google.cloud.aiplatform.v1beta1.P" + + "ipelineTaskDetail.ArtifactList:\0028\001\032p\n\014Ou" + + "tputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@" + ".google.cloud.aiplatform.v1beta1.Pipelin" - + "eJob.RuntimeConfig.ParameterValuesEntry\032" - + "Y\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\0225\n\005value" - + "\030\002 \001(\0132&.google.cloud.aiplatform.v1beta1" - + ".Value:\0028\001\032N\n\024ParameterValuesEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" - + ".Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googl" - + "eapis.com/PipelineJob\022Cprojects/{project" - + "}/locations/{location}/pipelineJobs/{pip" - + "eline_job}\"\371\001\n\021PipelineJobDetail\022G\n\020pipe" - + "line_context\030\001 \001(\0132(.google.cloud.aiplat" - + "form.v1beta1.ContextB\003\340A\003\022K\n\024pipeline_ru" - + "n_context\030\002 \001(\0132(.google.cloud.aiplatfor" - + "m.v1beta1.ContextB\003\340A\003\022N\n\014task_details\030\003" - + " \003(\01323.google.cloud.aiplatform.v1beta1.P" - + "ipelineTaskDetailB\003\340A\003\"\317\013\n\022PipelineTaskD" - + "etail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_ta" - + "sk_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003" - + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" - + "\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y" - + "\n\017executor_detail\030\006 \001(\0132;.google.cloud.a" - + "iplatform.v1beta1.PipelineTaskExecutorDe" - + "tailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.cloud." - + "aiplatform.v1beta1.PipelineTaskDetail.St" - + "ateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google.clo" - + "ud.aiplatform.v1beta1.ExecutionB\003\340A\003\022&\n\005" - + "error\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022i\n\024" - + "pipeline_task_status\030\r \003(\0132F.google.clou" - + "d.aiplatform.v1beta1.PipelineTaskDetail." - + "PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n \003(\0132" - + "?.google.cloud.aiplatform.v1beta1.Pipeli" - + "neTaskDetail.InputsEntryB\003\340A\003\022V\n\007outputs" - + "\030\013 \003(\0132@.google.cloud.aiplatform.v1beta1" - + ".PipelineTaskDetail.OutputsEntryB\003\340A\003\032\301\001" - + "\n\022PipelineTaskStatus\0224\n\013update_time\030\001 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n\005st" - + "ate\030\002 \001(\01629.google.cloud.aiplatform.v1be" - + "ta1.PipelineTaskDetail.StateB\003\340A\003\022&\n\005err" - + "or\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n\014Art" - + "ifactList\022A\n\tartifacts\030\001 \003(\0132).google.cl" - + "oud.aiplatform.v1beta1.ArtifactB\003\340A\003\032o\n\013" - + "InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132" - + "@.google.cloud.aiplatform.v1beta1.Pipeli" - + "neTaskDetail.ArtifactList:\0028\001\032p\n\014Outputs" - + "Entry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goog" - + "le.cloud.aiplatform.v1beta1.PipelineTask" - + "Detail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING" - + "\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n" - + "\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007" - + "\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\366\003\n\032Pip" - + "elineTaskExecutorDetail\022l\n\020container_det" - + "ail\030\001 \001(\0132K.google.cloud.aiplatform.v1be" - + "ta1.PipelineTaskExecutorDetail.Container" - + "DetailB\003\340A\003H\000\022o\n\021custom_job_detail\030\002 \001(\013" - + "2K.google.cloud.aiplatform.v1beta1.Pipel" - + "ineTaskExecutorDetail.CustomJobDetailB\005\030" - + "\001\340A\003H\000\032\234\001\n\017ContainerDetail\022=\n\010main_job\030\001" - + " \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/" - + "CustomJob\022J\n\025pre_caching_check_job\030\002 \001(\t" - + "B+\340A\003\372A%\n#aiplatform.googleapis.com/Cust" - + "omJob\032O\n\017CustomJobDetail\0228\n\003job\030\001 \001(\tB+\340" - + "A\003\372A%\n#aiplatform.googleapis.com/CustomJ" - + "ob:\002\030\001B\t\n\007detailsB\266\002\n#com.google.cloud.a" - + "iplatform.v1beta1B\010PipelineP\001ZIgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatform\252\002\037Google.Cloud." - + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" - + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" - + "::V1beta1\352AN\n\036compute.googleapis.com/Net" - + "work\022,projects/{project}/global/networks" - + "/{network}b\006proto3" + + "eTaskDetail.ArtifactList:\0028\001\"\246\001\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RU" + + "NNING\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING" + + "\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAI" + + "LED\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\366\003" + + "\n\032PipelineTaskExecutorDetail\022l\n\020containe" + + "r_detail\030\001 \001(\0132K.google.cloud.aiplatform" + + ".v1beta1.PipelineTaskExecutorDetail.Cont" + + "ainerDetailB\003\340A\003H\000\022o\n\021custom_job_detail\030" + + "\002 \001(\0132K.google.cloud.aiplatform.v1beta1." + + "PipelineTaskExecutorDetail.CustomJobDeta" + + "ilB\005\030\001\340A\003H\000\032\234\001\n\017ContainerDetail\022=\n\010main_" + + "job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis" + + ".com/CustomJob\022J\n\025pre_caching_check_job\030" + + "\002 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.com" + + "/CustomJob\032O\n\017CustomJobDetail\0228\n\003job\030\001 \001" + + "(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/Cu" + + "stomJob:\002\030\001B\t\n\007detailsB\266\002\n#com.google.cl" + + "oud.aiplatform.v1beta1B\010PipelineP\001ZIgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "aiplatform/v1beta1;aiplatform\252\002\037Google.C" + + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" + + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" + + "tform::V1beta1\352AN\n\036compute.googleapis.co" + + "m/Network\022,projects/{project}/global/net" + + "works/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(), @@ -390,7 +388,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index 612249d9a..d4e565af7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -275,6 +275,8 @@ private PipelineJob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -388,8 +390,11 @@ public interface RuntimeConfigOrBuilder * */ @java.lang.Deprecated + /* nullable */ com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.Value defaultValue); + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.Value defaultValue); /** * * @@ -504,8 +509,12 @@ com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( * * map<string, .google.protobuf.Value> parameter_values = 3; */ + + /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue); + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue); /** * * @@ -627,6 +636,8 @@ private RuntimeConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -717,7 +728,7 @@ public int getParametersCount() { @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } @@ -771,7 +782,7 @@ public boolean containsParameters(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1beta1.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -797,7 +808,7 @@ public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.Value getParametersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -914,7 +925,7 @@ public int getParameterValuesCount() { @java.lang.Override public boolean containsParameterValues(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameterValues().getMap().containsKey(key); } @@ -958,7 +969,7 @@ public java.util.Map getParameterVa public com.google.protobuf.Value getParameterValuesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -980,7 +991,7 @@ public com.google.protobuf.Value getParameterValuesOrDefault( @java.lang.Override public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -1441,7 +1452,7 @@ public int getParametersCount() { @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } @@ -1495,7 +1506,7 @@ public boolean containsParameters(java.lang.String key) { public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( java.lang.String key, com.google.cloud.aiplatform.v1beta1.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -1521,7 +1532,7 @@ public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.Value getParametersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); @@ -1555,7 +1566,7 @@ public Builder clearParameters() { @java.lang.Deprecated public Builder removeParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableParameters().getMutableMap().remove(key); return this; @@ -1586,11 +1597,12 @@ public Builder removeParameters(java.lang.String key) { public Builder putParameters( java.lang.String key, com.google.cloud.aiplatform.v1beta1.Value value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableParameters().getMutableMap().put(key, value); return this; } @@ -1799,7 +1811,7 @@ public int getParameterValuesCount() { @java.lang.Override public boolean containsParameterValues(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameterValues().getMap().containsKey(key); } @@ -1843,7 +1855,7 @@ public java.util.Map getParameterVa public com.google.protobuf.Value getParameterValuesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -1865,7 +1877,7 @@ public com.google.protobuf.Value getParameterValuesOrDefault( @java.lang.Override public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameterValues().getMap(); @@ -1894,7 +1906,7 @@ public Builder clearParameterValues() { */ public Builder removeParameterValues(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableParameterValues().getMutableMap().remove(key); return this; @@ -1920,11 +1932,12 @@ public Builder removeParameterValues(java.lang.String key) { */ public Builder putParameterValues(java.lang.String key, com.google.protobuf.Value value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableParameterValues().getMutableMap().put(key, value); return this; } @@ -2306,11 +2319,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return Whether the pipelineSpec field is set. */ @@ -2322,11 +2334,10 @@ public boolean hasPipelineSpec() { * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return The pipelineSpec. */ @@ -2338,11 +2349,10 @@ public com.google.protobuf.Struct getPipelineSpec() { * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { @@ -2533,7 +2543,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2576,7 +2586,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2597,7 +2607,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4530,11 +4540,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return Whether the pipelineSpec field is set. */ @@ -4545,11 +4554,10 @@ public boolean hasPipelineSpec() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return The pipelineSpec. */ @@ -4566,11 +4574,10 @@ public com.google.protobuf.Struct getPipelineSpec() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder setPipelineSpec(com.google.protobuf.Struct value) { if (pipelineSpecBuilder_ == null) { @@ -4589,11 +4596,10 @@ public Builder setPipelineSpec(com.google.protobuf.Struct value) { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValue) { if (pipelineSpecBuilder_ == null) { @@ -4609,11 +4615,10 @@ public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValu * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { if (pipelineSpecBuilder_ == null) { @@ -4634,11 +4639,10 @@ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public Builder clearPipelineSpec() { if (pipelineSpecBuilder_ == null) { @@ -4655,11 +4659,10 @@ public Builder clearPipelineSpec() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public com.google.protobuf.Struct.Builder getPipelineSpecBuilder() { @@ -4670,11 +4673,10 @@ public com.google.protobuf.Struct.Builder getPipelineSpecBuilder() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { if (pipelineSpecBuilder_ != null) { @@ -4689,11 +4691,10 @@ public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { * * *
-     * Required. The spec of the pipeline.
+     * The spec of the pipeline.
      * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, @@ -5242,7 +5243,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -5286,7 +5287,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -5307,7 +5308,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -5335,7 +5336,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -5360,11 +5361,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java index dc32004c7..3a03fffde 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java @@ -128,6 +128,8 @@ private PipelineJobDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index 721039989..5f9d5983f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -233,11 +233,10 @@ public interface PipelineJobOrBuilder * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return Whether the pipelineSpec field is set. */ @@ -246,11 +245,10 @@ public interface PipelineJobOrBuilder * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; * * @return The pipelineSpec. */ @@ -259,11 +257,10 @@ public interface PipelineJobOrBuilder * * *
-   * Required. The spec of the pipeline.
+   * The spec of the pipeline.
    * 
* - * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Struct pipeline_spec = 7; */ com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder(); @@ -433,7 +430,12 @@ public interface PipelineJobOrBuilder * * map<string, string> labels = 11; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineStateProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineStateProto.java index f55095b64..1e2ddda20 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineStateProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineStateProto.java @@ -37,29 +37,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/cloud/aiplatform/v1beta1/pipeli" + "ne_state.proto\022\037google.cloud.aiplatform." - + "v1beta1\032\034google/api/annotations.proto*\223\002" - + "\n\rPipelineState\022\036\n\032PIPELINE_STATE_UNSPEC" - + "IFIED\020\000\022\031\n\025PIPELINE_STATE_QUEUED\020\001\022\032\n\026PI" - + "PELINE_STATE_PENDING\020\002\022\032\n\026PIPELINE_STATE" - + "_RUNNING\020\003\022\034\n\030PIPELINE_STATE_SUCCEEDED\020\004" - + "\022\031\n\025PIPELINE_STATE_FAILED\020\005\022\035\n\031PIPELINE_" - + "STATE_CANCELLING\020\006\022\034\n\030PIPELINE_STATE_CAN" - + "CELLED\020\007\022\031\n\025PIPELINE_STATE_PAUSED\020\010B\357\001\n#" - + "com.google.cloud.aiplatform.v1beta1B\022Pip" - + "elineStateProtoP\001ZIgoogle.golang.org/gen" - + "proto/googleapis/cloud/aiplatform/v1beta" - + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" - + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" - + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" - + "roto3" + + "v1beta1*\223\002\n\rPipelineState\022\036\n\032PIPELINE_ST" + + "ATE_UNSPECIFIED\020\000\022\031\n\025PIPELINE_STATE_QUEU" + + "ED\020\001\022\032\n\026PIPELINE_STATE_PENDING\020\002\022\032\n\026PIPE" + + "LINE_STATE_RUNNING\020\003\022\034\n\030PIPELINE_STATE_S" + + "UCCEEDED\020\004\022\031\n\025PIPELINE_STATE_FAILED\020\005\022\035\n" + + "\031PIPELINE_STATE_CANCELLING\020\006\022\034\n\030PIPELINE" + + "_STATE_CANCELLED\020\007\022\031\n\025PIPELINE_STATE_PAU" + + "SED\020\010B\357\001\n#com.google.cloud.aiplatform.v1" + + "beta1B\022PipelineStateProtoP\001ZIgoogle.gola" + + "ng.org/genproto/googleapis/cloud/aiplatf" + + "orm/v1beta1;aiplatform\252\002\037Google.Cloud.AI" + + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::" + + "V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - com.google.api.AnnotationsProto.getDescriptor(); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java index 9657619ba..105aa421f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java @@ -252,6 +252,8 @@ private PipelineTaskDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -832,6 +834,8 @@ private PipelineTaskStatus( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2135,6 +2139,8 @@ private ArtifactList( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3630,7 +3636,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -3675,7 +3681,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getIn java.lang.String key, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -3697,7 +3703,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getIn public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -3757,7 +3763,7 @@ public int getOutputsCount() { @java.lang.Override public boolean containsOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetOutputs().getMap().containsKey(key); } @@ -3802,7 +3808,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOu java.lang.String key, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -3824,7 +3830,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOu public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -6476,7 +6482,7 @@ public int getInputsCount() { @java.lang.Override public boolean containsInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetInputs().getMap().containsKey(key); } @@ -6521,7 +6527,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getIn java.lang.String key, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -6543,7 +6549,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getIn public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -6571,7 +6577,7 @@ public Builder clearInputs() { */ public Builder removeInputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableInputs().getMutableMap().remove(key); return this; @@ -6598,11 +6604,12 @@ public Builder putInputs( java.lang.String key, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableInputs().getMutableMap().put(key, value); return this; } @@ -6670,7 +6677,7 @@ public int getOutputsCount() { @java.lang.Override public boolean containsOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetOutputs().getMap().containsKey(key); } @@ -6715,7 +6722,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOu java.lang.String key, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -6737,7 +6744,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOu public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> @@ -6765,7 +6772,7 @@ public Builder clearOutputs() { */ public Builder removeOutputs(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableOutputs().getMutableMap().remove(key); return this; @@ -6792,11 +6799,12 @@ public Builder putOutputs( java.lang.String key, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableOutputs().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java index 1b0e0acc4..331244b15 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java @@ -467,8 +467,11 @@ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus getPip * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue); /** * @@ -538,8 +541,11 @@ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrT * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ + + /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue); /** * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java index 3b4ca5aa2..1abed2e8d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java @@ -129,6 +129,8 @@ private PipelineTaskExecutorDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -301,6 +303,8 @@ private ContainerDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1214,6 +1218,8 @@ private CustomJobDetail( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1936,6 +1942,8 @@ public boolean hasContainerDetail() { * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -1954,6 +1962,8 @@ public boolean hasCustomJobDetail() { * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 * @return The customJobDetail. */ @java.lang.Override @@ -2526,8 +2536,9 @@ public Builder mergeContainerDetail( } else { if (detailsCase_ == 1) { containerDetailBuilder_.mergeFrom(value); + } else { + containerDetailBuilder_.setMessage(value); } - containerDetailBuilder_.setMessage(value); } detailsCase_ = 1; return this; @@ -2656,6 +2667,8 @@ public Builder clearContainerDetail() { * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -2674,6 +2687,8 @@ public boolean hasCustomJobDetail() { * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 * @return The customJobDetail. */ @java.lang.Override @@ -2779,8 +2794,9 @@ public Builder mergeCustomJobDetail( } else { if (detailsCase_ == 2) { customJobDetailBuilder_.mergeFrom(value); + } else { + customJobDetailBuilder_.setMessage(value); } - customJobDetailBuilder_.setMessage(value); } detailsCase_ = 2; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java index 60bcec3ad..94d0c9c03 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java @@ -77,6 +77,8 @@ public interface PipelineTaskExecutorDetailOrBuilder * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 * @return Whether the customJobDetail field is set. */ @java.lang.Deprecated @@ -92,6 +94,8 @@ public interface PipelineTaskExecutorDetailOrBuilder * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 * @return The customJobDetail. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Port.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Port.java index 9a174b2ec..f7ef3c95a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Port.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Port.java @@ -84,6 +84,8 @@ private Port( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedSplit.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedSplit.java index d1e45c479..8be56b63a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedSplit.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedSplit.java @@ -90,6 +90,8 @@ private PredefinedSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java index c0f4a1b88..2022c27dc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java @@ -115,6 +115,8 @@ private PredictRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfig.java new file mode 100644 index 000000000..992ea0c33 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfig.java @@ -0,0 +1,1009 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Configuration for logging request-response to a BigQuery table.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} + */ +public final class PredictRequestResponseLoggingConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) + PredictRequestResponseLoggingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PredictRequestResponseLoggingConfig.newBuilder() to construct. + private PredictRequestResponseLoggingConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PredictRequestResponseLoggingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PredictRequestResponseLoggingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PredictRequestResponseLoggingConfig( + 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: + { + enabled_ = input.readBool(); + break; + } + case 17: + { + samplingRate_ = input.readDouble(); + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder subBuilder = null; + if (bigqueryDestination_ != null) { + subBuilder = bigqueryDestination_.toBuilder(); + } + bigqueryDestination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigqueryDestination_); + bigqueryDestination_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.class, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * If logging is enabled or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int SAMPLING_RATE_FIELD_NUMBER = 2; + private double samplingRate_; + /** + * + * + *
+   * Percentage of requests to be logged, expressed as a fraction in
+   * range(0,1].
+   * 
+ * + * double sampling_rate = 2; + * + * @return The samplingRate. + */ + @java.lang.Override + public double getSamplingRate() { + return samplingRate_; + } + + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.BigQueryDestination bigqueryDestination_; + /** + * + * + *
+   * BigQuery table for logging.
+   * If only given a project, a new dataset will be created with name
+   * `logging_<endpoint-display-name>_<endpoint-id>` where
+   * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+   * most special characters will become underscores). If no table name is
+   * given, a new table will be created with name `request_response_logging`
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + * + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return bigqueryDestination_ != null; + } + /** + * + * + *
+   * BigQuery table for logging.
+   * If only given a project, a new dataset will be created with name
+   * `logging_<endpoint-display-name>_<endpoint-id>` where
+   * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+   * most special characters will become underscores). If no table name is
+   * given, a new table will be created with name `request_response_logging`
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + * + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + /** + * + * + *
+   * BigQuery table for logging.
+   * If only given a project, a new dataset will be created with name
+   * `logging_<endpoint-display-name>_<endpoint-id>` where
+   * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+   * most special characters will become underscores). If no table name is
+   * given, a new table will be created with name `request_response_logging`
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + return getBigqueryDestination(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (java.lang.Double.doubleToRawLongBits(samplingRate_) != 0) { + output.writeDouble(2, samplingRate_); + } + if (bigqueryDestination_ != null) { + output.writeMessage(3, getBigqueryDestination()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (java.lang.Double.doubleToRawLongBits(samplingRate_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, samplingRate_); + } + if (bigqueryDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigqueryDestination()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig other = + (com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (java.lang.Double.doubleToLongBits(getSamplingRate()) + != java.lang.Double.doubleToLongBits(other.getSamplingRate())) return false; + if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false; + if (hasBigqueryDestination()) { + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + } + if (!unknownFields.equals(other.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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + SAMPLING_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSamplingRate())); + if (hasBigqueryDestination()) { + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 logging request-response to a BigQuery table.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.class, + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + samplingRate_ = 0D; + + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig build() { + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig result = + new com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig(this); + result.enabled_ = enabled_; + result.samplingRate_ = samplingRate_; + if (bigqueryDestinationBuilder_ == null) { + result.bigqueryDestination_ = bigqueryDestination_; + } else { + result.bigqueryDestination_ = bigqueryDestinationBuilder_.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.PredictRequestResponseLoggingConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getSamplingRate() != 0D) { + setSamplingRate(other.getSamplingRate()); + } + if (other.hasBigqueryDestination()) { + mergeBigqueryDestination(other.getBigqueryDestination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * If logging is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * If logging is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If logging is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private double samplingRate_; + /** + * + * + *
+     * Percentage of requests to be logged, expressed as a fraction in
+     * range(0,1].
+     * 
+ * + * double sampling_rate = 2; + * + * @return The samplingRate. + */ + @java.lang.Override + public double getSamplingRate() { + return samplingRate_; + } + /** + * + * + *
+     * Percentage of requests to be logged, expressed as a fraction in
+     * range(0,1].
+     * 
+ * + * double sampling_rate = 2; + * + * @param value The samplingRate to set. + * @return This builder for chaining. + */ + public Builder setSamplingRate(double value) { + + samplingRate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Percentage of requests to be logged, expressed as a fraction in
+     * range(0,1].
+     * 
+ * + * double sampling_rate = 2; + * + * @return This builder for chaining. + */ + public Builder clearSamplingRate() { + + samplingRate_ = 0D; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.BigQueryDestination bigqueryDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + * + * @return Whether the bigqueryDestination field is set. + */ + public boolean hasBigqueryDestination() { + return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + * + * @return The bigqueryDestination. + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } else { + return bigqueryDestinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryDestination_ = value; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + public Builder mergeBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (bigqueryDestination_ != null) { + bigqueryDestination_ = + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.newBuilder( + bigqueryDestination_) + .mergeFrom(value) + .buildPartial(); + } else { + bigqueryDestination_ = value; + } + onChanged(); + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + onChanged(); + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + + onChanged(); + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (bigqueryDestinationBuilder_ != null) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + } + /** + * + * + *
+     * BigQuery table for logging.
+     * If only given a project, a new dataset will be created with name
+     * `logging_<endpoint-display-name>_<endpoint-id>` where
+     * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+     * most special characters will become underscores). If no table name is
+     * given, a new table will be created with name `request_response_logging`
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder>( + getBigqueryDestination(), getParentForChildren(), isClean()); + bigqueryDestination_ = null; + } + return bigqueryDestinationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) + private static final com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictRequestResponseLoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PredictRequestResponseLoggingConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfigOrBuilder.java new file mode 100644 index 000000000..7d37239c9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfigOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PredictRequestResponseLoggingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If logging is enabled or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * Percentage of requests to be logged, expressed as a fraction in
+   * range(0,1].
+   * 
+ * + * double sampling_rate = 2; + * + * @return The samplingRate. + */ + double getSamplingRate(); + + /** + * + * + *
+   * BigQuery table for logging.
+   * If only given a project, a new dataset will be created with name
+   * `logging_<endpoint-display-name>_<endpoint-id>` where
+   * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+   * most special characters will become underscores). If no table name is
+   * given, a new table will be created with name `request_response_logging`
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + * + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + /** + * + * + *
+   * BigQuery table for logging.
+   * If only given a project, a new dataset will be created with name
+   * `logging_<endpoint-display-name>_<endpoint-id>` where
+   * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+   * most special characters will become underscores). If no table name is
+   * given, a new table will be created with name `request_response_logging`
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + * + * @return The bigqueryDestination. + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination(); + /** + * + * + *
+   * BigQuery table for logging.
+   * If only given a project, a new dataset will be created with name
+   * `logging_<endpoint-display-name>_<endpoint-id>` where
+   * <endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
+   * most special characters will become underscores). If no table name is
+   * given, a new table will be created with name `request_response_logging`
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java index 2ccf1f40d..b926ad99a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java @@ -41,6 +41,7 @@ private PredictResponse() { predictions_ = java.util.Collections.emptyList(); deployedModelId_ = ""; model_ = ""; + modelVersionId_ = ""; modelDisplayName_ = ""; } @@ -105,6 +106,13 @@ private PredictResponse( modelDisplayName_ = s; break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelVersionId_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -116,6 +124,8 @@ private PredictResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -335,6 +345,57 @@ public com.google.protobuf.ByteString getModelBytes() { } } + public static final int MODEL_VERSION_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object modelVersionId_; + /** + * + * + *
+   * Output only. The version ID of the Model which is deployed as the DeployedModel that
+   * this prediction hits.
+   * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + @java.lang.Override + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The version ID of the Model which is deployed as the DeployedModel that
+   * this prediction hits.
+   * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object modelDisplayName_; /** @@ -412,6 +473,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelDisplayName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modelVersionId_); + } unknownFields.writeTo(output); } @@ -433,6 +497,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelDisplayName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelVersionId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -452,6 +519,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPredictionsList().equals(other.getPredictionsList())) return false; if (!getDeployedModelId().equals(other.getDeployedModelId())) return false; if (!getModel().equals(other.getModel())) return false; + if (!getModelVersionId().equals(other.getModelVersionId())) return false; if (!getModelDisplayName().equals(other.getModelDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -472,6 +540,8 @@ public int hashCode() { hash = (53 * hash) + getDeployedModelId().hashCode(); hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelVersionId().hashCode(); hash = (37 * hash) + MODEL_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getModelDisplayName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -631,6 +701,8 @@ public Builder clear() { model_ = ""; + modelVersionId_ = ""; + modelDisplayName_ = ""; return this; @@ -672,6 +744,7 @@ public com.google.cloud.aiplatform.v1beta1.PredictResponse buildPartial() { } result.deployedModelId_ = deployedModelId_; result.model_ = model_; + result.modelVersionId_ = modelVersionId_; result.modelDisplayName_ = modelDisplayName_; onBuilt(); return result; @@ -758,6 +831,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredictResponse oth model_ = other.model_; onChanged(); } + if (!other.getModelVersionId().isEmpty()) { + modelVersionId_ = other.modelVersionId_; + onChanged(); + } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; onChanged(); @@ -1439,6 +1516,117 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object modelVersionId_ = ""; + /** + * + * + *
+     * Output only. The version ID of the Model which is deployed as the DeployedModel that
+     * this prediction hits.
+     * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the Model which is deployed as the DeployedModel that
+     * this prediction hits.
+     * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the Model which is deployed as the DeployedModel that
+     * this prediction hits.
+     * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelVersionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the Model which is deployed as the DeployedModel that
+     * this prediction hits.
+     * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersionId() { + + modelVersionId_ = getDefaultInstance().getModelVersionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the Model which is deployed as the DeployedModel that
+     * this prediction hits.
+     * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelVersionId_ = value; + onChanged(); + return this; + } + private java.lang.Object modelDisplayName_ = ""; /** * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponseOrBuilder.java index 3e841a001..81ac05026 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponseOrBuilder.java @@ -150,6 +150,33 @@ public interface PredictResponseOrBuilder */ com.google.protobuf.ByteString getModelBytes(); + /** + * + * + *
+   * Output only. The version ID of the Model which is deployed as the DeployedModel that
+   * this prediction hits.
+   * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + java.lang.String getModelVersionId(); + /** + * + * + *
+   * Output only. The version ID of the Model which is deployed as the DeployedModel that
+   * this prediction hits.
+   * 
+ * + * string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + com.google.protobuf.ByteString getModelVersionIdBytes(); + /** * * 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 ef0fffc27..daf0bee96 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 @@ -106,6 +106,8 @@ private PredictSchemata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java index 52f28c077..ee7cd8488 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java @@ -68,51 +68,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"aiplatform.googleapis.com/Endpoint\022.\n\ti" + "nstances\030\002 \003(\0132\026.google.protobuf.ValueB\003" + "\340A\002\022*\n\nparameters\030\003 \001(\0132\026.google.protobu" - + "f.Value\"\262\001\n\017PredictResponse\022+\n\013predictio" + + "f.Value\"\321\001\n\017PredictResponse\022+\n\013predictio" + "ns\030\001 \003(\0132\026.google.protobuf.Value\022\031\n\021depl" + "oyed_model_id\030\002 \001(\t\0226\n\005model\030\003 \001(\tB\'\340A\003\372" - + "A!\n\037aiplatform.googleapis.com/Model\022\037\n\022m" - + "odel_display_name\030\004 \001(\tB\003\340A\003\"z\n\021RawPredi" - + "ctRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aip" - + "latform.googleapis.com/Endpoint\022\'\n\thttp_" - + "body\030\002 \001(\0132\024.google.api.HttpBody\"\242\002\n\016Exp" - + "lainRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"a" - + "iplatform.googleapis.com/Endpoint\022.\n\tins" - + "tances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A" - + "\002\022*\n\nparameters\030\004 \001(\0132\026.google.protobuf." - + "Value\022[\n\031explanation_spec_override\030\005 \001(\013" - + "28.google.cloud.aiplatform.v1beta1.Expla" - + "nationSpecOverride\022\031\n\021deployed_model_id\030" - + "\003 \001(\t\"\235\001\n\017ExplainResponse\022B\n\014explanation" - + "s\030\001 \003(\0132,.google.cloud.aiplatform.v1beta" - + "1.Explanation\022\031\n\021deployed_model_id\030\002 \001(\t" - + "\022+\n\013predictions\030\003 \003(\0132\026.google.protobuf." - + "Value2\344\005\n\021PredictionService\022\327\001\n\007Predict\022" - + "/.google.cloud.aiplatform.v1beta1.Predic" - + "tRequest\0320.google.cloud.aiplatform.v1bet" - + "a1.PredictResponse\"i\202\323\344\223\002C\">/v1beta1/{en" - + "dpoint=projects/*/locations/*/endpoints/" - + "*}:predict:\001*\332A\035endpoint,instances,param" - + "eters\022\271\001\n\nRawPredict\0222.google.cloud.aipl" - + "atform.v1beta1.RawPredictRequest\032\024.googl" - + "e.api.HttpBody\"a\202\323\344\223\002F\"A/v1beta1/{endpoi" - + "nt=projects/*/locations/*/endpoints/*}:r" - + "awPredict:\001*\332A\022endpoint,http_body\022\351\001\n\007Ex" - + "plain\022/.google.cloud.aiplatform.v1beta1." - + "ExplainRequest\0320.google.cloud.aiplatform" - + ".v1beta1.ExplainResponse\"{\202\323\344\223\002C\">/v1bet" - + "a1/{endpoint=projects/*/locations/*/endp" - + "oints/*}:explain:\001*\332A/endpoint,instances" - + ",parameters,deployed_model_id\032M\312A\031aiplat" - + "form.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\363\001\n#com.goo" - + "gle.cloud.aiplatform.v1beta1B\026Prediction" - + "ServiceProtoP\001ZIgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1beta1;a" - + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" - + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" - + "Google::Cloud::AIPlatform::V1beta1b\006prot" - + "o3" + + "A!\n\037aiplatform.googleapis.com/Model\022\035\n\020m" + + "odel_version_id\030\005 \001(\tB\003\340A\003\022\037\n\022model_disp" + + "lay_name\030\004 \001(\tB\003\340A\003\"z\n\021RawPredictRequest" + + "\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.g" + + "oogleapis.com/Endpoint\022\'\n\thttp_body\030\002 \001(" + + "\0132\024.google.api.HttpBody\"\242\002\n\016ExplainReque" + + "st\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform" + + ".googleapis.com/Endpoint\022.\n\tinstances\030\002 " + + "\003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\npara" + + "meters\030\004 \001(\0132\026.google.protobuf.Value\022[\n\031" + + "explanation_spec_override\030\005 \001(\01328.google" + + ".cloud.aiplatform.v1beta1.ExplanationSpe" + + "cOverride\022\031\n\021deployed_model_id\030\003 \001(\t\"\235\001\n" + + "\017ExplainResponse\022B\n\014explanations\030\001 \003(\0132," + + ".google.cloud.aiplatform.v1beta1.Explana" + + "tion\022\031\n\021deployed_model_id\030\002 \001(\t\022+\n\013predi" + + "ctions\030\003 \003(\0132\026.google.protobuf.Value2\344\005\n" + + "\021PredictionService\022\327\001\n\007Predict\022/.google." + + "cloud.aiplatform.v1beta1.PredictRequest\032" + + "0.google.cloud.aiplatform.v1beta1.Predic" + + "tResponse\"i\202\323\344\223\002C\">/v1beta1/{endpoint=pr" + + "ojects/*/locations/*/endpoints/*}:predic" + + "t:\001*\332A\035endpoint,instances,parameters\022\271\001\n" + + "\nRawPredict\0222.google.cloud.aiplatform.v1" + + "beta1.RawPredictRequest\032\024.google.api.Htt" + + "pBody\"a\202\323\344\223\002F\"A/v1beta1/{endpoint=projec" + + "ts/*/locations/*/endpoints/*}:rawPredict" + + ":\001*\332A\022endpoint,http_body\022\351\001\n\007Explain\022/.g" + + "oogle.cloud.aiplatform.v1beta1.ExplainRe" + + "quest\0320.google.cloud.aiplatform.v1beta1." + + "ExplainResponse\"{\202\323\344\223\002C\">/v1beta1/{endpo" + + "int=projects/*/locations/*/endpoints/*}:" + + "explain:\001*\332A/endpoint,instances,paramete" + + "rs,deployed_model_id\032M\312A\031aiplatform.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\363\001\n#com.google.cloud" + + ".aiplatform.v1beta1B\026PredictionServicePr" + + "otoP\001ZIgoogle.golang.org/genproto/google" + + "apis/cloud/aiplatform/v1beta1;aiplatform" + + "\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goo" + + "gle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::C" + + "loud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -140,7 +140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PredictResponse_descriptor, new java.lang.String[] { - "Predictions", "DeployedModelId", "Model", "ModelDisplayName", + "Predictions", "DeployedModelId", "Model", "ModelVersionId", "ModelDisplayName", }); internal_static_google_cloud_aiplatform_v1beta1_RawPredictRequest_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java index 1b5249f4c..8851b2c33 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java @@ -116,6 +116,8 @@ private PrivateEndpoints( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java index 0cca241a8..0b8cbec86 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java @@ -97,6 +97,8 @@ private PurgeArtifactsMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java index 868789101..30b788ce3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java @@ -101,6 +101,8 @@ private PurgeArtifactsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java index bbc991691..00afa7240 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java @@ -97,6 +97,8 @@ private PurgeArtifactsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java index 0d6f85032..d8c4f397a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java @@ -97,6 +97,8 @@ private PurgeContextsMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java index dfb7203ca..1dbeacf72 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java @@ -101,6 +101,8 @@ private PurgeContextsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java index 512057465..2a4c1b4b0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java @@ -97,6 +97,8 @@ private PurgeContextsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java index 30aea0ceb..20ab93cfb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java @@ -97,6 +97,8 @@ private PurgeExecutionsMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java index b243ecd90..5ef05fc80 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java @@ -101,6 +101,8 @@ private PurgeExecutionsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java index 6de4dac56..2d24ef12e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java @@ -97,6 +97,8 @@ private PurgeExecutionsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 a16e06d71..e9c8f0c5d 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 @@ -119,6 +119,8 @@ private PythonPackageSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java index 958a10a81..eeaf580d0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java @@ -103,6 +103,8 @@ private QueryArtifactLineageSubgraphRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java index 55606f32b..ef49545a2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java @@ -89,6 +89,8 @@ private QueryContextLineageSubgraphRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java index aa6380dc4..a23f1a2c3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java @@ -90,6 +90,8 @@ private QueryExecutionInputsAndOutputsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java index e5605e672..6553351ff 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java @@ -102,6 +102,8 @@ private RawPredictRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java index 181903610..c354e0322 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java @@ -113,6 +113,8 @@ private ReadFeatureValuesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java index 15217f43d..841f097e8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java @@ -116,6 +116,8 @@ private ReadFeatureValuesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -240,6 +242,8 @@ private FeatureDescriptor( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1021,6 +1025,8 @@ private Header( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2411,6 +2417,8 @@ private EntityView( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2625,6 +2633,8 @@ private Data( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3342,8 +3352,9 @@ public Builder mergeValue(com.google.cloud.aiplatform.v1beta1.FeatureValue value } else { if (dataCase_ == 1) { valueBuilder_.mergeFrom(value); + } else { + valueBuilder_.setMessage(value); } - valueBuilder_.setMessage(value); } dataCase_ = 1; return this; @@ -3567,8 +3578,9 @@ public Builder mergeValues(com.google.cloud.aiplatform.v1beta1.FeatureValueList } else { if (dataCase_ == 2) { valuesBuilder_.mergeFrom(value); + } else { + valuesBuilder_.setMessage(value); } - valuesBuilder_.setMessage(value); } dataCase_ = 2; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java index 8f3663fd7..0143ef743 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java @@ -101,6 +101,8 @@ private ReadTensorboardBlobDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java index 3d8e1406f..a76ae76b2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java @@ -96,6 +96,8 @@ private ReadTensorboardBlobDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java index 174ab2dc2..7140a4656 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java @@ -103,6 +103,8 @@ private ReadTensorboardTimeSeriesDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java index de523cf3f..05d1d9ce2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java @@ -98,6 +98,8 @@ private ReadTensorboardTimeSeriesDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java index 105b2843a..eb24bb30c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java @@ -84,6 +84,8 @@ private ResourcesConsumed( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -141,7 +143,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (replicaHours_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(replicaHours_) != 0) { output.writeDouble(1, replicaHours_); } unknownFields.writeTo(output); @@ -153,7 +155,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (replicaHours_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(replicaHours_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, replicaHours_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java index 46d0bbb78..6e787ba94 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java @@ -91,6 +91,8 @@ private ResumeModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 6b9d09c4d..7f2a3e225 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 @@ -73,14 +73,14 @@ private SampleConfig( break; case 8: { - initialBatchSampleSizeCase_ = 1; initialBatchSampleSize_ = input.readInt32(); + initialBatchSampleSizeCase_ = 1; break; } case 24: { - followingBatchSampleSizeCase_ = 3; followingBatchSampleSize_ = input.readInt32(); + followingBatchSampleSizeCase_ = 3; break; } case 40: @@ -101,6 +101,8 @@ private SampleConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java index 8be62c0f7..4352584fb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java @@ -86,6 +86,8 @@ private SampledShapleyAttribution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java index ccddd4b95..140ee003e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java @@ -100,6 +100,8 @@ private SamplingStrategy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -207,6 +209,8 @@ private RandomSampleConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -263,7 +267,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (sampleRate_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(sampleRate_) != 0) { output.writeDouble(1, sampleRate_); } unknownFields.writeTo(output); @@ -275,7 +279,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (sampleRate_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(sampleRate_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, sampleRate_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java index 1ba5d9bff..c1fee889b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java @@ -84,6 +84,8 @@ private Scalar( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -139,7 +141,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(1, value_); } unknownFields.writeTo(output); @@ -151,7 +153,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java index 0d124a0f1..33e1a3155 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java @@ -99,6 +99,8 @@ private Scheduling( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java index 9cfe5edff..42bfde91d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java @@ -109,6 +109,8 @@ private SearchFeaturesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java index a54818222..0c74e530d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java @@ -101,6 +101,8 @@ private SearchFeaturesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 50efd76d4..2bb74e91e 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 @@ -110,6 +110,8 @@ private SearchMigratableResourcesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java index bb08633c9..bf959f263 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java @@ -105,6 +105,8 @@ private SearchMigratableResourcesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java index e76ee2fad..4c02bf008 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java @@ -171,6 +171,8 @@ private SearchModelDeploymentMonitoringStatsAnomaliesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -313,6 +315,8 @@ private StatsAnomaliesObjective( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java index 77b25acac..1424c0135 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java @@ -108,6 +108,8 @@ private SearchModelDeploymentMonitoringStatsAnomaliesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 a131f4a8c..18bf6a06f 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 @@ -74,8 +74,8 @@ private SmoothGradConfig( break; case 13: { - gradientNoiseSigmaCase_ = 1; gradientNoiseSigma_ = input.readFloat(); + gradientNoiseSigmaCase_ = 1; break; } case 18: @@ -114,6 +114,8 @@ private SmoothGradConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -981,8 +983,9 @@ public Builder mergeFeatureNoiseSigma( } else { if (gradientNoiseSigmaCase_ == 2) { featureNoiseSigmaBuilder_.mergeFrom(value); + } else { + featureNoiseSigmaBuilder_.setMessage(value); } - featureNoiseSigmaBuilder_.setMessage(value); } gradientNoiseSigmaCase_ = 2; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java index ea3156af3..6cd782b7a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java @@ -140,6 +140,8 @@ private SpecialistPool( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java index 927ae177e..a2bca9c2d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java @@ -42,30 +42,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/aiplatform/v1beta1/specia" + "list_pool.proto\022\037google.cloud.aiplatform" - + ".v1beta1\032\034google/api/annotations.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\"\316\002\n\016SpecialistPool\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\031\n\014display_name\030\002 \001(\tB\003" - + "\340A\002\022&\n\031specialist_managers_count\030\003 \001(\005B\003" - + "\340A\003\022!\n\031specialist_manager_emails\030\004 \003(\t\022\'" - + "\n\032pending_data_labeling_jobs\030\005 \003(\tB\003\340A\003\022" - + " \n\030specialist_worker_emails\030\007 \003(\t:x\352Au\n(" - + "aiplatform.googleapis.com/SpecialistPool" - + "\022Iprojects/{project}/locations/{location" - + "}/specialistPools/{specialist_pool}B\360\001\n#" - + "com.google.cloud.aiplatform.v1beta1B\023Spe" - + "cialistPoolProtoP\001ZIgoogle.golang.org/ge" - + "nproto/googleapis/cloud/aiplatform/v1bet" - + "a1;aiplatform\252\002\037Google.Cloud.AIPlatform." - + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" - + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" - + "proto3" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\"\316\002\n\016Special" + + "istPool\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\002\022&\n\031specialist_managers_cou" + + "nt\030\003 \001(\005B\003\340A\003\022!\n\031specialist_manager_emai" + + "ls\030\004 \003(\t\022\'\n\032pending_data_labeling_jobs\030\005" + + " \003(\tB\003\340A\003\022 \n\030specialist_worker_emails\030\007 " + + "\003(\t:x\352Au\n(aiplatform.googleapis.com/Spec" + + "ialistPool\022Iprojects/{project}/locations" + + "/{location}/specialistPools/{specialist_" + + "pool}B\360\001\n#com.google.cloud.aiplatform.v1" + + "beta1B\023SpecialistPoolProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/aiplat" + + "form/v1beta1;aiplatform\252\002\037Google.Cloud.A" + + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" + + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:" + + ":V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); @@ -88,7 +86,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); } 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 index d729d44ad..4d8a37b2e 100644 --- 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 @@ -88,6 +88,8 @@ private StopTrialRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java index 0eb600058..1776b63ba 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java @@ -116,6 +116,8 @@ private StratifiedSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -258,13 +260,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { output.writeDouble(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { output.writeDouble(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { output.writeDouble(3, testFraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -279,13 +281,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java index 225b52ecf..c57a9a863 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java @@ -119,6 +119,8 @@ private StreamingReadFeatureValuesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java index ed5672a7d..0ec01022b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java @@ -92,6 +92,8 @@ private StringArray( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index b5fc4bb9a..9ee49bde2 100644 --- 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 @@ -143,6 +143,8 @@ private Study( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 d2a02b87c..bceed5fe0 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 @@ -95,6 +95,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_ConvexAutomatedStoppingSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -117,152 +121,158 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/aiplatform/v1beta1/study." - + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" - + "google/api/annotations.proto\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\032\036google/protobuf/duration.proto" - + "\032\034google/protobuf/struct.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\270\003\n\005Study\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022" - + "C\n\nstudy_spec\030\003 \001(\0132*.google.cloud.aipla" - + "tform.v1beta1.StudySpecB\003\340A\002\022@\n\005state\030\004 " - + "\001(\0162,.google.cloud.aiplatform.v1beta1.St" - + "udy.StateB\003\340A\003\0224\n\013create_time\030\005 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\034\n\017inactive" - + "_reason\030\006 \001(\tB\003\340A\003\"G\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\022\r\n\t" - + "COMPLETED\020\003:]\352AZ\n\037aiplatform.googleapis." - + "com/Study\0227projects/{project}/locations/" - + "{location}/studies/{study}\"\351\007\n\005Trial\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\003\022\017\n\002id\030\002 \001(\tB\003\340A\003\022@\n\005stat" - + "e\030\003 \001(\0162,.google.cloud.aiplatform.v1beta" - + "1.Trial.StateB\003\340A\003\022I\n\nparameters\030\004 \003(\01320" - + ".google.cloud.aiplatform.v1beta1.Trial.P" - + "arameterB\003\340A\003\022L\n\021final_measurement\030\005 \001(\013" - + "2,.google.cloud.aiplatform.v1beta1.Measu" - + "rementB\003\340A\003\022G\n\014measurements\030\006 \003(\0132,.goog" - + "le.cloud.aiplatform.v1beta1.MeasurementB" - + "\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tclient_i" - + "d\030\t \001(\tB\003\340A\003\022\036\n\021infeasible_reason\030\n \001(\tB" - + "\003\340A\003\022?\n\ncustom_job\030\013 \001(\tB+\340A\003\372A%\n#aiplat" - + "form.googleapis.com/CustomJob\022W\n\017web_acc" - + "ess_uris\030\014 \003(\01329.google.cloud.aiplatform" - + ".v1beta1.Trial.WebAccessUrisEntryB\003\340A\003\032R" - + "\n\tParameter\022\031\n\014parameter_id\030\001 \001(\tB\003\340A\003\022*" - + "\n\005value\030\002 \001(\0132\026.google.protobuf.ValueB\003\340" - + "A\003\0324\n\022WebAccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"f\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\r\n\tREQUESTED\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010S" - + "TOPPING\020\003\022\r\n\tSUCCEEDED\020\004\022\016\n\nINFEASIBLE\020\005" - + ":l\352Ai\n\037aiplatform.googleapis.com/Trial\022F" - + "projects/{project}/locations/{location}/" - + "studies/{study}/trials/{trial}\"\372\032\n\tStudy" - + "Spec\022o\n\031decay_curve_stopping_spec\030\004 \001(\0132" - + "J.google.cloud.aiplatform.v1beta1.StudyS" - + "pec.DecayCurveAutomatedStoppingSpecH\000\022p\n" - + "\036median_automated_stopping_spec\030\005 \001(\0132F." - + "google.cloud.aiplatform.v1beta1.StudySpe" - + "c.MedianAutomatedStoppingSpecH\000\022]\n\022conve" - + "x_stop_config\030\010 \001(\0132;.google.cloud.aipla" - + "tform.v1beta1.StudySpec.ConvexStopConfig" - + "B\002\030\001H\000\022K\n\007metrics\030\001 \003(\01325.google.cloud.a" - + "iplatform.v1beta1.StudySpec.MetricSpecB\003" - + "\340A\002\022Q\n\nparameters\030\002 \003(\01328.google.cloud.a" + + "proto\022\037google.cloud.aiplatform.v1beta1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\036google/protobuf/dura" + + "tion.proto\032\034google/protobuf/struct.proto" + + "\032\037google/protobuf/timestamp.proto\"\270\003\n\005St" + + "udy\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.c" + + "loud.aiplatform.v1beta1.StudySpecB\003\340A\002\022@" + + "\n\005state\030\004 \001(\0162,.google.cloud.aiplatform." + + "v1beta1.Study.StateB\003\340A\003\0224\n\013create_time\030" + + "\005 \001(\0132\032.google.protobuf.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\010INAC" + + "TIVE\020\002\022\r\n\tCOMPLETED\020\003:]\352AZ\n\037aiplatform.g" + + "oogleapis.com/Study\0227projects/{project}/" + + "locations/{location}/studies/{study}\"\351\007\n" + + "\005Trial\022\021\n\004name\030\001 \001(\tB\003\340A\003\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\022G\n\014measurements\030\006 " + + "\003(\0132,.google.cloud.aiplatform.v1beta1.Me" + + "asurementB\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" + + "\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026" + + "\n\tclient_id\030\t \001(\tB\003\340A\003\022\036\n\021infeasible_rea" + + "son\030\n \001(\tB\003\340A\003\022?\n\ncustom_job\030\013 \001(\tB+\340A\003\372" + + "A%\n#aiplatform.googleapis.com/CustomJob\022" + + "W\n\017web_access_uris\030\014 \003(\01329.google.cloud." + + "aiplatform.v1beta1.Trial.WebAccessUrisEn" + + "tryB\003\340A\003\032R\n\tParameter\022\031\n\014parameter_id\030\001 " + + "\001(\tB\003\340A\003\022*\n\005value\030\002 \001(\0132\026.google.protobu" + + "f.ValueB\003\340A\003\0324\n\022WebAccessUrisEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\r\n\tREQUESTED\020\001\022\n\n\006ACT" + + "IVE\020\002\022\014\n\010STOPPING\020\003\022\r\n\tSUCCEEDED\020\004\022\016\n\nIN" + + "FEASIBLE\020\005:l\352Ai\n\037aiplatform.googleapis.c" + + "om/Trial\022Fprojects/{project}/locations/{" + + "location}/studies/{study}/trials/{trial}" + + "\"\237\035\n\tStudySpec\022o\n\031decay_curve_stopping_s" + + "pec\030\004 \001(\0132J.google.cloud.aiplatform.v1be" + + "ta1.StudySpec.DecayCurveAutomatedStoppin" + + "gSpecH\000\022p\n\036median_automated_stopping_spe" + + "c\030\005 \001(\0132F.google.cloud.aiplatform.v1beta" + + "1.StudySpec.MedianAutomatedStoppingSpecH" + + "\000\022]\n\022convex_stop_config\030\010 \001(\0132;.google.c" + + "loud.aiplatform.v1beta1.StudySpec.Convex" + + "StopConfigB\002\030\001H\000\022p\n\036convex_automated_sto" + + "pping_spec\030\t \001(\0132F.google.cloud.aiplatfo" + + "rm.v1beta1.StudySpec.ConvexAutomatedStop" + + "pingSpecH\000\022K\n\007metrics\030\001 \003(\01325.google.clo" + + "ud.aiplatform.v1beta1.StudySpec.MetricSp" + + "ecB\003\340A\002\022Q\n\nparameters\030\002 \003(\01328.google.clo" + + "ud.aiplatform.v1beta1.StudySpec.Paramete" + + "rSpecB\003\340A\002\022G\n\talgorithm\030\003 \001(\01624.google.c" + + "loud.aiplatform.v1beta1.StudySpec.Algori" + + "thm\022V\n\021observation_noise\030\006 \001(\0162;.google." + + "cloud.aiplatform.v1beta1.StudySpec.Obser" + + "vationNoise\022g\n\032measurement_selection_typ" + + "e\030\007 \001(\0162C.google.cloud.aiplatform.v1beta" + + "1.StudySpec.MeasurementSelectionType\032\272\001\n" + + "\nMetricSpec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022Q\n\004g" + + "oal\030\002 \001(\0162>.google.cloud.aiplatform.v1be" + + "ta1.StudySpec.MetricSpec.GoalTypeB\003\340A\002\"A" + + "\n\010GoalType\022\031\n\025GOAL_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010MAXIMIZE\020\001\022\014\n\010MINIMIZE\020\002\032\200\017\n\rParameterS" + + "pec\022e\n\021double_value_spec\030\002 \001(\0132H.google." + + "cloud.aiplatform.v1beta1.StudySpec.Param" + + "eterSpec.DoubleValueSpecH\000\022g\n\022integer_va" + + "lue_spec\030\003 \001(\0132I.google.cloud.aiplatform" + + ".v1beta1.StudySpec.ParameterSpec.Integer" + + "ValueSpecH\000\022o\n\026categorical_value_spec\030\004 " + + "\001(\0132M.google.cloud.aiplatform.v1beta1.St" + + "udySpec.ParameterSpec.CategoricalValueSp" + + "ecH\000\022i\n\023discrete_value_spec\030\005 \001(\0132J.goog" + + "le.cloud.aiplatform.v1beta1.StudySpec.Pa" + + "rameterSpec.DiscreteValueSpecH\000\022\031\n\014param" + + "eter_id\030\001 \001(\tB\003\340A\002\022V\n\nscale_type\030\006 \001(\0162B" + + ".google.cloud.aiplatform.v1beta1.StudySp" + + "ec.ParameterSpec.ScaleType\022v\n\033conditiona" + + "l_parameter_specs\030\n \003(\0132Q.google.cloud.a" + "iplatform.v1beta1.StudySpec.ParameterSpe" - + "cB\003\340A\002\022G\n\talgorithm\030\003 \001(\01624.google.cloud" - + ".aiplatform.v1beta1.StudySpec.Algorithm\022" - + "V\n\021observation_noise\030\006 \001(\0162;.google.clou" - + "d.aiplatform.v1beta1.StudySpec.Observati" - + "onNoise\022g\n\032measurement_selection_type\030\007 " - + "\001(\0162C.google.cloud.aiplatform.v1beta1.St" - + "udySpec.MeasurementSelectionType\032\272\001\n\nMet" - + "ricSpec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022Q\n\004goal\030" - + "\002 \001(\0162>.google.cloud.aiplatform.v1beta1." - + "StudySpec.MetricSpec.GoalTypeB\003\340A\002\"A\n\010Go" - + "alType\022\031\n\025GOAL_TYPE_UNSPECIFIED\020\000\022\014\n\010MAX" - + "IMIZE\020\001\022\014\n\010MINIMIZE\020\002\032\200\017\n\rParameterSpec\022" - + "e\n\021double_value_spec\030\002 \001(\0132H.google.clou" - + "d.aiplatform.v1beta1.StudySpec.Parameter" - + "Spec.DoubleValueSpecH\000\022g\n\022integer_value_" - + "spec\030\003 \001(\0132I.google.cloud.aiplatform.v1b" - + "eta1.StudySpec.ParameterSpec.IntegerValu" - + "eSpecH\000\022o\n\026categorical_value_spec\030\004 \001(\0132" - + "M.google.cloud.aiplatform.v1beta1.StudyS" - + "pec.ParameterSpec.CategoricalValueSpecH\000" - + "\022i\n\023discrete_value_spec\030\005 \001(\0132J.google.c" - + "loud.aiplatform.v1beta1.StudySpec.Parame" - + "terSpec.DiscreteValueSpecH\000\022\031\n\014parameter" - + "_id\030\001 \001(\tB\003\340A\002\022V\n\nscale_type\030\006 \001(\0162B.goo" - + "gle.cloud.aiplatform.v1beta1.StudySpec.P" - + "arameterSpec.ScaleType\022v\n\033conditional_pa" - + "rameter_specs\030\n \003(\0132Q.google.cloud.aipla" - + "tform.v1beta1.StudySpec.ParameterSpec.Co" - + "nditionalParameterSpec\032o\n\017DoubleValueSpe" - + "c\022\026\n\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\tmax_value\030\002" - + " \001(\001B\003\340A\002\022\032\n\rdefault_value\030\004 \001(\001H\000\210\001\001B\020\n" - + "\016_default_value\032p\n\020IntegerValueSpec\022\026\n\tm" - + "in_value\030\001 \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 \001(\003B\003" - + "\340A\002\022\032\n\rdefault_value\030\004 \001(\003H\000\210\001\001B\020\n\016_defa" - + "ult_value\032Y\n\024CategoricalValueSpec\022\023\n\006val" - + "ues\030\001 \003(\tB\003\340A\002\022\032\n\rdefault_value\030\003 \001(\tH\000\210" - + "\001\001B\020\n\016_default_value\032V\n\021DiscreteValueSpe" - + "c\022\023\n\006values\030\001 \003(\001B\003\340A\002\022\032\n\rdefault_value\030" - + "\003 \001(\001H\000\210\001\001B\020\n\016_default_value\032\271\005\n\030Conditi" - + "onalParameterSpec\022\212\001\n\026parent_discrete_va" - + "lues\030\002 \001(\0132h.google.cloud.aiplatform.v1b" - + "eta1.StudySpec.ParameterSpec.Conditional" - + "ParameterSpec.DiscreteValueConditionH\000\022\200" - + "\001\n\021parent_int_values\030\003 \001(\0132c.google.clou" - + "d.aiplatform.v1beta1.StudySpec.Parameter" - + "Spec.ConditionalParameterSpec.IntValueCo" - + "nditionH\000\022\220\001\n\031parent_categorical_values\030" - + "\004 \001(\0132k.google.cloud.aiplatform.v1beta1." - + "StudySpec.ParameterSpec.ConditionalParam" - + "eterSpec.CategoricalValueConditionH\000\022U\n\016" - + "parameter_spec\030\001 \001(\01328.google.cloud.aipl" - + "atform.v1beta1.StudySpec.ParameterSpecB\003" - + "\340A\002\032-\n\026DiscreteValueCondition\022\023\n\006values\030" - + "\001 \003(\001B\003\340A\002\032(\n\021IntValueCondition\022\023\n\006value" - + "s\030\001 \003(\003B\003\340A\002\0320\n\031CategoricalValueConditio" - + "n\022\023\n\006values\030\001 \003(\tB\003\340A\002B\030\n\026parent_value_c" - + "ondition\"n\n\tScaleType\022\032\n\026SCALE_TYPE_UNSP" - + "ECIFIED\020\000\022\025\n\021UNIT_LINEAR_SCALE\020\001\022\022\n\016UNIT" - + "_LOG_SCALE\020\002\022\032\n\026UNIT_REVERSE_LOG_SCALE\020\003" - + "B\026\n\024parameter_value_spec\032?\n\037DecayCurveAu" - + "tomatedStoppingSpec\022\034\n\024use_elapsed_durat" - + "ion\030\001 \001(\010\032;\n\033MedianAutomatedStoppingSpec" - + "\022\034\n\024use_elapsed_duration\030\001 \001(\010\032\235\001\n\020Conve" - + "xStopConfig\022\025\n\rmax_num_steps\030\001 \001(\003\022\025\n\rmi" - + "n_num_steps\030\002 \001(\003\022\034\n\024autoregressive_orde" - + "r\030\003 \001(\003\022$\n\034learning_rate_parameter_name\030" - + "\004 \001(\t\022\023\n\013use_seconds\030\005 \001(\010:\002\030\001\"J\n\tAlgori" - + "thm\022\031\n\025ALGORITHM_UNSPECIFIED\020\000\022\017\n\013GRID_S" - + "EARCH\020\002\022\021\n\rRANDOM_SEARCH\020\003\"H\n\020Observatio" - + "nNoise\022!\n\035OBSERVATION_NOISE_UNSPECIFIED\020" - + "\000\022\007\n\003LOW\020\001\022\010\n\004HIGH\020\002\"r\n\030MeasurementSelec" - + "tionType\022*\n&MEASUREMENT_SELECTION_TYPE_U" - + "NSPECIFIED\020\000\022\024\n\020LAST_MEASUREMENT\020\001\022\024\n\020BE" - + "ST_MEASUREMENT\020\002B\031\n\027automated_stopping_s" - + "pec\"\341\001\n\013Measurement\0228\n\020elapsed_duration\030" - + "\001 \001(\0132\031.google.protobuf.DurationB\003\340A\003\022\027\n" - + "\nstep_count\030\002 \001(\003B\003\340A\003\022I\n\007metrics\030\003 \003(\0132" - + "3.google.cloud.aiplatform.v1beta1.Measur" - + "ement.MetricB\003\340A\003\0324\n\006Metric\022\026\n\tmetric_id" - + "\030\001 \001(\tB\003\340A\003\022\022\n\005value\030\002 \001(\001B\003\340A\003B\347\001\n#com." - + "google.cloud.aiplatform.v1beta1B\nStudyPr" - + "otoP\001ZIgoogle.golang.org/genproto/google" - + "apis/cloud/aiplatform/v1beta1;aiplatform" - + "\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goo" - + "gle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::C" - + "loud::AIPlatform::V1beta1b\006proto3" + + "c.ConditionalParameterSpec\032o\n\017DoubleValu" + + "eSpec\022\026\n\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\tmax_val" + + "ue\030\002 \001(\001B\003\340A\002\022\032\n\rdefault_value\030\004 \001(\001H\000\210\001" + + "\001B\020\n\016_default_value\032p\n\020IntegerValueSpec\022" + + "\026\n\tmin_value\030\001 \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 \001" + + "(\003B\003\340A\002\022\032\n\rdefault_value\030\004 \001(\003H\000\210\001\001B\020\n\016_" + + "default_value\032Y\n\024CategoricalValueSpec\022\023\n" + + "\006values\030\001 \003(\tB\003\340A\002\022\032\n\rdefault_value\030\003 \001(" + + "\tH\000\210\001\001B\020\n\016_default_value\032V\n\021DiscreteValu" + + "eSpec\022\023\n\006values\030\001 \003(\001B\003\340A\002\022\032\n\rdefault_va" + + "lue\030\003 \001(\001H\000\210\001\001B\020\n\016_default_value\032\271\005\n\030Con" + + "ditionalParameterSpec\022\212\001\n\026parent_discret" + + "e_values\030\002 \001(\0132h.google.cloud.aiplatform" + + ".v1beta1.StudySpec.ParameterSpec.Conditi" + + "onalParameterSpec.DiscreteValueCondition" + + "H\000\022\200\001\n\021parent_int_values\030\003 \001(\0132c.google." + + "cloud.aiplatform.v1beta1.StudySpec.Param" + + "eterSpec.ConditionalParameterSpec.IntVal" + + "ueConditionH\000\022\220\001\n\031parent_categorical_val" + + "ues\030\004 \001(\0132k.google.cloud.aiplatform.v1be" + + "ta1.StudySpec.ParameterSpec.ConditionalP" + + "arameterSpec.CategoricalValueConditionH\000" + + "\022U\n\016parameter_spec\030\001 \001(\01328.google.cloud." + + "aiplatform.v1beta1.StudySpec.ParameterSp" + + "ecB\003\340A\002\032-\n\026DiscreteValueCondition\022\023\n\006val" + + "ues\030\001 \003(\001B\003\340A\002\032(\n\021IntValueCondition\022\023\n\006v" + + "alues\030\001 \003(\003B\003\340A\002\0320\n\031CategoricalValueCond" + + "ition\022\023\n\006values\030\001 \003(\tB\003\340A\002B\030\n\026parent_val" + + "ue_condition\"n\n\tScaleType\022\032\n\026SCALE_TYPE_" + + "UNSPECIFIED\020\000\022\025\n\021UNIT_LINEAR_SCALE\020\001\022\022\n\016" + + "UNIT_LOG_SCALE\020\002\022\032\n\026UNIT_REVERSE_LOG_SCA" + + "LE\020\003B\026\n\024parameter_value_spec\032?\n\037DecayCur" + + "veAutomatedStoppingSpec\022\034\n\024use_elapsed_d" + + "uration\030\001 \001(\010\032;\n\033MedianAutomatedStopping" + + "Spec\022\034\n\024use_elapsed_duration\030\001 \001(\010\032\260\001\n\033C" + + "onvexAutomatedStoppingSpec\022\026\n\016max_step_c" + + "ount\030\001 \001(\003\022\026\n\016min_step_count\030\002 \001(\003\022\035\n\025mi" + + "n_measurement_count\030\003 \001(\003\022$\n\034learning_ra" + + "te_parameter_name\030\004 \001(\t\022\034\n\024use_elapsed_d" + + "uration\030\005 \001(\010\032\235\001\n\020ConvexStopConfig\022\025\n\rma" + + "x_num_steps\030\001 \001(\003\022\025\n\rmin_num_steps\030\002 \001(\003" + + "\022\034\n\024autoregressive_order\030\003 \001(\003\022$\n\034learni" + + "ng_rate_parameter_name\030\004 \001(\t\022\023\n\013use_seco" + + "nds\030\005 \001(\010:\002\030\001\"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\020ObservationNoise\022!\n\035OBSERVA" + + "TION_NOISE_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\010\n\004HIG" + + "H\020\002\"r\n\030MeasurementSelectionType\022*\n&MEASU" + + "REMENT_SELECTION_TYPE_UNSPECIFIED\020\000\022\024\n\020L" + + "AST_MEASUREMENT\020\001\022\024\n\020BEST_MEASUREMENT\020\002B" + + "\031\n\027automated_stopping_spec\"\341\001\n\013Measureme" + + "nt\0228\n\020elapsed_duration\030\001 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\003\022\027\n\nstep_count\030\002 \001(\003" + + "B\003\340A\003\022I\n\007metrics\030\003 \003(\01323.google.cloud.ai" + + "platform.v1beta1.Measurement.MetricB\003\340A\003" + + "\0324\n\006Metric\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\003\022\022\n\005va" + + "lue\030\002 \001(\001B\003\340A\003B\347\001\n#com.google.cloud.aipl" + + "atform.v1beta1B\nStudyProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/aiplat" + + "form/v1beta1;aiplatform\252\002\037Google.Cloud.A" + + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" + + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:" + + ":V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -321,6 +331,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DecayCurveStoppingSpec", "MedianAutomatedStoppingSpec", "ConvexStopConfig", + "ConvexAutomatedStoppingSpec", "Metrics", "Parameters", "Algorithm", @@ -459,10 +470,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "UseElapsedDuration", }); - internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor .getNestedTypes() .get(4); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_descriptor, + new java.lang.String[] { + "MaxStepCount", + "MinStepCount", + "MinMeasurementCount", + "LearningRateParameterName", + "UseElapsedDuration", + }); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor + .getNestedTypes() + .get(5); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor, @@ -498,7 +523,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java index 9a0edcdb5..7749d7acb 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 @@ -195,6 +195,30 @@ private StudySpec( automatedStoppingSpecCase_ = 8; break; } + case 74: + { + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder + subBuilder = null; + if (automatedStoppingSpecCase_ == 9) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_) + .toBuilder(); + } + automatedStoppingSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_); + automatedStoppingSpec_ = subBuilder.buildPartial(); + } + automatedStoppingSpecCase_ = 9; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -206,6 +230,8 @@ private StudySpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -876,6 +902,8 @@ private MetricSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2279,6 +2307,8 @@ private ParameterSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2637,6 +2667,8 @@ private DoubleValueSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -2754,10 +2786,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(minValue_) != 0) { output.writeDouble(1, minValue_); } - if (maxValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(maxValue_) != 0) { output.writeDouble(2, maxValue_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -2772,10 +2804,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (minValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(minValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, minValue_); } - if (maxValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(maxValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, maxValue_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -3529,6 +3561,8 @@ private IntegerValueSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -4457,6 +4491,8 @@ private CategoricalValueSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -5575,6 +5611,8 @@ private DiscreteValueSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6760,6 +6798,8 @@ private ConditionalParameterSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6925,6 +6965,8 @@ private DiscreteValueCondition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -7758,6 +7800,8 @@ private IntValueCondition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -8589,6 +8633,8 @@ private CategoricalValueCondition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -10323,8 +10369,9 @@ public Builder mergeParentDiscreteValues( } else { if (parentValueConditionCase_ == 2) { parentDiscreteValuesBuilder_.mergeFrom(value); + } else { + parentDiscreteValuesBuilder_.setMessage(value); } - parentDiscreteValuesBuilder_.setMessage(value); } parentValueConditionCase_ = 2; return this; @@ -10598,8 +10645,9 @@ public Builder mergeParentIntValues( } else { if (parentValueConditionCase_ == 3) { parentIntValuesBuilder_.mergeFrom(value); + } else { + parentIntValuesBuilder_.setMessage(value); } - parentIntValuesBuilder_.setMessage(value); } parentValueConditionCase_ = 3; return this; @@ -10873,8 +10921,9 @@ public Builder mergeParentCategoricalValues( } else { if (parentValueConditionCase_ == 4) { parentCategoricalValuesBuilder_.mergeFrom(value); + } else { + parentCategoricalValuesBuilder_.setMessage(value); } - parentCategoricalValuesBuilder_.setMessage(value); } parentValueConditionCase_ = 4; return this; @@ -12472,8 +12521,9 @@ public Builder mergeDoubleValueSpec( } else { if (parameterValueSpecCase_ == 2) { doubleValueSpecBuilder_.mergeFrom(value); + } else { + doubleValueSpecBuilder_.setMessage(value); } - doubleValueSpecBuilder_.setMessage(value); } parameterValueSpecCase_ = 2; return this; @@ -12720,8 +12770,9 @@ public Builder mergeIntegerValueSpec( } else { if (parameterValueSpecCase_ == 3) { integerValueSpecBuilder_.mergeFrom(value); + } else { + integerValueSpecBuilder_.setMessage(value); } - integerValueSpecBuilder_.setMessage(value); } parameterValueSpecCase_ = 3; return this; @@ -12971,8 +13022,9 @@ public Builder mergeCategoricalValueSpec( } else { if (parameterValueSpecCase_ == 4) { categoricalValueSpecBuilder_.mergeFrom(value); + } else { + categoricalValueSpecBuilder_.setMessage(value); } - categoricalValueSpecBuilder_.setMessage(value); } parameterValueSpecCase_ = 4; return this; @@ -13225,8 +13277,9 @@ public Builder mergeDiscreteValueSpec( } else { if (parameterValueSpecCase_ == 5) { discreteValueSpecBuilder_.mergeFrom(value); + } else { + discreteValueSpecBuilder_.setMessage(value); } - discreteValueSpecBuilder_.setMessage(value); } parameterValueSpecCase_ = 5; return this; @@ -14197,6 +14250,8 @@ private DecayCurveAutomatedStoppingSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -14797,6 +14852,8 @@ private MedianAutomatedStoppingSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -15304,10 +15361,9 @@ public com.google.protobuf.Parser getParserForType( } } - @java.lang.Deprecated - public interface ConvexStopConfigOrBuilder + public interface ConvexAutomatedStoppingSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) com.google.protobuf.MessageOrBuilder { /** @@ -15316,49 +15372,50 @@ public interface ConvexStopConfigOrBuilder *
      * 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.
+     * tuning. If not defined, it will learn it from the completed trials. When
+     * use_steps is false, this field is set to the maximum elapsed seconds.
      * 
* - * int64 max_num_steps = 1; + * int64 max_step_count = 1; * - * @return The maxNumSteps. + * @return The maxStepCount. */ - long getMaxNumSteps(); + long getMaxStepCount(); /** * * *
      * 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
+     * a measurement with step_count > min_step_count 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.
+     * at any stage. By default, min_step_count is set to be one-tenth of the
+     * max_step_count.
+     * When use_elapsed_duration is true, this field is set to the minimum
+     * elapsed seconds.
      * 
* - * int64 min_num_steps = 2; + * int64 min_step_count = 2; * - * @return The minNumSteps. + * @return The minStepCount. */ - long getMinNumSteps(); + long getMinStepCount(); /** * * *
-     * 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.
+     * The minimal number of measurements in a Trial.  Early-stopping checks
+     * will not trigger if less than min_measurement_count+1 completed trials or
+     * pending trials with less than min_measurement_count measurements. If not
+     * defined, the default value is 5.
      * 
* - * int64 autoregressive_order = 3; + * int64 min_measurement_count = 3; * - * @return The autoregressiveOrder. + * @return The minMeasurementCount. */ - long getAutoregressiveOrder(); + long getMinMeasurementCount(); /** * @@ -15396,47 +15453,57 @@ public interface ConvexStopConfigOrBuilder * *
      * 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.
+     * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+     * decision is made according to the predicted objective values according to
+     * the target steps. If use_elapsed_duration==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; + * bool use_elapsed_duration = 5; * - * @return The useSeconds. + * @return The useElapsedDuration. */ - boolean getUseSeconds(); + boolean getUseElapsedDuration(); } /** * * *
-   * Configuration for ConvexStopPolicy.
+   * Configuration for ConvexAutomatedStoppingSpec.
+   * When there are enough completed trials (configured by
+   * min_measurement_count), for pending trials with enough measurements and
+   * steps, the policy first computes an overestimate of the objective value at
+   * max_num_steps according to the slope of the incomplete objective value
+   * curve. No prediction can be made if the curve is completely flat. If the
+   * overestimation is worse than the best objective value of the completed
+   * trials, this pending trial will be early-stopped, but a last measurement
+   * will be added to the pending trial with max_num_steps and predicted
+   * objective value from the autoregression model.
    * 
* - * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} */ - @java.lang.Deprecated - public static final class ConvexStopConfig extends com.google.protobuf.GeneratedMessageV3 + public static final class ConvexAutomatedStoppingSpec + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) - ConvexStopConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + ConvexAutomatedStoppingSpecOrBuilder { private static final long serialVersionUID = 0L; - // Use ConvexStopConfig.newBuilder() to construct. - private ConvexStopConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConvexAutomatedStoppingSpec.newBuilder() to construct. + private ConvexAutomatedStoppingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConvexStopConfig() { + private ConvexAutomatedStoppingSpec() { learningRateParameterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConvexStopConfig(); + return new ConvexAutomatedStoppingSpec(); } @java.lang.Override @@ -15444,7 +15511,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ConvexStopConfig( + private ConvexAutomatedStoppingSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15464,17 +15531,17 @@ private ConvexStopConfig( break; case 8: { - maxNumSteps_ = input.readInt64(); + maxStepCount_ = input.readInt64(); break; } case 16: { - minNumSteps_ = input.readInt64(); + minStepCount_ = input.readInt64(); break; } case 24: { - autoregressiveOrder_ = input.readInt64(); + minMeasurementCount_ = input.readInt64(); break; } case 34: @@ -15486,7 +15553,7 @@ private ConvexStopConfig( } case 40: { - useSeconds_ = input.readBool(); + useElapsedDuration_ = input.readBool(); break; } default: @@ -15500,6 +15567,8 @@ private ConvexStopConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -15510,82 +15579,84 @@ private ConvexStopConfig( 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; + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_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 + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.class, - com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder.class); + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder + .class); } - public static final int MAX_NUM_STEPS_FIELD_NUMBER = 1; - private long maxNumSteps_; + public static final int MAX_STEP_COUNT_FIELD_NUMBER = 1; + private long maxStepCount_; /** * * *
      * 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.
+     * tuning. If not defined, it will learn it from the completed trials. When
+     * use_steps is false, this field is set to the maximum elapsed seconds.
      * 
* - * int64 max_num_steps = 1; + * int64 max_step_count = 1; * - * @return The maxNumSteps. + * @return The maxStepCount. */ @java.lang.Override - public long getMaxNumSteps() { - return maxNumSteps_; + public long getMaxStepCount() { + return maxStepCount_; } - public static final int MIN_NUM_STEPS_FIELD_NUMBER = 2; - private long minNumSteps_; + public static final int MIN_STEP_COUNT_FIELD_NUMBER = 2; + private long minStepCount_; /** * * *
      * 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
+     * a measurement with step_count > min_step_count 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.
+     * at any stage. By default, min_step_count is set to be one-tenth of the
+     * max_step_count.
+     * When use_elapsed_duration is true, this field is set to the minimum
+     * elapsed seconds.
      * 
* - * int64 min_num_steps = 2; + * int64 min_step_count = 2; * - * @return The minNumSteps. + * @return The minStepCount. */ @java.lang.Override - public long getMinNumSteps() { - return minNumSteps_; + public long getMinStepCount() { + return minStepCount_; } - public static final int AUTOREGRESSIVE_ORDER_FIELD_NUMBER = 3; - private long autoregressiveOrder_; + public static final int MIN_MEASUREMENT_COUNT_FIELD_NUMBER = 3; + private long minMeasurementCount_; /** * * *
-     * 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.
+     * The minimal number of measurements in a Trial.  Early-stopping checks
+     * will not trigger if less than min_measurement_count+1 completed trials or
+     * pending trials with less than min_measurement_count measurements. If not
+     * defined, the default value is 5.
      * 
* - * int64 autoregressive_order = 3; + * int64 min_measurement_count = 3; * - * @return The autoregressiveOrder. + * @return The minMeasurementCount. */ @java.lang.Override - public long getAutoregressiveOrder() { - return autoregressiveOrder_; + public long getMinMeasurementCount() { + return minMeasurementCount_; } public static final int LEARNING_RATE_PARAMETER_NAME_FIELD_NUMBER = 4; @@ -15643,27 +15714,28 @@ public com.google.protobuf.ByteString getLearningRateParameterNameBytes() { } } - public static final int USE_SECONDS_FIELD_NUMBER = 5; - private boolean useSeconds_; + public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 5; + private boolean useElapsedDuration_; /** * * *
      * 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.
+     * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+     * decision is made according to the predicted objective values according to
+     * the target steps. If use_elapsed_duration==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; + * bool use_elapsed_duration = 5; * - * @return The useSeconds. + * @return The useElapsedDuration. */ @java.lang.Override - public boolean getUseSeconds() { - return useSeconds_; + public boolean getUseElapsedDuration() { + return useElapsedDuration_; } private byte memoizedIsInitialized = -1; @@ -15680,20 +15752,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxNumSteps_ != 0L) { - output.writeInt64(1, maxNumSteps_); + if (maxStepCount_ != 0L) { + output.writeInt64(1, maxStepCount_); } - if (minNumSteps_ != 0L) { - output.writeInt64(2, minNumSteps_); + if (minStepCount_ != 0L) { + output.writeInt64(2, minStepCount_); } - if (autoregressiveOrder_ != 0L) { - output.writeInt64(3, autoregressiveOrder_); + if (minMeasurementCount_ != 0L) { + output.writeInt64(3, minMeasurementCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(learningRateParameterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, learningRateParameterName_); } - if (useSeconds_ != false) { - output.writeBool(5, useSeconds_); + if (useElapsedDuration_ != false) { + output.writeBool(5, useElapsedDuration_); } unknownFields.writeTo(output); } @@ -15704,21 +15776,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maxNumSteps_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxNumSteps_); + if (maxStepCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxStepCount_); } - if (minNumSteps_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minNumSteps_); + if (minStepCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minStepCount_); } - if (autoregressiveOrder_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, autoregressiveOrder_); + if (minMeasurementCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, minMeasurementCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(learningRateParameterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, learningRateParameterName_); } - if (useSeconds_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, useSeconds_); + if (useElapsedDuration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, useElapsedDuration_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -15730,18 +15802,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig)) { + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec)) { return super.equals(obj); } - com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig other = - (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) obj; + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec other = + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) obj; - if (getMaxNumSteps() != other.getMaxNumSteps()) return false; - if (getMinNumSteps() != other.getMinNumSteps()) return false; - if (getAutoregressiveOrder() != other.getAutoregressiveOrder()) return false; + if (getMaxStepCount() != other.getMaxStepCount()) return false; + if (getMinStepCount() != other.getMinStepCount()) return false; + if (getMinMeasurementCount() != other.getMinMeasurementCount()) return false; if (!getLearningRateParameterName().equals(other.getLearningRateParameterName())) return false; - if (getUseSeconds() != other.getUseSeconds()) return false; + if (getUseElapsedDuration() != other.getUseElapsedDuration()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -15753,89 +15826,95 @@ public int hashCode() { } 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) + MAX_STEP_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxStepCount()); + hash = (37 * hash) + MIN_STEP_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinStepCount()); + hash = (37 * hash) + MIN_MEASUREMENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinMeasurementCount()); 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 = (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.ConvexStopConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + 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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + parseFrom( + java.nio.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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + 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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + parseFrom( + com.google.protobuf.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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + 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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + parseFrom(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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + 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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + parseFrom( + java.io.InputStream input, com.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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + 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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + parseDelimitedFrom( + java.io.InputStream input, com.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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + parseFrom(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 { + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @@ -15850,7 +15929,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig prototype) { + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -15869,32 +15948,43 @@ protected Builder newBuilderForType( * * *
-     * Configuration for ConvexStopPolicy.
+     * Configuration for ConvexAutomatedStoppingSpec.
+     * When there are enough completed trials (configured by
+     * min_measurement_count), for pending trials with enough measurements and
+     * steps, the policy first computes an overestimate of the objective value at
+     * max_num_steps according to the slope of the incomplete objective value
+     * curve. No prediction can be made if the curve is completely flat. If the
+     * overestimation is worse than the best objective value of the completed
+     * trials, this pending trial will be early-stopped, but a last measurement
+     * will be added to the pending trial with max_num_steps and predicted
+     * objective value from the autoregression model.
      * 
* - * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} */ 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 { + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder { 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; + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_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 + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.class, - com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder.class); + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder + .class); } - // Construct using com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.newBuilder() + // Construct using + // com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -15911,15 +16001,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - maxNumSteps_ = 0L; + maxStepCount_ = 0L; - minNumSteps_ = 0L; + minStepCount_ = 0L; - autoregressiveOrder_ = 0L; + minMeasurementCount_ = 0L; learningRateParameterName_ = ""; - useSeconds_ = false; + useElapsedDuration_ = false; return this; } @@ -15927,18 +16017,20 @@ public Builder clear() { @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; + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexAutomatedStoppingSpec_descriptor; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig build() { - com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig result = buildPartial(); + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec build() { + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15946,12 +16038,1208 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig build() { } @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_; + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + buildPartial() { + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec result = + new com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(this); + result.maxStepCount_ = maxStepCount_; + result.minStepCount_ = minStepCount_; + result.minMeasurementCount_ = minMeasurementCount_; + result.learningRateParameterName_ = learningRateParameterName_; + 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.ConvexAutomatedStoppingSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance()) return this; + if (other.getMaxStepCount() != 0L) { + setMaxStepCount(other.getMaxStepCount()); + } + if (other.getMinStepCount() != 0L) { + setMinStepCount(other.getMinStepCount()); + } + if (other.getMinMeasurementCount() != 0L) { + setMinMeasurementCount(other.getMinMeasurementCount()); + } + if (!other.getLearningRateParameterName().isEmpty()) { + learningRateParameterName_ = other.learningRateParameterName_; + onChanged(); + } + 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.ConvexAutomatedStoppingSpec parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxStepCount_; + /** + * + * + *
+       * 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. If not defined, it will learn it from the completed trials. When
+       * use_steps is false, this field is set to the maximum elapsed seconds.
+       * 
+ * + * int64 max_step_count = 1; + * + * @return The maxStepCount. + */ + @java.lang.Override + public long getMaxStepCount() { + return maxStepCount_; + } + /** + * + * + *
+       * 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. If not defined, it will learn it from the completed trials. When
+       * use_steps is false, this field is set to the maximum elapsed seconds.
+       * 
+ * + * int64 max_step_count = 1; + * + * @param value The maxStepCount to set. + * @return This builder for chaining. + */ + public Builder setMaxStepCount(long value) { + + maxStepCount_ = 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. If not defined, it will learn it from the completed trials. When
+       * use_steps is false, this field is set to the maximum elapsed seconds.
+       * 
+ * + * int64 max_step_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxStepCount() { + + maxStepCount_ = 0L; + onChanged(); + return this; + } + + private long minStepCount_; + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+       * max_step_count.
+       * When use_elapsed_duration is true, this field is set to the minimum
+       * elapsed seconds.
+       * 
+ * + * int64 min_step_count = 2; + * + * @return The minStepCount. + */ + @java.lang.Override + public long getMinStepCount() { + return minStepCount_; + } + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+       * max_step_count.
+       * When use_elapsed_duration is true, this field is set to the minimum
+       * elapsed seconds.
+       * 
+ * + * int64 min_step_count = 2; + * + * @param value The minStepCount to set. + * @return This builder for chaining. + */ + public Builder setMinStepCount(long value) { + + minStepCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the
+       * max_step_count.
+       * When use_elapsed_duration is true, this field is set to the minimum
+       * elapsed seconds.
+       * 
+ * + * int64 min_step_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinStepCount() { + + minStepCount_ = 0L; + onChanged(); + return this; + } + + private long minMeasurementCount_; + /** + * + * + *
+       * The minimal number of measurements in a Trial.  Early-stopping checks
+       * will not trigger if less than min_measurement_count+1 completed trials or
+       * pending trials with less than min_measurement_count measurements. If not
+       * defined, the default value is 5.
+       * 
+ * + * int64 min_measurement_count = 3; + * + * @return The minMeasurementCount. + */ + @java.lang.Override + public long getMinMeasurementCount() { + return minMeasurementCount_; + } + /** + * + * + *
+       * The minimal number of measurements in a Trial.  Early-stopping checks
+       * will not trigger if less than min_measurement_count+1 completed trials or
+       * pending trials with less than min_measurement_count measurements. If not
+       * defined, the default value is 5.
+       * 
+ * + * int64 min_measurement_count = 3; + * + * @param value The minMeasurementCount to set. + * @return This builder for chaining. + */ + public Builder setMinMeasurementCount(long value) { + + minMeasurementCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The minimal number of measurements in a Trial.  Early-stopping checks
+       * will not trigger if less than min_measurement_count+1 completed trials or
+       * pending trials with less than min_measurement_count measurements. If not
+       * defined, the default value is 5.
+       * 
+ * + * int64 min_measurement_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearMinMeasurementCount() { + + minMeasurementCount_ = 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 useElapsedDuration_; + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+       * decision is made according to the predicted objective values according to
+       * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @return The useElapsedDuration. + */ + @java.lang.Override + public boolean getUseElapsedDuration() { + return useElapsedDuration_; + } + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+       * decision is made according to the predicted objective values according to
+       * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @param value The useElapsedDuration to set. + * @return This builder for chaining. + */ + public Builder setUseElapsedDuration(boolean value) { + + useElapsedDuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_elapsed_duration==false, the early stopping
+       * decision is made according to the predicted objective values according to
+       * the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + * + * @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.ConvexAutomatedStoppingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + private static final com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConvexAutomatedStoppingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConvexAutomatedStoppingSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.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.ConvexAutomatedStoppingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + 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} + */ + @java.lang.Deprecated + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(learningRateParameterName_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(learningRateParameterName_)) { + 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(); @@ -16498,6 +17786,7 @@ public enum AutomatedStoppingSpecCase MEDIAN_AUTOMATED_STOPPING_SPEC(5), @java.lang.Deprecated CONVEX_STOP_CONFIG(8), + CONVEX_AUTOMATED_STOPPING_SPEC(9), AUTOMATEDSTOPPINGSPEC_NOT_SET(0); private final int value; @@ -16522,6 +17811,8 @@ public static AutomatedStoppingSpecCase forNumber(int value) { return MEDIAN_AUTOMATED_STOPPING_SPEC; case 8: return CONVEX_STOP_CONFIG; + case 9: + return CONVEX_AUTOMATED_STOPPING_SPEC; case 0: return AUTOMATEDSTOPPINGSPEC_NOT_SET; default: @@ -16677,6 +17968,8 @@ public boolean hasMedianAutomatedStoppingSpec() { * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See + * google/cloud/aiplatform/v1beta1/study.proto;l=553 * @return Whether the convexStopConfig field is set. */ @java.lang.Override @@ -16696,6 +17989,8 @@ public boolean hasConvexStopConfig() { * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See + * google/cloud/aiplatform/v1beta1/study.proto;l=553 * @return The convexStopConfig. */ @java.lang.Override @@ -16730,6 +18025,69 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig getConvexS return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); } + public static final int CONVEX_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER = 9; + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return Whether the convexAutomatedStoppingSpec field is set. + */ + @java.lang.Override + public boolean hasConvexAutomatedStoppingSpec() { + return automatedStoppingSpecCase_ == 9; + } + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return The convexAutomatedStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + getConvexAutomatedStoppingSpec() { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder + getConvexAutomatedStoppingSpecOrBuilder() { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + public static final int METRICS_FIELD_NUMBER = 1; private java.util.List metrics_; /** @@ -17070,6 +18428,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 8, (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) automatedStoppingSpec_); } + if (automatedStoppingSpecCase_ == 9) { + output.writeMessage( + 9, + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_); + } unknownFields.writeTo(output); } @@ -17123,6 +18487,13 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) automatedStoppingSpec_); } + if (automatedStoppingSpecCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -17156,6 +18527,10 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getConvexStopConfig().equals(other.getConvexStopConfig())) return false; break; + case 9: + if (!getConvexAutomatedStoppingSpec().equals(other.getConvexAutomatedStoppingSpec())) + return false; + break; case 0: default: } @@ -17197,6 +18572,10 @@ public int hashCode() { hash = (37 * hash) + CONVEX_STOP_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConvexStopConfig().hashCode(); break; + case 9: + hash = (37 * hash) + CONVEX_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getConvexAutomatedStoppingSpec().hashCode(); + break; case 0: default: } @@ -17417,6 +18796,13 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec buildPartial() { result.automatedStoppingSpec_ = convexStopConfigBuilder_.build(); } } + if (automatedStoppingSpecCase_ == 9) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + result.automatedStoppingSpec_ = automatedStoppingSpec_; + } else { + result.automatedStoppingSpec_ = convexAutomatedStoppingSpecBuilder_.build(); + } + } if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); @@ -17567,6 +18953,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec other) { mergeConvexStopConfig(other.getConvexStopConfig()); break; } + case CONVEX_AUTOMATED_STOPPING_SPEC: + { + mergeConvexAutomatedStoppingSpec(other.getConvexAutomatedStoppingSpec()); + break; + } case AUTOMATEDSTOPPINGSPEC_NOT_SET: { break; @@ -17751,8 +19142,9 @@ public Builder mergeDecayCurveStoppingSpec( } else { if (automatedStoppingSpecCase_ == 4) { decayCurveStoppingSpecBuilder_.mergeFrom(value); + } else { + decayCurveStoppingSpecBuilder_.setMessage(value); } - decayCurveStoppingSpecBuilder_.setMessage(value); } automatedStoppingSpecCase_ = 4; return this; @@ -17997,8 +19389,9 @@ public Builder mergeMedianAutomatedStoppingSpec( } else { if (automatedStoppingSpecCase_ == 5) { medianAutomatedStoppingSpecBuilder_.mergeFrom(value); + } else { + medianAutomatedStoppingSpecBuilder_.setMessage(value); } - medianAutomatedStoppingSpecBuilder_.setMessage(value); } automatedStoppingSpecCase_ = 5; return this; @@ -18126,6 +19519,8 @@ public Builder clearMedianAutomatedStoppingSpec() { * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See + * google/cloud/aiplatform/v1beta1/study.proto;l=553 * @return Whether the convexStopConfig field is set. */ @java.lang.Override @@ -18145,6 +19540,8 @@ public boolean hasConvexStopConfig() { * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See + * google/cloud/aiplatform/v1beta1/study.proto;l=553 * @return The convexStopConfig. */ @java.lang.Override @@ -18247,8 +19644,9 @@ public Builder mergeConvexStopConfig( } else { if (automatedStoppingSpecCase_ == 8) { convexStopConfigBuilder_.mergeFrom(value); + } else { + convexStopConfigBuilder_.setMessage(value); } - convexStopConfigBuilder_.setMessage(value); } automatedStoppingSpecCase_ = 8; return this; @@ -18364,6 +19762,251 @@ public Builder clearConvexStopConfig() { return convexStopConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder> + convexAutomatedStoppingSpecBuilder_; + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return Whether the convexAutomatedStoppingSpec field is set. + */ + @java.lang.Override + public boolean hasConvexAutomatedStoppingSpec() { + return automatedStoppingSpecCase_ == 9; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return The convexAutomatedStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + getConvexAutomatedStoppingSpec() { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } else { + if (automatedStoppingSpecCase_ == 9) { + return convexAutomatedStoppingSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder setConvexAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec value) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automatedStoppingSpec_ = value; + onChanged(); + } else { + convexAutomatedStoppingSpecBuilder_.setMessage(value); + } + automatedStoppingSpecCase_ = 9; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder setConvexAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder + builderForValue) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + automatedStoppingSpec_ = builderForValue.build(); + onChanged(); + } else { + convexAutomatedStoppingSpecBuilder_.setMessage(builderForValue.build()); + } + automatedStoppingSpecCase_ = 9; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder mergeConvexAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec value) { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 9 + && automatedStoppingSpec_ + != com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance()) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + automatedStoppingSpec_ = value; + } + onChanged(); + } else { + if (automatedStoppingSpecCase_ == 9) { + convexAutomatedStoppingSpecBuilder_.mergeFrom(value); + } else { + convexAutomatedStoppingSpecBuilder_.setMessage(value); + } + } + automatedStoppingSpecCase_ = 9; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public Builder clearConvexAutomatedStoppingSpec() { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 9) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + onChanged(); + } + } else { + if (automatedStoppingSpecCase_ == 9) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + } + convexAutomatedStoppingSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder + getConvexAutomatedStoppingSpecBuilder() { + return getConvexAutomatedStoppingSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder + getConvexAutomatedStoppingSpecOrBuilder() { + if ((automatedStoppingSpecCase_ == 9) && (convexAutomatedStoppingSpecBuilder_ != null)) { + return convexAutomatedStoppingSpecBuilder_.getMessageOrBuilder(); + } else { + if (automatedStoppingSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The automated early stopping spec using convex stopping rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder> + getConvexAutomatedStoppingSpecFieldBuilder() { + if (convexAutomatedStoppingSpecBuilder_ == null) { + if (!(automatedStoppingSpecCase_ == 9)) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + .getDefaultInstance(); + } + convexAutomatedStoppingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + automatedStoppingSpec_, + getParentForChildren(), + isClean()); + automatedStoppingSpec_ = null; + } + automatedStoppingSpecCase_ = 9; + onChanged(); + ; + return convexAutomatedStoppingSpecBuilder_; + } + 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 a3cadd34f..12604428d 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 @@ -121,6 +121,8 @@ public interface StudySpecOrBuilder * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See + * google/cloud/aiplatform/v1beta1/study.proto;l=553 * @return Whether the convexStopConfig field is set. */ @java.lang.Deprecated @@ -137,6 +139,8 @@ public interface StudySpecOrBuilder * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See + * google/cloud/aiplatform/v1beta1/study.proto;l=553 * @return The convexStopConfig. */ @java.lang.Deprecated @@ -157,6 +161,49 @@ public interface StudySpecOrBuilder com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder getConvexStopConfigOrBuilder(); + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return Whether the convexAutomatedStoppingSpec field is set. + */ + boolean hasConvexAutomatedStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + * + * @return The convexAutomatedStoppingSpec. + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + getConvexAutomatedStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using convex stopping rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; + * + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpecOrBuilder + getConvexAutomatedStoppingSpecOrBuilder(); + /** * * 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 index 6a58cd825..9ed5eb2aa 100644 --- 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 @@ -106,6 +106,8 @@ private SuggestTrialsMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 77e538d14..89d4532a6 100644 --- 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 @@ -101,6 +101,8 @@ private SuggestTrialsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index c057a429c..8038c7a73 100644 --- 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 @@ -131,6 +131,8 @@ private SuggestTrialsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java index 341132e6b..cb944d1fa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java @@ -96,6 +96,8 @@ private TFRecordDestination( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java index c8662de6a..292ea77d6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java @@ -188,6 +188,8 @@ private Tensorboard( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -639,7 +641,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -690,7 +692,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -715,7 +717,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2449,7 +2451,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2501,7 +2503,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2526,7 +2528,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2558,7 +2560,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2587,11 +2589,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java index c579d9606..5eef29a62 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java @@ -94,6 +94,8 @@ private TensorboardBlob( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java index 945a939a4..f148bfec4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java @@ -96,6 +96,8 @@ private TensorboardBlobSequence( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java index 414894935..2dca719ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java @@ -62,42 +62,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/tensor" + "board_data.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1\032\034google/api/annotations.proto\032" - + "\037google/api/field_behavior.proto\032=google" - + "/cloud/aiplatform/v1beta1/tensorboard_ti" - + "me_series.proto\032\037google/protobuf/timesta" - + "mp.proto\"\342\001\n\016TimeSeriesData\022\'\n\032tensorboa" - + "rd_time_series_id\030\001 \001(\tB\003\340A\002\022\\\n\nvalue_ty" - + "pe\030\002 \001(\0162@.google.cloud.aiplatform.v1bet" - + "a1.TensorboardTimeSeries.ValueTypeB\006\340A\002\340" - + "A\005\022I\n\006values\030\003 \003(\01324.google.cloud.aiplat" - + "form.v1beta1.TimeSeriesDataPointB\003\340A\002\"\247\002" - + "\n\023TimeSeriesDataPoint\0229\n\006scalar\030\003 \001(\0132\'." - + "google.cloud.aiplatform.v1beta1.ScalarH\000" - + "\022D\n\006tensor\030\004 \001(\01322.google.cloud.aiplatfo" - + "rm.v1beta1.TensorboardTensorH\000\022I\n\005blobs\030" - + "\005 \001(\01328.google.cloud.aiplatform.v1beta1." - + "TensorboardBlobSequenceH\000\022-\n\twall_time\030\001" - + " \001(\0132\032.google.protobuf.Timestamp\022\014\n\004step" - + "\030\002 \001(\003B\007\n\005value\"\027\n\006Scalar\022\r\n\005value\030\001 \001(\001" - + "\"D\n\021TensorboardTensor\022\022\n\005value\030\001 \001(\014B\003\340A" - + "\002\022\033\n\016version_number\030\002 \001(\005B\003\340A\001\"[\n\027Tensor" - + "boardBlobSequence\022@\n\006values\030\001 \003(\01320.goog" - + "le.cloud.aiplatform.v1beta1.TensorboardB" - + "lob\"5\n\017TensorboardBlob\022\017\n\002id\030\001 \001(\tB\003\340A\003\022" - + "\021\n\004data\030\002 \001(\014B\003\340A\001B\361\001\n#com.google.cloud." - + "aiplatform.v1beta1B\024TensorboardDataProto" - + "P\001ZIgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1beta1;aiplatform\252\002\037" - + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" - + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" - + "d::AIPlatform::V1beta1b\006proto3" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "to\032=google/cloud/aiplatform/v1beta1/tens" + + "orboard_time_series.proto\032\037google/protob" + + "uf/timestamp.proto\"\342\001\n\016TimeSeriesData\022\'\n" + + "\032tensorboard_time_series_id\030\001 \001(\tB\003\340A\002\022\\" + + "\n\nvalue_type\030\002 \001(\0162@.google.cloud.aiplat" + + "form.v1beta1.TensorboardTimeSeries.Value" + + "TypeB\006\340A\002\340A\005\022I\n\006values\030\003 \003(\01324.google.cl" + + "oud.aiplatform.v1beta1.TimeSeriesDataPoi" + + "ntB\003\340A\002\"\247\002\n\023TimeSeriesDataPoint\0229\n\006scala" + + "r\030\003 \001(\0132\'.google.cloud.aiplatform.v1beta" + + "1.ScalarH\000\022D\n\006tensor\030\004 \001(\01322.google.clou" + + "d.aiplatform.v1beta1.TensorboardTensorH\000" + + "\022I\n\005blobs\030\005 \001(\01328.google.cloud.aiplatfor" + + "m.v1beta1.TensorboardBlobSequenceH\000\022-\n\tw" + + "all_time\030\001 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\014\n\004step\030\002 \001(\003B\007\n\005value\"\027\n\006Scalar\022\r\n\005v" + + "alue\030\001 \001(\001\"D\n\021TensorboardTensor\022\022\n\005value" + + "\030\001 \001(\014B\003\340A\002\022\033\n\016version_number\030\002 \001(\005B\003\340A\001" + + "\"[\n\027TensorboardBlobSequence\022@\n\006values\030\001 " + + "\003(\01320.google.cloud.aiplatform.v1beta1.Te" + + "nsorboardBlob\"5\n\017TensorboardBlob\022\017\n\002id\030\001" + + " \001(\tB\003\340A\003\022\021\n\004data\030\002 \001(\014B\003\340A\001B\361\001\n#com.goo" + + "gle.cloud.aiplatform.v1beta1B\024Tensorboar" + + "dDataProtoP\001ZIgoogle.golang.org/genproto" + + "/googleapis/cloud/aiplatform/v1beta1;aip" + + "latform\252\002\037Google.Cloud.AIPlatform.V1Beta" + + "1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Go" + + "ogle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -155,7 +153,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java index 2146a6a66..e6d1a292c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java @@ -165,6 +165,8 @@ private TensorboardExperiment( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -496,7 +498,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -553,7 +555,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -581,7 +583,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1952,7 +1954,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2010,7 +2012,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2038,7 +2040,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2073,7 +2075,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2105,11 +2107,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java index 27b70bfda..c382f6d3c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java @@ -264,7 +264,12 @@ public interface TensorboardExperimentOrBuilder * * map<string, string> labels = 6; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java index 96fcaab2d..f39f34578 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java @@ -46,35 +46,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\nmap<string, string> labels = 8; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java index 9b8c53636..3a3a65741 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java @@ -46,38 +46,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1beta1/tensor" + "board.proto\022\037google.cloud.aiplatform.v1b" - + "eta1\032\034google/api/annotations.proto\032\037goog" - + "le/api/field_behavior.proto\032\031google/api/" - + "resource.proto\0325google/cloud/aiplatform/" - + "v1beta1/encryption_spec.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\274\004\n\013Tensorboard\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB" - + "\003\340A\002\022\023\n\013description\030\003 \001(\t\022H\n\017encryption_" - + "spec\030\013 \001(\0132/.google.cloud.aiplatform.v1b" - + "eta1.EncryptionSpec\022%\n\030blob_storage_path" - + "_prefix\030\n \001(\tB\003\340A\003\022\026\n\trun_count\030\005 \001(\005B\003\340" - + "A\003\0224\n\013create_time\030\006 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022H\n\006labels" - + "\030\010 \003(\01328.google.cloud.aiplatform.v1beta1" - + ".Tensorboard.LabelsEntry\022\014\n\004etag\030\t \001(\t\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:n\352Ak\n%aiplatform.googleapis.com/Te" - + "nsorboard\022Bprojects/{project}/locations/" - + "{location}/tensorboards/{tensorboard}B\355\001" - + "\n#com.google.cloud.aiplatform.v1beta1B\020T" - + "ensorboardProtoP\001ZIgoogle.golang.org/gen" - + "proto/googleapis/cloud/aiplatform/v1beta" - + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" - + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" - + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" - + "roto3" + + "eta1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\0325google/cloud/a" + + "iplatform/v1beta1/encryption_spec.proto\032" + + "\037google/protobuf/timestamp.proto\"\274\004\n\013Ten" + + "sorboard\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_n" + + "ame\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022H\n\017e" + + "ncryption_spec\030\013 \001(\0132/.google.cloud.aipl" + + "atform.v1beta1.EncryptionSpec\022%\n\030blob_st" + + "orage_path_prefix\030\n \001(\tB\003\340A\003\022\026\n\trun_coun" + + "t\030\005 \001(\005B\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" + + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022H\n\006labels\030\010 \003(\01328.google.cloud.aiplatfo" + + "rm.v1beta1.Tensorboard.LabelsEntry\022\014\n\004et" + + "ag\030\t \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001:n\352Ak\n%aiplatform.googlea" + + "pis.com/Tensorboard\022Bprojects/{project}/" + + "locations/{location}/tensorboards/{tenso" + + "rboard}B\355\001\n#com.google.cloud.aiplatform." + + "v1beta1B\020TensorboardProtoP\001ZIgoogle.gola" + + "ng.org/genproto/googleapis/cloud/aiplatf" + + "orm/v1beta1;aiplatform\252\002\037Google.Cloud.AI" + + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::" + + "V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), @@ -116,7 +114,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java index 016128bad..2e7923ca9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java @@ -157,6 +157,8 @@ private TensorboardRun( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -495,7 +497,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -558,7 +560,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -589,7 +591,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1907,7 +1909,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1971,7 +1973,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2002,7 +2004,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2040,7 +2042,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2075,11 +2077,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java index 2bea4c3d5..8c4e7b5c5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java @@ -280,7 +280,12 @@ public interface TensorboardRunOrBuilder * * map<string, string> labels = 8; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java index 944f8e00c..fffbbb906 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java @@ -46,34 +46,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/aiplatform/v1beta1/tensor" + "board_run.proto\022\037google.cloud.aiplatform" - + ".v1beta1\032\034google/api/annotations.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\"\342\003\n\016TensorboardRun\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013" - + "description\030\003 \001(\t\0224\n\013create_time\030\006 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022K\n\006labels\030\010 \003(\0132;.google.cloud.aip" - + "latform.v1beta1.TensorboardRun.LabelsEnt" - + "ry\022\014\n\004etag\030\t \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\226\001\352A\222\001\n(aiplatfo" - + "rm.googleapis.com/TensorboardRun\022fprojec" - + "ts/{project}/locations/{location}/tensor" - + "boards/{tensorboard}/experiments/{experi" - + "ment}/runs/{run}B\360\001\n#com.google.cloud.ai" - + "platform.v1beta1B\023TensorboardRunProtoP\001Z" - + "Igoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1beta1;aiplatform\252\002\037Goo" - + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" - + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" - + "AIPlatform::V1beta1b\006proto3" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\342\003\n\016TensorboardRun" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(" + + "\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\0224\n\013create_ti" + + "me\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013update_time\030\007 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022K\n\006labels\030\010 \003(\0132;.google" + + ".cloud.aiplatform.v1beta1.TensorboardRun" + + ".LabelsEntry\022\014\n\004etag\030\t \001(\t\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\226\001\352A\222\001" + + "\n(aiplatform.googleapis.com/TensorboardR" + + "un\022fprojects/{project}/locations/{locati" + + "on}/tensorboards/{tensorboard}/experimen" + + "ts/{experiment}/runs/{run}B\360\001\n#com.googl" + + "e.cloud.aiplatform.v1beta1B\023TensorboardR" + + "unProtoP\001ZIgoogle.golang.org/genproto/go" + + "ogleapis/cloud/aiplatform/v1beta1;aiplat" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -102,7 +100,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java index ca6f9351f..8d3f3203c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java @@ -91,6 +91,8 @@ private TensorboardTensor( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java index 55026858d..5dfb67cda 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java @@ -182,6 +182,8 @@ private TensorboardTimeSeries( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -554,6 +556,8 @@ private Metadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java index 91d9b9269..bff59fee1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java @@ -46,44 +46,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n=google/cloud/aiplatform/v1beta1/tensor" + "board_time_series.proto\022\037google.cloud.ai" - + "platform.v1beta1\032\034google/api/annotations" - + ".proto\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032\037google/proto" - + "buf/timestamp.proto\"\311\006\n\025TensorboardTimeS" - + "eries\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name" - + "\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\\\n\nvalu" - + "e_type\030\004 \001(\0162@.google.cloud.aiplatform.v" - + "1beta1.TensorboardTimeSeries.ValueTypeB\006" - + "\340A\002\340A\005\0224\n\013create_time\030\005 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004et" - + "ag\030\007 \001(\t\022\030\n\013plugin_name\030\010 \001(\tB\003\340A\005\022\023\n\013pl" - + "ugin_data\030\t \001(\014\022V\n\010metadata\030\n \001(\0132?.goog" - + "le.cloud.aiplatform.v1beta1.TensorboardT" - + "imeSeries.MetadataB\003\340A\003\032\200\001\n\010Metadata\022\025\n\010" - + "max_step\030\001 \001(\003B\003\340A\003\0226\n\rmax_wall_time\030\002 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022%\n\030m" - + "ax_blob_sequence_length\030\003 \001(\003B\003\340A\003\"R\n\tVa" - + "lueType\022\032\n\026VALUE_TYPE_UNSPECIFIED\020\000\022\n\n\006S" - + "CALAR\020\001\022\n\n\006TENSOR\020\002\022\021\n\rBLOB_SEQUENCE\020\003:\266" - + "\001\352A\262\001\n/aiplatform.googleapis.com/Tensorb" - + "oardTimeSeries\022\177projects/{project}/locat" - + "ions/{location}/tensorboards/{tensorboar" - + "d}/experiments/{experiment}/runs/{run}/t" - + "imeSeries/{time_series}B\367\001\n#com.google.c" - + "loud.aiplatform.v1beta1B\032TensorboardTime" - + "SeriesProtoP\001ZIgoogle.golang.org/genprot" - + "o/googleapis/cloud/aiplatform/v1beta1;ai" - + "platform\252\002\037Google.Cloud.AIPlatform.V1Bet" - + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"G" - + "oogle::Cloud::AIPlatform::V1beta1b\006proto" - + "3" + + "platform.v1beta1\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\311\006\n\025Tensor" + + "boardTimeSeries\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di" + + "splay_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001" + + "(\t\022\\\n\nvalue_type\030\004 \001(\0162@.google.cloud.ai" + + "platform.v1beta1.TensorboardTimeSeries.V" + + "alueTypeB\006\340A\002\340A\005\0224\n\013create_time\030\005 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\006 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\014\n\004etag\030\007 \001(\t\022\030\n\013plugin_name\030\010 \001(\tB" + + "\003\340A\005\022\023\n\013plugin_data\030\t \001(\014\022V\n\010metadata\030\n " + + "\001(\0132?.google.cloud.aiplatform.v1beta1.Te" + + "nsorboardTimeSeries.MetadataB\003\340A\003\032\200\001\n\010Me" + + "tadata\022\025\n\010max_step\030\001 \001(\003B\003\340A\003\0226\n\rmax_wal" + + "l_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022%\n\030max_blob_sequence_length\030\003 \001(\003B" + + "\003\340A\003\"R\n\tValueType\022\032\n\026VALUE_TYPE_UNSPECIF" + + "IED\020\000\022\n\n\006SCALAR\020\001\022\n\n\006TENSOR\020\002\022\021\n\rBLOB_SE" + + "QUENCE\020\003:\266\001\352A\262\001\n/aiplatform.googleapis.c" + + "om/TensorboardTimeSeries\022\177projects/{proj" + + "ect}/locations/{location}/tensorboards/{" + + "tensorboard}/experiments/{experiment}/ru" + + "ns/{run}/timeSeries/{time_series}B\367\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\032Tenso" + + "rboardTimeSeriesProtoP\001ZIgoogle.golang.o" + + "rg/genproto/googleapis/cloud/aiplatform/" + + "v1beta1;aiplatform\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" + + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -121,7 +119,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java index 64005fad0..25a953b78 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java @@ -71,8 +71,8 @@ private ThresholdConfig( break; case 9: { - thresholdCase_ = 1; threshold_ = input.readDouble(); + thresholdCase_ = 1; break; } default: @@ -86,6 +86,8 @@ private ThresholdConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java index f6255ca3a..2f8539763 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java @@ -112,6 +112,8 @@ private TimeSeriesData( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java index c04c5e57b..86fafac8d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java @@ -154,6 +154,8 @@ private TimeSeriesDataPoint( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1014,8 +1016,9 @@ public Builder mergeScalar(com.google.cloud.aiplatform.v1beta1.Scalar value) { } else { if (valueCase_ == 3) { scalarBuilder_.mergeFrom(value); + } else { + scalarBuilder_.setMessage(value); } - scalarBuilder_.setMessage(value); } valueCase_ = 3; return this; @@ -1224,8 +1227,9 @@ public Builder mergeTensor(com.google.cloud.aiplatform.v1beta1.TensorboardTensor } else { if (valueCase_ == 4) { tensorBuilder_.mergeFrom(value); + } else { + tensorBuilder_.setMessage(value); } - tensorBuilder_.setMessage(value); } valueCase_ = 4; return this; @@ -1435,8 +1439,9 @@ public Builder mergeBlobs(com.google.cloud.aiplatform.v1beta1.TensorboardBlobSeq } else { if (valueCase_ == 5) { blobsBuilder_.mergeFrom(value); + } else { + blobsBuilder_.setMessage(value); } - blobsBuilder_.setMessage(value); } valueCase_ = 5; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java index 2574ad311..cbcda4918 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java @@ -106,6 +106,8 @@ private TimestampSplit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -254,13 +256,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { output.writeDouble(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { output.writeDouble(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { output.writeDouble(3, testFraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -275,13 +277,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (trainingFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_); } - if (validationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_); } - if (testFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java index 81d7f52d6..d486f9e47 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java @@ -86,6 +86,8 @@ private TrainingConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java index 7bcbabef4..598ad50f8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java @@ -45,6 +45,8 @@ private TrainingPipeline() { name_ = ""; displayName_ = ""; trainingTaskDefinition_ = ""; + modelId_ = ""; + parentModel_ = ""; state_ = 0; } @@ -271,6 +273,20 @@ private TrainingPipeline( encryptionSpec_ = subBuilder.buildPartial(); } + break; + } + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentModel_ = s; + break; + } + case 178: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelId_ = s; break; } default: @@ -284,6 +300,8 @@ private TrainingPipeline( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -753,6 +771,112 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelToUploadOrBuil return getModelToUpload(); } + public static final int MODEL_ID_FIELD_NUMBER = 22; + private volatile java.lang.Object modelId_; + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_MODEL_FIELD_NUMBER = 21; + private volatile java.lang.Object parentModel_; + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + @java.lang.Override + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STATE_FIELD_NUMBER = 9; private int state_; /** @@ -1088,7 +1212,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1131,7 +1255,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1152,7 +1276,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1278,6 +1402,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionSpec_ != null) { output.writeMessage(18, getEncryptionSpec()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, modelId_); + } unknownFields.writeTo(output); } @@ -1342,6 +1472,12 @@ public int getSerializedSize() { if (encryptionSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getEncryptionSpec()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, modelId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1377,6 +1513,8 @@ public boolean equals(final java.lang.Object obj) { if (hasModelToUpload()) { if (!getModelToUpload().equals(other.getModelToUpload())) return false; } + if (!getModelId().equals(other.getModelId())) return false; + if (!getParentModel().equals(other.getParentModel())) return false; if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { @@ -1436,6 +1574,10 @@ public int hashCode() { hash = (37 * hash) + MODEL_TO_UPLOAD_FIELD_NUMBER; hash = (53 * hash) + getModelToUpload().hashCode(); } + hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); + hash = (37 * hash) + PARENT_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getParentModel().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasError()) { @@ -1665,6 +1807,10 @@ public Builder clear() { modelToUpload_ = null; modelToUploadBuilder_ = null; } + modelId_ = ""; + + parentModel_ = ""; + state_ = 0; if (errorBuilder_ == null) { @@ -1755,6 +1901,8 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline buildPartial() { } else { result.modelToUpload_ = modelToUploadBuilder_.build(); } + result.modelId_ = modelId_; + result.parentModel_ = parentModel_; result.state_ = state_; if (errorBuilder_ == null) { result.error_ = error_; @@ -1862,6 +2010,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrainingPipeline ot if (other.hasModelToUpload()) { mergeModelToUpload(other.getModelToUpload()); } + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + onChanged(); + } + if (!other.getParentModel().isEmpty()) { + parentModel_ = other.parentModel_; + onChanged(); + } if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -3255,6 +3411,238 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelToUploadOrBuil return modelToUploadBuilder_; } + private java.lang.Object modelId_ = ""; + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + + modelId_ = getDefaultInstance().getModelId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelId_ = value; + onChanged(); + return this; + } + + private java.lang.Object parentModel_ = ""; + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentModel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearParentModel() { + + parentModel_ = getDefaultInstance().getParentModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentModel_ = value; + onChanged(); + return this; + } + private int state_ = 0; /** * @@ -4395,7 +4783,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -4439,7 +4827,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4460,7 +4848,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -4488,7 +4876,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -4513,11 +4901,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java index 75ec7dc0d..d14141d96 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java @@ -333,6 +333,64 @@ public interface TrainingPipelineOrBuilder */ com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelToUploadOrBuilder(); + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + java.lang.String getParentModel(); + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + com.google.protobuf.ByteString getParentModelBytes(); + /** * * @@ -619,7 +677,12 @@ public interface TrainingPipelineOrBuilder * * map<string, string> labels = 15; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java index 85115f56f..4b2868da2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java @@ -70,91 +70,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n7google/cloud/aiplatform/v1beta1/traini" + "ng_pipeline.proto\022\037google.cloud.aiplatfo" - + "rm.v1beta1\032\034google/api/annotations.proto" - + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\0325google/cloud/aipla" - + "tform/v1beta1/encryption_spec.proto\032(goo" - + "gle/cloud/aiplatform/v1beta1/io.proto\0327g" - + "oogle/cloud/aiplatform/v1beta1/machine_r" - + "esources.proto\032Dgoogle/cloud/aiplatform/" - + "v1beta1/manual_batch_tuning_parameters.p" - + "roto\032+google/cloud/aiplatform/v1beta1/mo" - + "del.proto\0324google/cloud/aiplatform/v1bet" - + "a1/pipeline_state.proto\032\034google/protobuf" - + "/struct.proto\032\037google/protobuf/timestamp" - + ".proto\032\027google/rpc/status.proto\"\365\007\n\020Trai" - + "ningPipeline\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014displ" - + "ay_name\030\002 \001(\tB\003\340A\002\022K\n\021input_data_config\030" - + "\003 \001(\01320.google.cloud.aiplatform.v1beta1." - + "InputDataConfig\022%\n\030training_task_definit" - + "ion\030\004 \001(\tB\003\340A\002\0229\n\024training_task_inputs\030\005" - + " \001(\0132\026.google.protobuf.ValueB\003\340A\002\022;\n\026tra" - + "ining_task_metadata\030\006 \001(\0132\026.google.proto" - + "buf.ValueB\003\340A\003\022?\n\017model_to_upload\030\007 \001(\0132" - + "&.google.cloud.aiplatform.v1beta1.Model\022" - + "B\n\005state\030\t \001(\0162..google.cloud.aiplatform" - + ".v1beta1.PipelineStateB\003\340A\003\022&\n\005error\030\n \001" - + "(\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013create_ti" - + "me\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0223\n\nstart_time\030\014 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0221\n\010end_time\030\r \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "M\n\006labels\030\017 \003(\0132=.google.cloud.aiplatfor" - + "m.v1beta1.TrainingPipeline.LabelsEntry\022H" - + "\n\017encryption_spec\030\022 \001(\0132/.google.cloud.a" - + "iplatform.v1beta1.EncryptionSpec\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" - + "~\352A{\n*aiplatform.googleapis.com/Training" - + "Pipeline\022Mprojects/{project}/locations/{" - + "location}/trainingPipelines/{training_pi" - + "peline}\"\227\005\n\017InputDataConfig\022H\n\016fraction_" - + "split\030\002 \001(\0132..google.cloud.aiplatform.v1" - + "beta1.FractionSplitH\000\022D\n\014filter_split\030\003 " - + "\001(\0132,.google.cloud.aiplatform.v1beta1.Fi" - + "lterSplitH\000\022L\n\020predefined_split\030\004 \001(\01320." - + "google.cloud.aiplatform.v1beta1.Predefin" - + "edSplitH\000\022J\n\017timestamp_split\030\005 \001(\0132/.goo" - + "gle.cloud.aiplatform.v1beta1.TimestampSp" - + "litH\000\022L\n\020stratified_split\030\014 \001(\01320.google" - + ".cloud.aiplatform.v1beta1.StratifiedSpli" - + "tH\000\022J\n\017gcs_destination\030\010 \001(\0132/.google.cl" - + "oud.aiplatform.v1beta1.GcsDestinationH\001\022" - + "T\n\024bigquery_destination\030\n \001(\01324.google.c" - + "loud.aiplatform.v1beta1.BigQueryDestinat" - + "ionH\001\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\032\n\022annota" - + "tions_filter\030\006 \001(\t\022\035\n\025annotation_schema_" - + "uri\030\t \001(\tB\007\n\005splitB\r\n\013destination\"^\n\rFra" - + "ctionSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n" - + "\023validation_fraction\030\002 \001(\001\022\025\n\rtest_fract" - + "ion\030\003 \001(\001\"e\n\013FilterSplit\022\034\n\017training_fil" - + "ter\030\001 \001(\tB\003\340A\002\022\036\n\021validation_filter\030\002 \001(" - + "\tB\003\340A\002\022\030\n\013test_filter\030\003 \001(\tB\003\340A\002\"#\n\017Pred" - + "efinedSplit\022\020\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016Timesta" - + "mpSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023va" - + "lidation_fraction\030\002 \001(\001\022\025\n\rtest_fraction" - + "\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002\"r\n\017StratifiedSp" - + "lit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023valida" - + "tion_fraction\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001" - + "(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002B\362\001\n#com.google.clou" - + "d.aiplatform.v1beta1B\025TrainingPipelinePr" - + "otoP\001ZIgoogle.golang.org/genproto/google" - + "apis/cloud/aiplatform/v1beta1;aiplatform" - + "\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goo" - + "gle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::C" - + "loud::AIPlatform::V1beta1b\006proto3" + + "rm.v1beta1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\0325google/c" + + "loud/aiplatform/v1beta1/encryption_spec." + + "proto\032(google/cloud/aiplatform/v1beta1/i" + + "o.proto\032+google/cloud/aiplatform/v1beta1" + + "/model.proto\0324google/cloud/aiplatform/v1" + + "beta1/pipeline_state.proto\032\034google/proto" + + "buf/struct.proto\032\037google/protobuf/timest" + + "amp.proto\032\027google/rpc/status.proto\"\247\010\n\020T" + + "rainingPipeline\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di" + + "splay_name\030\002 \001(\tB\003\340A\002\022K\n\021input_data_conf" + + "ig\030\003 \001(\01320.google.cloud.aiplatform.v1bet" + + "a1.InputDataConfig\022%\n\030training_task_defi" + + "nition\030\004 \001(\tB\003\340A\002\0229\n\024training_task_input" + + "s\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\002\022;\n\026" + + "training_task_metadata\030\006 \001(\0132\026.google.pr" + + "otobuf.ValueB\003\340A\003\022?\n\017model_to_upload\030\007 \001" + + "(\0132&.google.cloud.aiplatform.v1beta1.Mod" + + "el\022\025\n\010model_id\030\026 \001(\tB\003\340A\001\022\031\n\014parent_mode" + + "l\030\025 \001(\tB\003\340A\001\022B\n\005state\030\t \001(\0162..google.clo" + + "ud.aiplatform.v1beta1.PipelineStateB\003\340A\003" + + "\022&\n\005error\030\n \001(\0132\022.google.rpc.StatusB\003\340A\003" + + "\0224\n\013create_time\030\013 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0223\n\nstart_time\030\014 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" + + "\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\016 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022M\n\006labels\030\017 \003(\0132=.google.cl" + + "oud.aiplatform.v1beta1.TrainingPipeline." + + "LabelsEntry\022H\n\017encryption_spec\030\022 \001(\0132/.g" + + "oogle.cloud.aiplatform.v1beta1.Encryptio" + + "nSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001:~\352A{\n*aiplatform.googleapis" + + ".com/TrainingPipeline\022Mprojects/{project" + + "}/locations/{location}/trainingPipelines" + + "/{training_pipeline}\"\227\005\n\017InputDataConfig" + + "\022H\n\016fraction_split\030\002 \001(\0132..google.cloud." + + "aiplatform.v1beta1.FractionSplitH\000\022D\n\014fi" + + "lter_split\030\003 \001(\0132,.google.cloud.aiplatfo" + + "rm.v1beta1.FilterSplitH\000\022L\n\020predefined_s" + + "plit\030\004 \001(\01320.google.cloud.aiplatform.v1b" + + "eta1.PredefinedSplitH\000\022J\n\017timestamp_spli" + + "t\030\005 \001(\0132/.google.cloud.aiplatform.v1beta" + + "1.TimestampSplitH\000\022L\n\020stratified_split\030\014" + + " \001(\01320.google.cloud.aiplatform.v1beta1.S" + + "tratifiedSplitH\000\022J\n\017gcs_destination\030\010 \001(" + + "\0132/.google.cloud.aiplatform.v1beta1.GcsD" + + "estinationH\001\022T\n\024bigquery_destination\030\n \001" + + "(\01324.google.cloud.aiplatform.v1beta1.Big" + + "QueryDestinationH\001\022\027\n\ndataset_id\030\001 \001(\tB\003" + + "\340A\002\022\032\n\022annotations_filter\030\006 \001(\t\022\035\n\025annot" + + "ation_schema_uri\030\t \001(\tB\007\n\005splitB\r\n\013desti" + + "nation\"^\n\rFractionSplit\022\031\n\021training_frac" + + "tion\030\001 \001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022" + + "\025\n\rtest_fraction\030\003 \001(\001\"e\n\013FilterSplit\022\034\n" + + "\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n\021validatio" + + "n_filter\030\002 \001(\tB\003\340A\002\022\030\n\013test_filter\030\003 \001(\t" + + "B\003\340A\002\"#\n\017PredefinedSplit\022\020\n\003key\030\001 \001(\tB\003\340" + + "A\002\"q\n\016TimestampSplit\022\031\n\021training_fractio" + + "n\030\001 \001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\r" + + "test_fraction\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002\"r\n" + + "\017StratifiedSplit\022\031\n\021training_fraction\030\001 " + + "\001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\rtest" + + "_fraction\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002B\362\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\025Train" + + "ingPipelineProtoP\001ZIgoogle.golang.org/ge" + + "nproto/googleapis/cloud/aiplatform/v1bet" + + "a1;aiplatform\252\002\037Google.Cloud.AIPlatform." + + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" + + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), - com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.PipelineStateProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -174,6 +169,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrainingTaskInputs", "TrainingTaskMetadata", "ModelToUpload", + "ModelId", + "ParentModel", "State", "Error", "CreateTime", @@ -258,13 +255,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); - com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.PipelineStateProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); 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 71eed085d..4233723c1 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 @@ -221,6 +221,8 @@ private Trial( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -653,6 +655,8 @@ private Parameter( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2193,7 +2197,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -2253,7 +2257,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2282,7 +2286,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -5065,7 +5069,7 @@ public int getWebAccessUrisCount() { @java.lang.Override public boolean containsWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetWebAccessUris().getMap().containsKey(key); } @@ -5125,7 +5129,7 @@ public java.util.Map getWebAccessUrisMap() { public java.lang.String getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -5154,7 +5158,7 @@ public java.lang.String getWebAccessUrisOrDefault( @java.lang.Override public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetWebAccessUris().getMap(); if (!map.containsKey(key)) { @@ -5190,7 +5194,7 @@ public Builder clearWebAccessUris() { */ public Builder removeWebAccessUris(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableWebAccessUris().getMutableMap().remove(key); return this; @@ -5223,11 +5227,12 @@ public java.util.Map getMutableWebAccessUris */ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableWebAccessUris().getMutableMap().put(key, value); return this; } 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 782a6834a..fb1ec4cf9 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 @@ -540,7 +540,12 @@ public interface TrialOrBuilder * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - java.lang.String getWebAccessUrisOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java index ba6d09adc..4435e8559 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java @@ -53,24 +53,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/aiplatform/v1beta1/types." - + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" - + "google/api/annotations.proto\"\033\n\tBoolArra" - + "y\022\016\n\006values\030\001 \003(\010\"\035\n\013DoubleArray\022\016\n\006valu" - + "es\030\001 \003(\001\"\034\n\nInt64Array\022\016\n\006values\030\001 \003(\003\"\035" - + "\n\013StringArray\022\016\n\006values\030\001 \003(\tB\347\001\n#com.go" - + "ogle.cloud.aiplatform.v1beta1B\nTypesProt" - + "oP\001ZIgoogle.golang.org/genproto/googleap" - + "is/cloud/aiplatform/v1beta1;aiplatform\252\002" - + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" - + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clo" - + "ud::AIPlatform::V1beta1b\006proto3" + + "proto\022\037google.cloud.aiplatform.v1beta1\"\033" + + "\n\tBoolArray\022\016\n\006values\030\001 \003(\010\"\035\n\013DoubleArr" + + "ay\022\016\n\006values\030\001 \003(\001\"\034\n\nInt64Array\022\016\n\006valu" + + "es\030\001 \003(\003\"\035\n\013StringArray\022\016\n\006values\030\001 \003(\tB" + + "\347\001\n#com.google.cloud.aiplatform.v1beta1B" + + "\nTypesProtoP\001ZIgoogle.golang.org/genprot" + + "o/googleapis/cloud/aiplatform/v1beta1;ai" + + "platform\252\002\037Google.Cloud.AIPlatform.V1Bet" + + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"G" + + "oogle::Cloud::AIPlatform::V1beta1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_aiplatform_v1beta1_BoolArray_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_aiplatform_v1beta1_BoolArray_fieldAccessorTable = @@ -103,7 +100,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Values", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java index f7fbcb9c2..5a86eb280 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java @@ -98,6 +98,8 @@ private UndeployIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java index 1a8fe5eae..86f1d7ea1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java @@ -96,6 +96,8 @@ private UndeployIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponse.java index 149869f06..7da1d9894 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponse.java @@ -79,6 +79,8 @@ private UndeployIndexResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java index 892173b40..56db50d8a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java @@ -98,6 +98,8 @@ private UndeployModelOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java index de7594f98..443b8161b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java @@ -112,6 +112,8 @@ private UndeployModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -297,7 +299,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -344,7 +346,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -367,7 +369,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1033,7 +1035,7 @@ public int getTrafficSplitCount() { @java.lang.Override public boolean containsTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetTrafficSplit().getMap().containsKey(key); } @@ -1080,7 +1082,7 @@ public java.util.Map getTrafficSplitMap() { @java.lang.Override public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1103,7 +1105,7 @@ public int getTrafficSplitOrDefault(java.lang.String key, int defaultValue) { @java.lang.Override public int getTrafficSplitOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetTrafficSplit().getMap(); if (!map.containsKey(key)) { @@ -1133,7 +1135,7 @@ public Builder clearTrafficSplit() { */ public Builder removeTrafficSplit(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().remove(key); return this; @@ -1160,7 +1162,7 @@ public java.util.Map getMutableTrafficSplit */ public Builder putTrafficSplit(java.lang.String key, int value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableTrafficSplit().getMutableMap().put(key, value); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelResponse.java index 73b7c63a2..db206e27c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelResponse.java @@ -79,6 +79,8 @@ private UndeployModelResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java index 384bf9f02..d50e722d6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java @@ -123,6 +123,8 @@ private UnmanagedContainerModel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModelProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModelProto.java index a5854f2c0..b625ff46e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModelProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModelProto.java @@ -42,27 +42,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n?google/cloud/aiplatform/v1beta1/unmana" + "ged_container_model.proto\022\037google.cloud." - + "aiplatform.v1beta1\032\034google/api/annotatio" - + "ns.proto\032\037google/api/field_behavior.prot" - + "o\032+google/cloud/aiplatform/v1beta1/model" - + ".proto\"\315\001\n\027UnmanagedContainerModel\022\024\n\014ar" - + "tifact_uri\030\001 \001(\t\022J\n\020predict_schemata\030\002 \001" - + "(\01320.google.cloud.aiplatform.v1beta1.Pre" - + "dictSchemata\022P\n\016container_spec\030\003 \001(\01323.g" - + "oogle.cloud.aiplatform.v1beta1.ModelCont" - + "ainerSpecB\003\340A\004B\371\001\n#com.google.cloud.aipl" - + "atform.v1beta1B\034UnmanagedContainerModelP" - + "rotoP\001ZIgoogle.golang.org/genproto/googl" - + "eapis/cloud/aiplatform/v1beta1;aiplatfor" - + "m\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Go" - + "ogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::" - + "Cloud::AIPlatform::V1beta1b\006proto3" + + "aiplatform.v1beta1\032\037google/api/field_beh" + + "avior.proto\032+google/cloud/aiplatform/v1b" + + "eta1/model.proto\"\315\001\n\027UnmanagedContainerM" + + "odel\022\024\n\014artifact_uri\030\001 \001(\t\022J\n\020predict_sc" + + "hemata\030\002 \001(\01320.google.cloud.aiplatform.v" + + "1beta1.PredictSchemata\022P\n\016container_spec" + + "\030\003 \001(\01323.google.cloud.aiplatform.v1beta1" + + ".ModelContainerSpecB\003\340A\004B\371\001\n#com.google." + + "cloud.aiplatform.v1beta1B\034UnmanagedConta" + + "inerModelProtoP\001ZIgoogle.golang.org/genp" + + "roto/googleapis/cloud/aiplatform/v1beta1" + + ";aiplatform\252\002\037Google.Cloud.AIPlatform.V1" + + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" + + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(), }); @@ -79,7 +78,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java index ab6ebae85..c8bbae70b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java @@ -115,6 +115,8 @@ private UpdateArtifactRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -210,11 +212,11 @@ public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilde * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -227,11 +229,11 @@ public boolean hasUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -244,11 +246,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -899,11 +901,11 @@ public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilde * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -915,11 +917,11 @@ public boolean hasUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -937,11 +939,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -961,11 +963,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -982,11 +984,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -1008,11 +1010,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -1030,11 +1032,11 @@ public Builder clearUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1046,11 +1048,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1066,11 +1068,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequestOrBuilder.java index 3ab5dfc2d..4ebae4579 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequestOrBuilder.java @@ -80,11 +80,11 @@ public interface UpdateArtifactRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -94,11 +94,11 @@ public interface UpdateArtifactRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -108,11 +108,11 @@ public interface UpdateArtifactRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java index 6d1ad936d..8ec85880d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java @@ -115,6 +115,8 @@ private UpdateContextRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -210,11 +212,11 @@ public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder( * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -227,11 +229,11 @@ public boolean hasUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -244,11 +246,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -898,11 +900,11 @@ public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder( * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -914,11 +916,11 @@ public boolean hasUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -936,11 +938,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -960,11 +962,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -981,11 +983,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -1007,11 +1009,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -1029,11 +1031,11 @@ public Builder clearUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1045,11 +1047,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1065,11 +1067,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequestOrBuilder.java index 65d319f68..9574cea31 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequestOrBuilder.java @@ -80,11 +80,11 @@ public interface UpdateContextRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -94,11 +94,11 @@ public interface UpdateContextRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -108,11 +108,11 @@ public interface UpdateContextRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java index 54be4afb3..403566143 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java @@ -110,6 +110,8 @@ private UpdateDatasetRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java index cc614a49c..c342f1933 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java @@ -110,6 +110,8 @@ private UpdateEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java index 5904ece2b..2848b6ffe 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java @@ -110,6 +110,8 @@ private UpdateEntityTypeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java index 9c05d55cd..8371b51ea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java @@ -115,6 +115,8 @@ private UpdateExecutionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -210,11 +212,11 @@ public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuil * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -227,11 +229,11 @@ public boolean hasUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -244,11 +246,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -899,11 +901,11 @@ public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuil * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -915,11 +917,11 @@ public boolean hasUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -937,11 +939,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -961,11 +963,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -982,11 +984,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -1008,11 +1010,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -1030,11 +1032,11 @@ public Builder clearUpdateMask() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1046,11 +1048,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1066,11 +1068,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. A FieldMask indicating which fields should be updated.
+     * Optional. A FieldMask indicating which fields should be updated.
      * Functionality of this field is not yet supported.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequestOrBuilder.java index 5f0fbb1d5..de100e396 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequestOrBuilder.java @@ -80,11 +80,11 @@ public interface UpdateExecutionRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -94,11 +94,11 @@ public interface UpdateExecutionRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -108,11 +108,11 @@ public interface UpdateExecutionRequestOrBuilder * * *
-   * Required. A FieldMask indicating which fields should be updated.
+   * Optional. A FieldMask indicating which fields should be updated.
    * Functionality of this field is not yet supported.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java index 3c1df03d8..00eda5b1f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java @@ -110,6 +110,8 @@ private UpdateFeatureRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java index a4794d47c..cdc00fd50 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java @@ -99,6 +99,8 @@ private UpdateFeaturestoreOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java index 93fa8f944..3f44bccc8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java @@ -110,6 +110,8 @@ private UpdateFeaturestoreRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java index 5047d7edf..df59d7014 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java @@ -111,6 +111,8 @@ private UpdateIndexEndpointRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java index 03028675d..63926a551 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java @@ -116,6 +116,8 @@ private UpdateIndexOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java index 7780f1c94..7851c259e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java @@ -110,6 +110,8 @@ private UpdateIndexRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java index 47b8e8a50..36967e459 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java @@ -101,6 +101,8 @@ private UpdateModelDeploymentMonitoringJobOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java index ac42786e2..3d8f8dc70 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java @@ -115,6 +115,8 @@ private UpdateModelDeploymentMonitoringJobRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java index b328533db..ee51d47bf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java @@ -110,6 +110,8 @@ private UpdateModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -140,6 +142,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * @@ -157,6 +176,23 @@ public boolean hasModel() { * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * @@ -174,6 +210,23 @@ public com.google.cloud.aiplatform.v1beta1.Model getModel() { * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * @@ -607,6 +660,23 @@ public Builder mergeFrom( * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -623,6 +693,23 @@ public boolean hasModel() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -645,6 +732,23 @@ public com.google.cloud.aiplatform.v1beta1.Model getModel() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -669,6 +773,23 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model value) { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -690,6 +811,23 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model.Builder builde * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -718,6 +856,23 @@ public Builder mergeModel(com.google.cloud.aiplatform.v1beta1.Model value) { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -740,6 +895,23 @@ public Builder clearModel() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -756,6 +928,23 @@ public com.google.cloud.aiplatform.v1beta1.Model.Builder getModelBuilder() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * @@ -776,6 +965,23 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { * *
      * Required. The Model which replaces the resource on the server.
+     * When Model Versioning is enabled, the model.name will be used to determine
+     * whether to update the model or model version.
+     * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+     * specific update.
+     * 2. model.name without the @ value, e.g. models/123, refers to a model
+     * update.
+     * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+     * 4. Supported model fields: display_name, description; supported
+     * version-specific fields: version_description. Labels are supported in both
+     * scenarios. Both the model labels and the version labels are merged when a
+     * model is returned. When updating labels, if the request is for
+     * model-specific update, model label gets updated. Otherwise, version labels
+     * get updated.
+     * 5. A model name or model version name fields update mismatch will cause a
+     * precondition error.
+     * 6. One request cannot update both the model and the version fields. You
+     * must update them separately.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java index 7cec9a8aa..2c77f92d6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java @@ -28,6 +28,23 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * @@ -42,6 +59,23 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * @@ -56,6 +90,23 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The Model which replaces the resource on the server.
+   * When Model Versioning is enabled, the model.name will be used to determine
+   * whether to update the model or model version.
+   * 1. model.name with the @ value, e.g. models/123@1, refers to a version
+   * specific update.
+   * 2. model.name without the @ value, e.g. models/123, refers to a model
+   * update.
+   * 3. model.name with @-, e.g. models/123@-, refers to a model update.
+   * 4. Supported model fields: display_name, description; supported
+   * version-specific fields: version_description. Labels are supported in both
+   * scenarios. Both the model labels and the version labels are merged when a
+   * model is returned. When updating labels, if the request is for
+   * model-specific update, model label gets updated. Otherwise, version labels
+   * get updated.
+   * 5. A model name or model version name fields update mismatch will cause a
+   * precondition error.
+   * 6. One request cannot update both the model and the version fields. You
+   * must update them separately.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java index ad24a06d9..b755c790d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java @@ -109,6 +109,8 @@ private UpdateSpecialistPoolOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java index 5cbcfc10c..3e4388402 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java @@ -111,6 +111,8 @@ private UpdateSpecialistPoolRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java index 200f9133a..54e837247 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java @@ -112,6 +112,8 @@ private UpdateTensorboardExperimentRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java index 7c692a6f0..baee9e381 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java @@ -98,6 +98,8 @@ private UpdateTensorboardOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java index 6caa5cbe2..16fdbb5d4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java @@ -110,6 +110,8 @@ private UpdateTensorboardRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java index 8cee07146..1dca27964 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java @@ -111,6 +111,8 @@ private UpdateTensorboardRunRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java index a8c34b09b..0eac5abd0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java @@ -112,6 +112,8 @@ private UpdateTensorboardTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java index 374d8daf2..112b9a9ed 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java @@ -97,6 +97,8 @@ private UploadModelOperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java index 1c79193fc..4931447d3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java @@ -39,6 +39,8 @@ private UploadModelRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private UploadModelRequest() { parent_ = ""; + parentModel_ = ""; + modelId_ = ""; } @java.lang.Override @@ -91,6 +93,20 @@ private UploadModelRequest( model_ = subBuilder.buildPartial(); } + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentModel_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelId_ = s; break; } default: @@ -104,6 +120,8 @@ private UploadModelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -182,6 +200,112 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int PARENT_MODEL_FIELD_NUMBER = 4; + private volatile java.lang.Object parentModel_; + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + @java.lang.Override + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object modelId_; + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MODEL_FIELD_NUMBER = 2; private com.google.cloud.aiplatform.v1beta1.Model model_; /** @@ -254,6 +378,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (model_ != null) { output.writeMessage(2, getModel()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modelId_); + } unknownFields.writeTo(output); } @@ -269,6 +399,12 @@ public int getSerializedSize() { if (model_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getModel()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -286,6 +422,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.UploadModelRequest) obj; if (!getParent().equals(other.getParent())) return false; + if (!getParentModel().equals(other.getParentModel())) return false; + if (!getModelId().equals(other.getModelId())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel().equals(other.getModel())) return false; @@ -303,6 +441,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PARENT_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getParentModel().hashCode(); + hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); if (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); @@ -455,6 +597,10 @@ public Builder clear() { super.clear(); parent_ = ""; + parentModel_ = ""; + + modelId_ = ""; + if (modelBuilder_ == null) { model_ = null; } else { @@ -489,6 +635,8 @@ public com.google.cloud.aiplatform.v1beta1.UploadModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UploadModelRequest result = new com.google.cloud.aiplatform.v1beta1.UploadModelRequest(this); result.parent_ = parent_; + result.parentModel_ = parentModel_; + result.modelId_ = modelId_; if (modelBuilder_ == null) { result.model_ = model_; } else { @@ -548,6 +696,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UploadModelRequest parent_ = other.parent_; onChanged(); } + if (!other.getParentModel().isEmpty()) { + parentModel_ = other.parentModel_; + onChanged(); + } + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + onChanged(); + } if (other.hasModel()) { mergeModel(other.getModel()); } @@ -702,6 +858,238 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object parentModel_ = ""; + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentModel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearParentModel() { + + parentModel_ = getDefaultInstance().getParentModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentModel_ = value; + onChanged(); + return this; + } + + private java.lang.Object modelId_ = ""; + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + + modelId_ = getDefaultInstance().getModelId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelId_ = value; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1beta1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Model, diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java index 70ef9d4fe..3ac190d13 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java @@ -54,6 +54,64 @@ public interface UploadModelRequestOrBuilder */ com.google.protobuf.ByteString getParentBytes(); + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + java.lang.String getParentModel(); + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + com.google.protobuf.ByteString getParentModelBytes(); + + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java index 70083a9f0..cd8cd10f6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java @@ -39,6 +39,7 @@ private UploadModelResponse(com.google.protobuf.GeneratedMessageV3.Builder bu private UploadModelResponse() { model_ = ""; + modelVersionId_ = ""; } @java.lang.Override @@ -77,6 +78,13 @@ private UploadModelResponse( model_ = s; break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelVersionId_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -88,6 +96,8 @@ private UploadModelResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -162,6 +172,55 @@ public com.google.protobuf.ByteString getModelBytes() { } } + public static final int MODEL_VERSION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object modelVersionId_; + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + @java.lang.Override + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -179,6 +238,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelVersionId_); + } unknownFields.writeTo(output); } @@ -191,6 +253,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelVersionId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -208,6 +273,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.UploadModelResponse) obj; if (!getModel().equals(other.getModel())) return false; + if (!getModelVersionId().equals(other.getModelVersionId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -221,6 +287,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelVersionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -369,6 +437,8 @@ public Builder clear() { super.clear(); model_ = ""; + modelVersionId_ = ""; + return this; } @@ -397,6 +467,7 @@ public com.google.cloud.aiplatform.v1beta1.UploadModelResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.UploadModelResponse result = new com.google.cloud.aiplatform.v1beta1.UploadModelResponse(this); result.model_ = model_; + result.modelVersionId_ = modelVersionId_; onBuilt(); return result; } @@ -451,6 +522,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UploadModelResponse model_ = other.model_; onChanged(); } + if (!other.getModelVersionId().isEmpty()) { + modelVersionId_ = other.modelVersionId_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -592,6 +667,112 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object modelVersionId_ = ""; + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelVersionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersionId() { + + modelVersionId_ = getDefaultInstance().getModelVersionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelVersionId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponseOrBuilder.java index 6de9960a4..74c1e3012 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponseOrBuilder.java @@ -49,4 +49,29 @@ public interface UploadModelResponseOrBuilder * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + java.lang.String getModelVersionId(); + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + com.google.protobuf.ByteString getModelVersionIdBytes(); } diff --git a/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 2e3f28fb0..9eb31dda2 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 @@ -103,6 +103,8 @@ private UserActionReference( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java index df9a6a8d7..b67bcd11c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java @@ -42,24 +42,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n;google/cloud/aiplatform/v1beta1/user_a" + "ction_reference.proto\022\037google.cloud.aipl" - + "atform.v1beta1\032\034google/api/annotations.p" - + "roto\"d\n\023UserActionReference\022\023\n\toperation" - + "\030\001 \001(\tH\000\022\033\n\021data_labeling_job\030\002 \001(\tH\000\022\016\n" - + "\006method\030\003 \001(\tB\013\n\treferenceB\365\001\n#com.googl" - + "e.cloud.aiplatform.v1beta1B\030UserActionRe" - + "ferenceProtoP\001ZIgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1beta1;a" - + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" - + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" - + "Google::Cloud::AIPlatform::V1beta1b\006prot" - + "o3" + + "atform.v1beta1\"d\n\023UserActionReference\022\023\n" + + "\toperation\030\001 \001(\tH\000\022\033\n\021data_labeling_job\030" + + "\002 \001(\tH\000\022\016\n\006method\030\003 \001(\tB\013\n\treferenceB\365\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\030Us" + + "erActionReferenceProtoP\001ZIgoogle.golang." + + "org/genproto/googleapis/cloud/aiplatform" + + "/v1beta1;aiplatform\252\002\037Google.Cloud.AIPla" + + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" + + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_aiplatform_v1beta1_UserActionReference_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_aiplatform_v1beta1_UserActionReference_fieldAccessorTable = @@ -68,7 +64,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Operation", "DataLabelingJob", "Method", "Reference", }); - 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/Value.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java index 9de81a314..32901feda 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java @@ -70,14 +70,14 @@ private Value( break; case 8: { - valueCase_ = 1; value_ = input.readInt64(); + valueCase_ = 1; break; } case 17: { - valueCase_ = 2; value_ = input.readDouble(); + valueCase_ = 2; break; } case 26: @@ -98,6 +98,8 @@ private Value( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java index 95b6ee04f..d95c98e8a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java @@ -41,23 +41,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/aiplatform/v1beta1/value." - + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" - + "google/api/annotations.proto\"U\n\005Value\022\023\n" - + "\tint_value\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001" - + "H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005valueB\347\001\n#" - + "com.google.cloud.aiplatform.v1beta1B\nVal" - + "ueProtoP\001ZIgoogle.golang.org/genproto/go" - + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + "proto\022\037google.cloud.aiplatform.v1beta1\"U" + + "\n\005Value\022\023\n\tint_value\030\001 \001(\003H\000\022\026\n\014double_v" + + "alue\030\002 \001(\001H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005" + + "valueB\347\001\n#com.google.cloud.aiplatform.v1" + + "beta1B\nValueProtoP\001ZIgoogle.golang.org/g" + + "enproto/googleapis/cloud/aiplatform/v1be" + + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_aiplatform_v1beta1_Value_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_aiplatform_v1beta1_Value_fieldAccessorTable = @@ -66,7 +63,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IntValue", "DoubleValue", "StringValue", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java index 8833bd2b2..8c42264d8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java @@ -37,7 +37,9 @@ private WorkerPoolSpec(com.google.protobuf.GeneratedMessageV3.Builder builder super(builder); } - private WorkerPoolSpec() {} + private WorkerPoolSpec() { + nfsMounts_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -58,6 +60,7 @@ private WorkerPoolSpec( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -89,6 +92,18 @@ private WorkerPoolSpec( replicaCount_ = input.readInt64(); break; } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nfsMounts_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.NfsMount.parser(), extensionRegistry)); + break; + } case 42: { com.google.cloud.aiplatform.v1beta1.DiskSpec.Builder subBuilder = null; @@ -152,9 +167,14 @@ private WorkerPoolSpec( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = java.util.Collections.unmodifiableList(nfsMounts_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -397,6 +417,85 @@ public long getReplicaCount() { return replicaCount_; } + public static final int NFS_MOUNTS_FIELD_NUMBER = 4; + private java.util.List nfsMounts_; + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getNfsMountsList() { + return nfsMounts_; + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNfsMountsOrBuilderList() { + return nfsMounts_; + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNfsMountsCount() { + return nfsMounts_.size(); + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NfsMount getNfsMounts(int index) { + return nfsMounts_.get(index); + } + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder getNfsMountsOrBuilder(int index) { + return nfsMounts_.get(index); + } + public static final int DISK_SPEC_FIELD_NUMBER = 5; private com.google.cloud.aiplatform.v1beta1.DiskSpec diskSpec_; /** @@ -465,6 +564,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (replicaCount_ != 0L) { output.writeInt64(2, replicaCount_); } + for (int i = 0; i < nfsMounts_.size(); i++) { + output.writeMessage(4, nfsMounts_.get(i)); + } if (diskSpec_ != null) { output.writeMessage(5, getDiskSpec()); } @@ -489,6 +591,9 @@ public int getSerializedSize() { if (replicaCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, replicaCount_); } + for (int i = 0; i < nfsMounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, nfsMounts_.get(i)); + } if (diskSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDiskSpec()); } @@ -523,6 +628,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMachineSpec().equals(other.getMachineSpec())) return false; } if (getReplicaCount() != other.getReplicaCount()) return false; + if (!getNfsMountsList().equals(other.getNfsMountsList())) return false; if (hasDiskSpec() != other.hasDiskSpec()) return false; if (hasDiskSpec()) { if (!getDiskSpec().equals(other.getDiskSpec())) return false; @@ -555,6 +661,10 @@ public int hashCode() { } hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReplicaCount()); + if (getNfsMountsCount() > 0) { + hash = (37 * hash) + NFS_MOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getNfsMountsList().hashCode(); + } if (hasDiskSpec()) { hash = (37 * hash) + DISK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDiskSpec().hashCode(); @@ -710,7 +820,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNfsMountsFieldBuilder(); + } } @java.lang.Override @@ -724,6 +836,12 @@ public Builder clear() { } replicaCount_ = 0L; + if (nfsMountsBuilder_ == null) { + nfsMounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nfsMountsBuilder_.clear(); + } if (diskSpecBuilder_ == null) { diskSpec_ = null; } else { @@ -759,6 +877,7 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec build() { public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec result = new com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec(this); + int from_bitField0_ = bitField0_; if (taskCase_ == 6) { if (containerSpecBuilder_ == null) { result.task_ = task_; @@ -779,6 +898,15 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec buildPartial() { result.machineSpec_ = machineSpecBuilder_.build(); } result.replicaCount_ = replicaCount_; + if (nfsMountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = java.util.Collections.unmodifiableList(nfsMounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nfsMounts_ = nfsMounts_; + } else { + result.nfsMounts_ = nfsMountsBuilder_.build(); + } if (diskSpecBuilder_ == null) { result.diskSpec_ = diskSpec_; } else { @@ -841,6 +969,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec othe if (other.getReplicaCount() != 0L) { setReplicaCount(other.getReplicaCount()); } + if (nfsMountsBuilder_ == null) { + if (!other.nfsMounts_.isEmpty()) { + if (nfsMounts_.isEmpty()) { + nfsMounts_ = other.nfsMounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNfsMountsIsMutable(); + nfsMounts_.addAll(other.nfsMounts_); + } + onChanged(); + } + } else { + if (!other.nfsMounts_.isEmpty()) { + if (nfsMountsBuilder_.isEmpty()) { + nfsMountsBuilder_.dispose(); + nfsMountsBuilder_ = null; + nfsMounts_ = other.nfsMounts_; + bitField0_ = (bitField0_ & ~0x00000001); + nfsMountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsMountsFieldBuilder() + : null; + } else { + nfsMountsBuilder_.addAllMessages(other.nfsMounts_); + } + } + } if (other.hasDiskSpec()) { mergeDiskSpec(other.getDiskSpec()); } @@ -904,6 +1059,8 @@ public Builder clearTask() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ContainerSpec, com.google.cloud.aiplatform.v1beta1.ContainerSpec.Builder, @@ -1016,8 +1173,9 @@ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1beta1.ContainerS } else { if (taskCase_ == 6) { containerSpecBuilder_.mergeFrom(value); + } else { + containerSpecBuilder_.setMessage(value); } - containerSpecBuilder_.setMessage(value); } taskCase_ = 6; return this; @@ -1228,8 +1386,9 @@ public Builder mergePythonPackageSpec( } else { if (taskCase_ == 7) { pythonPackageSpecBuilder_.mergeFrom(value); + } else { + pythonPackageSpecBuilder_.setMessage(value); } - pythonPackageSpecBuilder_.setMessage(value); } taskCase_ = 7; return this; @@ -1583,6 +1742,393 @@ public Builder clearReplicaCount() { return this; } + private java.util.List nfsMounts_ = + java.util.Collections.emptyList(); + + private void ensureNfsMountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nfsMounts_ = + new java.util.ArrayList(nfsMounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NfsMount, + com.google.cloud.aiplatform.v1beta1.NfsMount.Builder, + com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder> + nfsMountsBuilder_; + + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getNfsMountsList() { + if (nfsMountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nfsMounts_); + } else { + return nfsMountsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNfsMountsCount() { + if (nfsMountsBuilder_ == null) { + return nfsMounts_.size(); + } else { + return nfsMountsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NfsMount getNfsMounts(int index) { + if (nfsMountsBuilder_ == null) { + return nfsMounts_.get(index); + } else { + return nfsMountsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNfsMounts(int index, com.google.cloud.aiplatform.v1beta1.NfsMount value) { + if (nfsMountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsMountsIsMutable(); + nfsMounts_.set(index, value); + onChanged(); + } else { + nfsMountsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNfsMounts( + int index, com.google.cloud.aiplatform.v1beta1.NfsMount.Builder builderForValue) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.set(index, builderForValue.build()); + onChanged(); + } else { + nfsMountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts(com.google.cloud.aiplatform.v1beta1.NfsMount value) { + if (nfsMountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsMountsIsMutable(); + nfsMounts_.add(value); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts(int index, com.google.cloud.aiplatform.v1beta1.NfsMount value) { + if (nfsMountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsMountsIsMutable(); + nfsMounts_.add(index, value); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts( + com.google.cloud.aiplatform.v1beta1.NfsMount.Builder builderForValue) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.add(builderForValue.build()); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNfsMounts( + int index, com.google.cloud.aiplatform.v1beta1.NfsMount.Builder builderForValue) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.add(index, builderForValue.build()); + onChanged(); + } else { + nfsMountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNfsMounts( + java.lang.Iterable values) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsMounts_); + onChanged(); + } else { + nfsMountsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNfsMounts() { + if (nfsMountsBuilder_ == null) { + nfsMounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nfsMountsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNfsMounts(int index) { + if (nfsMountsBuilder_ == null) { + ensureNfsMountsIsMutable(); + nfsMounts_.remove(index); + onChanged(); + } else { + nfsMountsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NfsMount.Builder getNfsMountsBuilder(int index) { + return getNfsMountsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder getNfsMountsOrBuilder(int index) { + if (nfsMountsBuilder_ == null) { + return nfsMounts_.get(index); + } else { + return nfsMountsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNfsMountsOrBuilderList() { + if (nfsMountsBuilder_ != null) { + return nfsMountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nfsMounts_); + } + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NfsMount.Builder addNfsMountsBuilder() { + return getNfsMountsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.NfsMount.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NfsMount.Builder addNfsMountsBuilder(int index) { + return getNfsMountsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.NfsMount.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of NFS mount spec.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNfsMountsBuilderList() { + return getNfsMountsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NfsMount, + com.google.cloud.aiplatform.v1beta1.NfsMount.Builder, + com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder> + getNfsMountsFieldBuilder() { + if (nfsMountsBuilder_ == null) { + nfsMountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NfsMount, + com.google.cloud.aiplatform.v1beta1.NfsMount.Builder, + com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder>( + nfsMounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nfsMounts_ = null; + } + return nfsMountsBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.DiskSpec diskSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.DiskSpec, diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpecOrBuilder.java index 5ec0c9b05..d8cac517d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpecOrBuilder.java @@ -147,6 +147,68 @@ public interface WorkerPoolSpecOrBuilder */ long getReplicaCount(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getNfsMountsList(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.NfsMount getNfsMounts(int index); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNfsMountsCount(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNfsMountsOrBuilderList(); + /** + * + * + *
+   * Optional. List of NFS mount spec.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder getNfsMountsOrBuilder(int index); + /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java index e4c3b4f8c..c6bc7c8b4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java @@ -106,6 +106,8 @@ private WriteTensorboardExperimentDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataResponse.java index 5d029a93c..b7a509556 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataResponse.java @@ -81,6 +81,8 @@ private WriteTensorboardExperimentDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java index 359e680a7..cf7dfb39e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java @@ -104,6 +104,8 @@ private WriteTensorboardRunDataRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponse.java index 39e4452f6..198a3ca93 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponse.java @@ -80,6 +80,8 @@ private WriteTensorboardRunDataResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java index 7e8f35c29..63ed2fc5d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java @@ -122,6 +122,8 @@ private XraiAttribution( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java index 27af8d374..ebdc83a44 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java @@ -99,6 +99,8 @@ private ImageClassificationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java index 2cdc14c52..24d584c14 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java @@ -99,6 +99,8 @@ private ImageObjectDetectionPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java index 4da85db87..9c154422f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java @@ -99,6 +99,8 @@ private ImageSegmentationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java index 7adc33fcf..2ee770b1c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java @@ -99,6 +99,8 @@ private TextClassificationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java index 1ad7c10ac..ad45afd81 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java @@ -106,6 +106,8 @@ private TextExtractionPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java index 407bb65b5..3f4b72466 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java @@ -98,6 +98,8 @@ private TextSentimentPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java index 221b0c4b0..9c05e4ded 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java @@ -115,6 +115,8 @@ private VideoActionRecognitionPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java index 5adfbee45..ce55ddb8e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java @@ -115,6 +115,8 @@ private VideoClassificationPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java index e6f9e6b07..9266e7bed 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java @@ -115,6 +115,8 @@ private VideoObjectTrackingPredictionInstance( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java index 4c288dc40..370bf833f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java @@ -92,6 +92,8 @@ private ImageClassificationPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -172,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -187,7 +189,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java index 958e388b2..4816f111a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java @@ -92,6 +92,8 @@ private ImageObjectDetectionPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -172,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -187,7 +189,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java index 3b4c22603..8707a70b8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java @@ -86,6 +86,8 @@ private ImageSegmentationPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -148,7 +150,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } unknownFields.writeTo(output); @@ -160,7 +162,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java index fc93e35d0..10049e0e8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java @@ -92,6 +92,8 @@ private VideoActionRecognitionPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -172,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -187,7 +189,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java index 08fb32c41..866fd27f5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java @@ -107,6 +107,8 @@ private VideoClassificationPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -257,7 +259,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { @@ -281,7 +283,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java index 45fcc925c..25e4326ae 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java @@ -97,6 +97,8 @@ private VideoObjectTrackingPredictionParams( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -196,13 +198,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } if (maxPredictions_ != 0) { output.writeInt32(2, maxPredictions_); } - if (minBoundingBoxSize_ != 0F) { + if (java.lang.Float.floatToRawIntBits(minBoundingBoxSize_) != 0) { output.writeFloat(3, minBoundingBoxSize_); } unknownFields.writeTo(output); @@ -214,13 +216,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (confidenceThreshold_ != 0F) { + if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (maxPredictions_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxPredictions_); } - if (minBoundingBoxSize_ != 0F) { + if (java.lang.Float.floatToRawIntBits(minBoundingBoxSize_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, minBoundingBoxSize_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java index 43d5a5469..fe228db62 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java @@ -142,6 +142,8 @@ private ClassificationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java index e36b0f5b6..ab450b016 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java @@ -154,6 +154,8 @@ private ImageObjectDetectionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java index 6b8e9bd81..d0e6ee144 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java @@ -98,6 +98,8 @@ private ImageSegmentationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java index c4243a81b..632be75ed 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java @@ -119,6 +119,8 @@ private TabularClassificationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java index eee97a45e..ed72b29c3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java @@ -96,6 +96,8 @@ private TabularRegressionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -191,13 +193,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (value_ != 0F) { + if (java.lang.Float.floatToRawIntBits(value_) != 0) { output.writeFloat(1, value_); } - if (lowerBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(lowerBound_) != 0) { output.writeFloat(2, lowerBound_); } - if (upperBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(upperBound_) != 0) { output.writeFloat(3, upperBound_); } unknownFields.writeTo(output); @@ -209,13 +211,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (value_ != 0F) { + if (java.lang.Float.floatToRawIntBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, value_); } - if (lowerBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(lowerBound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, lowerBound_); } - if (upperBound_ != 0F) { + if (java.lang.Float.floatToRawIntBits(upperBound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, upperBound_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java index 46228260f..ca760c544 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java @@ -190,6 +190,8 @@ private TextExtractionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java index fd7d187c0..d98de49fb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java @@ -85,6 +85,8 @@ private TextSentimentPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java index 7405542ef..9f1bfd384 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java @@ -87,6 +87,8 @@ private TimeSeriesForecastingPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -146,7 +148,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (value_ != 0F) { + if (java.lang.Float.floatToRawIntBits(value_) != 0) { output.writeFloat(1, value_); } unknownFields.writeTo(output); @@ -158,7 +160,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (value_ != 0F) { + if (java.lang.Float.floatToRawIntBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, value_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java index 85095f232..3afc367ac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java @@ -144,6 +144,8 @@ private VideoActionRecognitionPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java index 601e077a7..837c0fbbb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java @@ -152,6 +152,8 @@ private VideoClassificationPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java index a5ba846b6..23b9597fe 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java @@ -162,6 +162,8 @@ private VideoObjectTrackingPredictionResult( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -521,6 +523,8 @@ private Frame( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 3b1455031..411184e52 100644 --- 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 @@ -121,6 +121,8 @@ private AutoMlForecasting( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java index 0cafb02b9..9dc1e979f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java @@ -265,6 +265,8 @@ private AutoMlForecastingInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -645,6 +647,8 @@ private Transformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -762,6 +766,8 @@ private AutoTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -1449,6 +1455,8 @@ private NumericTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -2143,6 +2151,8 @@ private CategoricalTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -2891,6 +2901,8 @@ private TimestampTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3827,6 +3839,8 @@ private TextTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -5399,8 +5413,9 @@ public Builder mergeAuto( } else { if (transformationDetailCase_ == 1) { autoBuilder_.mergeFrom(value); + } else { + autoBuilder_.setMessage(value); } - autoBuilder_.setMessage(value); } transformationDetailCase_ = 1; return this; @@ -5612,8 +5627,9 @@ public Builder mergeNumeric( } else { if (transformationDetailCase_ == 2) { numericBuilder_.mergeFrom(value); + } else { + numericBuilder_.setMessage(value); } - numericBuilder_.setMessage(value); } transformationDetailCase_ = 2; return this; @@ -5828,8 +5844,9 @@ public Builder mergeCategorical( } else { if (transformationDetailCase_ == 3) { categoricalBuilder_.mergeFrom(value); + } else { + categoricalBuilder_.setMessage(value); } - categoricalBuilder_.setMessage(value); } transformationDetailCase_ = 3; return this; @@ -6043,8 +6060,9 @@ public Builder mergeTimestamp( } else { if (transformationDetailCase_ == 4) { timestampBuilder_.mergeFrom(value); + } else { + timestampBuilder_.setMessage(value); } - timestampBuilder_.setMessage(value); } transformationDetailCase_ = 4; return this; @@ -6257,8 +6275,9 @@ public Builder mergeText( } else { if (transformationDetailCase_ == 5) { textBuilder_.mergeFrom(value); + } else { + textBuilder_.setMessage(value); } - textBuilder_.setMessage(value); } transformationDetailCase_ = 5; return this; @@ -6551,6 +6570,8 @@ private Granularity( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 index 9075b6c28..0edff2643 100644 --- 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 @@ -86,6 +86,8 @@ private AutoMlForecastingMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java index 0352d9b48..8f2566d88 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java @@ -121,6 +121,8 @@ private AutoMlImageClassification( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java index fd17eecb8..16dde1cb7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java @@ -108,6 +108,8 @@ private AutoMlImageClassificationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java index 9cc70e6f0..56f2cd528 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java @@ -90,6 +90,8 @@ private AutoMlImageClassificationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java index 9a3c5c217..ceacc0054 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java @@ -121,6 +121,8 @@ private AutoMlImageObjectDetection( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java index 405069a21..b2093dc28 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java @@ -95,6 +95,8 @@ private AutoMlImageObjectDetectionInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java index f453cbda0..21abf4b38 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java @@ -90,6 +90,8 @@ private AutoMlImageObjectDetectionMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java index 74fc1ac7f..9f6900a44 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java @@ -121,6 +121,8 @@ private AutoMlImageSegmentation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java index 2c2e73f7c..8b26caeb6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java @@ -97,6 +97,8 @@ private AutoMlImageSegmentationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java index 2bdc98aa2..e895b15ca 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java @@ -90,6 +90,8 @@ private AutoMlImageSegmentationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java index b380a10b8..1226db298 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java @@ -119,6 +119,8 @@ private AutoMlTables( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 5baa8b4a7..a3f4e6537 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 @@ -110,14 +110,14 @@ private AutoMlTablesInputs( } case 45: { - additionalOptimizationObjectiveConfigCase_ = 5; additionalOptimizationObjectiveConfig_ = input.readFloat(); + additionalOptimizationObjectiveConfigCase_ = 5; break; } case 53: { - additionalOptimizationObjectiveConfigCase_ = 6; additionalOptimizationObjectiveConfig_ = input.readFloat(); + additionalOptimizationObjectiveConfigCase_ = 6; break; } case 56: @@ -178,6 +178,8 @@ private AutoMlTablesInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -707,6 +709,8 @@ private Transformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -822,6 +826,8 @@ private AutoTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -1525,6 +1531,8 @@ private NumericTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -2312,6 +2320,8 @@ private CategoricalTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3072,6 +3082,8 @@ private TimestampTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -4098,6 +4110,8 @@ private TextTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -4807,6 +4821,8 @@ private NumericArrayTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -5589,6 +5605,8 @@ private CategoricalArrayTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -6276,6 +6294,8 @@ private TextArrayTransformation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -8099,8 +8119,9 @@ public Builder mergeAuto( } else { if (transformationDetailCase_ == 1) { autoBuilder_.mergeFrom(value); + } else { + autoBuilder_.setMessage(value); } - autoBuilder_.setMessage(value); } transformationDetailCase_ = 1; return this; @@ -8312,8 +8333,9 @@ public Builder mergeNumeric( } else { if (transformationDetailCase_ == 2) { numericBuilder_.mergeFrom(value); + } else { + numericBuilder_.setMessage(value); } - numericBuilder_.setMessage(value); } transformationDetailCase_ = 2; return this; @@ -8525,8 +8547,9 @@ public Builder mergeCategorical( } else { if (transformationDetailCase_ == 3) { categoricalBuilder_.mergeFrom(value); + } else { + categoricalBuilder_.setMessage(value); } - categoricalBuilder_.setMessage(value); } transformationDetailCase_ = 3; return this; @@ -8738,8 +8761,9 @@ public Builder mergeTimestamp( } else { if (transformationDetailCase_ == 4) { timestampBuilder_.mergeFrom(value); + } else { + timestampBuilder_.setMessage(value); } - timestampBuilder_.setMessage(value); } transformationDetailCase_ = 4; return this; @@ -8950,8 +8974,9 @@ public Builder mergeText( } else { if (transformationDetailCase_ == 5) { textBuilder_.mergeFrom(value); + } else { + textBuilder_.setMessage(value); } - textBuilder_.setMessage(value); } transformationDetailCase_ = 5; return this; @@ -9163,8 +9188,9 @@ public Builder mergeRepeatedNumeric( } else { if (transformationDetailCase_ == 6) { repeatedNumericBuilder_.mergeFrom(value); + } else { + repeatedNumericBuilder_.setMessage(value); } - repeatedNumericBuilder_.setMessage(value); } transformationDetailCase_ = 6; return this; @@ -9378,8 +9404,9 @@ public Builder mergeRepeatedCategorical( } else { if (transformationDetailCase_ == 7) { repeatedCategoricalBuilder_.mergeFrom(value); + } else { + repeatedCategoricalBuilder_.setMessage(value); } - repeatedCategoricalBuilder_.setMessage(value); } transformationDetailCase_ = 7; return this; @@ -9592,8 +9619,9 @@ public Builder mergeRepeatedText( } else { if (transformationDetailCase_ == 8) { repeatedTextBuilder_.mergeFrom(value); + } else { + repeatedTextBuilder_.setMessage(value); } - repeatedTextBuilder_.setMessage(value); } transformationDetailCase_ = 8; return this; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java index e2d6b1551..6ca9b3c38 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java @@ -85,6 +85,8 @@ private AutoMlTablesMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java index 4a0f8e5ad..d98e8967a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java @@ -101,6 +101,8 @@ private AutoMlTextClassification( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java index d8fa7ae68..3b9cf498e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java @@ -81,6 +81,8 @@ private AutoMlTextClassificationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java index 1435600f9..104620099 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java @@ -101,6 +101,8 @@ private AutoMlTextExtraction( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java index da25e7925..a603f254b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtractionInputs.java @@ -75,6 +75,8 @@ private AutoMlTextExtractionInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java index e88c04ddd..c97641b37 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java @@ -100,6 +100,8 @@ private AutoMlTextSentiment( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java index e7a62d239..852f8632e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java @@ -79,6 +79,8 @@ private AutoMlTextSentimentInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java index 8c1583d4c..60726f818 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java @@ -102,6 +102,8 @@ private AutoMlVideoActionRecognition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java index 8aa295566..abbc0dfdb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java @@ -85,6 +85,8 @@ private AutoMlVideoActionRecognitionInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java index 0d552a261..c48838c69 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java @@ -101,6 +101,8 @@ private AutoMlVideoClassification( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java index 9c53b92db..268cc0930 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java @@ -85,6 +85,8 @@ private AutoMlVideoClassificationInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java index 50907b19e..7a76a4995 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java @@ -101,6 +101,8 @@ private AutoMlVideoObjectTracking( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java index f43b6b701..f43e584f9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java @@ -85,6 +85,8 @@ private AutoMlVideoObjectTrackingInputs( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java index b448abb17..b0b983b61 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java @@ -96,6 +96,8 @@ private ExportEvaluatedDataItemsConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { 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 989153257..e57ab445a 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 @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; 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"; 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 cac7f7612..5d4c5664e 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto index bc314f1a5..378afb3f7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; 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 487497c75..b50a8feba 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/completion_stats.proto"; @@ -26,7 +25,6 @@ import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto"; -import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; import "google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -165,6 +163,9 @@ message BatchPredictionJob { type: "aiplatform.googleapis.com/Model" }]; + // Output only. The version ID of the Model that produces the predictions via this job. + string model_version_id = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Contains model information necessary to perform batch prediction without // requiring uploading to model registry. // Exactly one of model and unmanaged_container_model must be set. 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 268a541ea..7d539d82d 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 @@ -16,9 +16,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; -import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto index 13e5a5760..7f81ce4c0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; 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 a8ae99eea..d2f1464de 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 @@ -16,11 +16,9 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; -import "google/cloud/aiplatform/v1beta1/env_var.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; @@ -141,6 +139,16 @@ message CustomJobSpec { type: "compute.googleapis.com/Network" }]; + // Optional. A list of names for the reserved ip ranges under the VPC network + // that can be used for this job. + // + // If set, we will deploy the job within the provided ip ranges. Otherwise, + // the job will be deployed to any ip ranges under the provided VPC + // network. + // + // Example: ['vertex-ai-ip-range']. + repeated string reserved_ip_ranges = 13 [(google.api.field_behavior) = OPTIONAL]; + // The Cloud Storage location to store the output of this CustomJob or // HyperparameterTuningJob. For HyperparameterTuningJob, // the baseOutputDirectory of @@ -205,6 +213,9 @@ message WorkerPoolSpec { // Optional. The number of worker replicas to use for this worker pool. int64 replica_count = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of NFS mount spec. + repeated NfsMount nfs_mounts = 4 [(google.api.field_behavior) = OPTIONAL]; + // Disk spec. DiskSpec disk_spec = 5; } 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 016dd1a0b..5c3e443bf 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 @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; - import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; 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 8479899db..3a7160a56 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 @@ -16,13 +16,10 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; -import "google/cloud/aiplatform/v1beta1/specialist_pool.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; 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 920311500..5d1f197f4 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; 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 285c27402..92bb46287 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 @@ -25,7 +25,6 @@ import "google/cloud/aiplatform/v1beta1/annotation_spec.proto"; import "google/cloud/aiplatform/v1beta1/data_item.proto"; import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; -import "google/cloud/aiplatform/v1beta1/training_pipeline.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto index 64c540233..fd20f4d63 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; 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 68f234a28..337ba55e8 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; 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 9a514ea6e..27e2bade0 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; 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 176a24231..b2d12694b 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 @@ -16,15 +16,12 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; -import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; -import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -112,12 +109,12 @@ message Endpoint { type: "compute.googleapis.com/Network" }]; - // If true, expose the Endpoint via private service connect. + // Deprecated: If true, expose the Endpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect], // can be set. - bool enable_private_service_connect = 17; + bool enable_private_service_connect = 17 [deprecated = true]; // Output only. Resource name of the Model Monitoring job associated with this Endpoint // if monitoring is enabled by [CreateModelDeploymentMonitoringJob][]. @@ -129,6 +126,9 @@ message Endpoint { type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } ]; + + // Configures the request-response logging for online prediction. + PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; } // A deployment of a Model. Endpoints contain one or more DeployedModels. @@ -163,6 +163,9 @@ message DeployedModel { } ]; + // Output only. The version ID of the model that is deployed. + string model_version_id = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The display name of the DeployedModel. If not provided upon creation, // the Model's display_name is used. string display_name = 3; @@ -229,3 +232,21 @@ message PrivateEndpoints { // connect is enabled. string service_attachment = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Configuration for logging request-response to a BigQuery table. +message PredictRequestResponseLoggingConfig { + // If logging is enabled or not. + bool enabled = 1; + + // Percentage of requests to be logged, expressed as a fraction in + // range(0,1]. + double sampling_rate = 2; + + // BigQuery table for logging. + // If only given a project, a new dataset will be created with name + // `logging__` where + // will be made BigQuery-dataset-name compatible (e.g. + // most special characters will become underscores). If no table name is + // given, a new table will be created with name `request_response_logging` + BigQueryDestination bigquery_destination = 3; +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto index e1fd6cfcd..14f762bac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/feature.proto"; import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; 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 6970f614d..5e1d677b9 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto index edc389323..5cbb25c8c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto index ebb57f818..74395db99 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; 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 e7d0d3d53..1f3b25124 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/explanation_metadata.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; @@ -198,9 +197,9 @@ message ExplanationParameters { // x-rays or quality-control cameras, use Integrated Gradients instead. XraiAttribution xrai_attribution = 3; - // Similarity explainability that returns the nearest neighbors from the + // Example-based explanations that returns the nearest neighbors from the // provided dataset. - Similarity similarity = 7; + Examples examples = 7; } // If populated, returns attributions for top K indices of outputs @@ -371,15 +370,18 @@ message BlurBaselineConfig { float max_blur_sigma = 1; } -// Similarity explainability that returns the nearest neighbors from the +// Example-based explainability that returns the nearest neighbors from the // provided dataset. -message Similarity { +message Examples { // The Cloud Storage location for the input instances. GcsSource gcs_source = 1; // The configuration for the generated index, the semantics are the same as // [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig. google.protobuf.Value nearest_neighbor_search_config = 2; + + // The number of neighbors to return. + int32 neighbor_count = 3; } // The [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] entries that can be overridden at 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 6b024023f..8d59f0886 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto index 16a7558ea..cf67cf3e9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; @@ -43,9 +42,7 @@ message Feature { // A list of historical [Snapshot // Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature // Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats - // requested by user, sorted by - // [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] - // descending. + // requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] descending. message MonitoringStatsAnomaly { // If the objective in the request is both // Import Feature Analysis and Snapshot Analysis, this objective could be @@ -66,8 +63,7 @@ message Feature { Objective objective = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The stats and anomalies generated at specific timestamp. - FeatureStatsAnomaly feature_stats_anomaly = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + FeatureStatsAnomaly feature_stats_anomaly = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // An enum representing the value type of a feature. @@ -145,8 +141,9 @@ message Feature { // "overwrite" update happens. string etag = 7; - // Optional. The custom monitoring configuration for this Feature, if not set, use the - // monitoring_config defined for the EntityType this Feature belongs to. + // Optional. Deprecated: The custom monitoring configuration for this Feature, if not + // set, use the monitoring_config defined for the EntityType this Feature + // belongs to. // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or // INT64 can enable monitoring. // @@ -156,12 +153,15 @@ message Feature { // [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring // config is same as the EntityType's this Feature belongs to. - FeaturestoreMonitoringConfig monitoring_config = 9 [(google.api.field_behavior) = OPTIONAL]; + FeaturestoreMonitoringConfig monitoring_config = 9 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; - // Optional. If not set, use the monitoring_config defined for the EntityType - // this Feature belongs to. Only Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) - // BOOL, STRING, DOUBLE or INT64 can enable monitoring. + // Optional. If not set, use the monitoring_config defined for the EntityType this + // Feature belongs to. + // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or + // INT64 can enable monitoring. // // If set to true, all types of data monitoring are disabled despite the // config on EntityType. @@ -173,8 +173,6 @@ message Feature { // descending. repeated FeatureStatsAnomaly monitoring_stats = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The list of historical stats and anomalies with specified - // objectives. - repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 - [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The list of historical stats and anomalies with specified objectives. + repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto index f468e95af..30ffbd951 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto index 65b851d0d..907f14e23 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto index 1240acdce..f5ece8f20 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; @@ -50,16 +49,15 @@ message Featurestore { // equal to 1. int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of nodes to scale up to. Must be greater or equal to - // min_node_count. + // The maximum number of nodes to scale up to. Must be greater than + // min_node_count, and less than or equal to 10 times of 'min_node_count'. int32 max_node_count = 2; } - // The number of nodes for each cluster. The number of nodes will not - // scale automatically but can be scaled manually by providing different - // values when updating. - // Only one of `fixed_node_count` and `scaling` can be set. Setting one will - // reset the other. + // The number of nodes for the online store. The number of nodes doesn't + // scale automatically, but you can manually update the number of + // nodes. If set to 0, the featurestore will not have an + // online store and cannot be used for online serving. int32 fixed_node_count = 2; // Online serving scaling configuration. @@ -68,24 +66,26 @@ message Featurestore { Scaling scaling = 4; } - // Possible states a Featurestore can have. + // Possible states a featurestore can have. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; - // State when the Featurestore configuration is not being updated and the - // fields reflect the current configuration of the Featurestore. The - // Featurestore is usable in this state. + // State when the featurestore configuration is not being updated and the + // fields reflect the current configuration of the featurestore. The + // featurestore is usable in this state. STABLE = 1; - // State when the Featurestore configuration is being updated and the fields - // reflect the updated configuration of the Featurestore, not the current - // one. For example, `online_serving_config.fixed_node_count` can take - // minutes to update. While the update is in progress, the Featurestore - // will be in the UPDATING state and the value of `fixed_node_count` will be - // the updated value. Until the update completes, the actual number of nodes - // can still be the original value of `fixed_node_count`. The Featurestore - // is still usable in this state. + // The state of the featurestore configuration when it is being updated. + // During an update, the fields reflect either the original configuration + // or the updated configuration of the featurestore. For example, + // `online_serving_config.fixed_node_count` can take minutes to update. + // While the update is in progress, the featurestore is in the UPDATING + // state, and the value of `fixed_node_count` can be the original value or + // the updated value, depending on the progress of the operation. Until the + // update completes, the actual number of nodes can still be the original + // value of `fixed_node_count`. The featurestore is still usable in this + // state. UPDATING = 2; } @@ -116,8 +116,9 @@ message Featurestore { // and are immutable. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - // Required. Config for online serving resources. - OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = REQUIRED]; + // Optional. Config for online storage resources. If unset, the featurestore will + // not have an online store and cannot be used for online serving. + OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. State of the featurestore. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto index 9ef9b1f6b..fefe9e772 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -55,8 +54,7 @@ message FeaturestoreMonitoringConfig { // running interval. The value indicates number of days. // If both // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - // and - // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + // and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] // are set when creating/updating EntityTypes/Features, // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] // will be used. @@ -147,15 +145,11 @@ message FeaturestoreMonitoringConfig { // Threshold for numerical features of anomaly detection. // This is shared by all objectives of Featurestore Monitoring for numerical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) - // DOUBLE or INT64). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64). ThresholdConfig numerical_threshold_config = 3; // Threshold for categorical features of anomaly detection. // This is shared by all types of Featurestore Monitoring for categorical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) - // BOOL or STRING). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING). ThresholdConfig categorical_threshold_config = 4; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto index efaa15055..0ea0241b5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -22,10 +22,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/entity_type.proto"; import "google/cloud/aiplatform/v1beta1/feature.proto"; -import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; import "google/cloud/aiplatform/v1beta1/feature_selector.proto"; import "google/cloud/aiplatform/v1beta1/featurestore.proto"; -import "google/cloud/aiplatform/v1beta1/featurestore_online_service.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; 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 52bfade99..4e994e1e7 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/custom_job.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto index e7bffd976..ea9bc6d16 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto @@ -16,11 +16,9 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/deployed_index_ref.proto"; - import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 97df3f781..3f8fa62b2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/index.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; @@ -82,9 +80,9 @@ message IndexEndpoint { // Private services access must already be configured for the network. If left // unspecified, the Endpoint is not peered with any network. // - // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - // can be set. + // [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. // // [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): // projects/{project}/global/networks/{network}. @@ -92,12 +90,15 @@ message IndexEndpoint { // network name. string network = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If true, expose the IndexEndpoint via private service connect. + // Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], // can be set. - bool enable_private_service_connect = 10 [(google.api.field_behavior) = OPTIONAL]; + bool enable_private_service_connect = 10 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. 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 ce1fddf13..f571bb62f 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; 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 174e6b5fd..14458e2ee 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 @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; option java_multiple_files = true; @@ -58,4 +56,11 @@ enum JobState { // The job has expired. JOB_STATE_EXPIRED = 9; + + // The job is being updated. The job is only able to be updated at RUNNING + // state; if the update operation succeeds, job goes back to RUNNING state; if + // the update operation fails, the job goes back to RUNNING state with error + // messages written to [ModelDeploymentMonitoringJob.partial_errors][] field + // if it is a ModelDeploymentMonitoringJob. + JOB_STATE_UPDATING = 10; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto index ec045f7ce..ce2797179 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/cloud/aiplatform/v1beta1/artifact.proto"; import "google/cloud/aiplatform/v1beta1/event.proto"; import "google/cloud/aiplatform/v1beta1/execution.proto"; 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 c15ff89ff..fa1d1faaf 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; @@ -79,6 +78,11 @@ message DedicatedResources { // replicas at maximum may handle, a portion of the traffic will be dropped. // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the // default value. + // + // The value of this field impacts the charge against Vertex CPU and GPU + // quotas. Specifically, you will be charged for (max_replica_count * + // number of cores in the selected machine type) and (max_replica_count * + // number of GPUs per replica in the selected machine type). int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. The metric specifications that overrides a resource @@ -165,6 +169,21 @@ message DiskSpec { int32 boot_disk_size_gb = 2; } +// Represents a mount configuration for Network File System (NFS) to mount. +message NfsMount { + // Required. IP address of the NFS server. + string server = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Source path exported from NFS server. + // Has to start with '/', and combined with the ip address, it indicates + // the source mount path in the form of `server:path` + string path = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Destination mount path. The NFS will be mounted for the user under + // /mnt/nfs/ + string mount_point = 3 [(google.api.field_behavior) = REQUIRED]; +} + // The metric specification that defines the target resource utilization // (CPU utilization, accelerator's duty cycle, and so on) for calculating the // desired replica count. 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 7068a8b8e..f8f75fdcb 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto index 1491d52d7..0623a3ee9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto index ce26547f4..afcf68d0b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto @@ -571,9 +571,9 @@ message UpdateArtifactRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` Artifact artifact = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is // created. @@ -757,9 +757,9 @@ message UpdateContextRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context context = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] is // created. @@ -1021,9 +1021,9 @@ message UpdateExecutionRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution execution = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution] // is created. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto index 4b93aac9b..2d8a19d3a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; 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 37d179cdd..bd8aa7301 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; 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 05bf7e5d3..f08ad889c 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 @@ -20,9 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/migratable_resource.proto"; -import "google/cloud/aiplatform/v1beta1/model.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/rpc/status.proto"; 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 ebbbaf9ff..d17275bb8 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 @@ -16,15 +16,12 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/deployed_model_ref.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/env_var.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; - import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -106,6 +103,32 @@ message Model { // The resource name of the Model. string name = 1; + // Output only. Immutable. The version ID of the model. + // A new version is committed when a new model version is uploaded or + // trained under an existing model id. It is an auto-incrementing decimal + // number in string representation. + string version_id = 28 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // User provided version aliases so that a model version can be referenced via + // alias (i.e. + // projects/{project}/locations/{location}/models/{model_id}@{version_alias} + // instead of auto-generated version id (i.e. + // projects/{project}/locations/{location}/models/{model_id}@{version_id}). + // The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from + // version_id. A default version alias will be created for the first version + // of the model, and there must be exactly one default version alias for a + // model. + repeated string version_aliases = 29; + + // Output only. Timestamp when this version was created. + google.protobuf.Timestamp version_create_time = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this version was most recently updated. + google.protobuf.Timestamp version_update_time = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The display name of the Model. // The name can be up to 128 characters long and can be consist of any UTF-8 // characters. @@ -114,6 +137,9 @@ message Model { // The description of the Model. string description = 3; + // The description of this version. + string version_description = 30; + // The schemata that describe formats of the Model's predictions and // explanations as given and returned via // [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] and [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index fde72be97..014f42f56 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; @@ -29,7 +28,6 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; - option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; option java_multiple_files = true; @@ -69,6 +67,16 @@ message ModelDeploymentMonitoringJob { pattern: "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" }; + // All metadata of most recent monitoring pipelines. + message LatestMonitoringPipelineMetadata { + // The time that most recent monitoring pipelines that is related to this + // run. + google.protobuf.Timestamp run_time = 1; + + // The status of the most recent monitoring pipeline. + google.rpc.Status status = 2; + } + // The state to Specify the monitoring pipeline. enum MonitoringScheduleState { // Unspecified state. @@ -112,6 +120,9 @@ message ModelDeploymentMonitoringJob { // Output only. Schedule state when the monitoring job is in Running state. MonitoringScheduleState schedule_state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Latest triggered monitoring pipeline metadata. + LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The config for monitoring objectives. This is a per DeployedModel config. // Each DeployedModel needs to be configured separately. repeated ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(google.api.field_behavior) = REQUIRED]; 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 3f7b9234e..f64c4d3ff 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; 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 b2a2b8b9e..aa39f1118 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto index 08974f942..49676251e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; @@ -28,7 +27,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; -// Next ID: 6 +// Next ID: 8 message ModelMonitoringObjectiveConfig { // Training Dataset information. message TrainingDataset { 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 239dc8c6c..4bc803b0c 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 @@ -20,15 +20,12 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; -import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; import "google/cloud/aiplatform/v1beta1/model_evaluation.proto"; import "google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; - import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -73,6 +70,14 @@ service ModelService { option (google.api.method_signature) = "parent"; } + // Lists versions of the specified model. + rpc ListModelVersions(ListModelVersionsRequest) returns (ListModelVersionsResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/models/*}:listVersions" + }; + option (google.api.method_signature) = "name"; + } + // Updates a Model. rpc UpdateModel(UpdateModelRequest) returns (Model) { option (google.api.http) = { @@ -98,6 +103,31 @@ service ModelService { }; } + // Deletes a Model version. + // + // Model version can only be deleted if there are no [DeployedModels][] + // created from it. Deleting the only version in the Model is not allowed. Use + // [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead. + rpc DeleteModelVersion(DeleteModelVersionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/models/*}:deleteVersion" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Merges a set of aliases for a Model version. + rpc MergeVersionAliases(MergeVersionAliasesRequest) returns (Model) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/models/*}:mergeVersionAliases" + body: "*" + }; + option (google.api.method_signature) = "name,version_aliases"; + } + // Exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one // [supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. @@ -166,6 +196,17 @@ message UploadModelRequest { } ]; + // Optional. The resource name of the model into which to upload the version. Only + // specify this field when uploading a new version. + string parent_model = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID to use for the uploaded Model, which will become the final + // component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 5 [(google.api.field_behavior) = OPTIONAL]; + // Required. The Model to create. Model model = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -183,6 +224,9 @@ message UploadModelResponse { string model = 1 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; + + // Output only. The version ID of the model that is uploaded. + string model_version_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for [ModelService.GetModel][google.cloud.aiplatform.v1beta1.ModelService.GetModel]. @@ -248,9 +292,73 @@ message ListModelsResponse { string next_page_token = 2; } +// Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions]. +message ListModelVersionsRequest { + // Required. The name of the model to list versions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained via + // [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous + // [ModelService.ListModelversions][] call. + string page_token = 3; + + // An expression for filtering the results of the request. For field names + // both snake_case and camelCase are supported. + // + // * `labels` supports general map functions that is: + // * `labels.key=value` - key:value equality + // * `labels.key:* or labels:key - key existence + // * A key including a space must be quoted. `labels."a key"`. + // + // Some examples: + // * `labels.myKey="myValue"` + string filter = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions] +message ListModelVersionsResponse { + // List of Model versions in the requested page. + // In the returned Model name field, version ID instead of regvision tag will + // be included. + repeated Model models = 1; + + // A token to retrieve the next page of results. + // Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + // Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1beta1.ModelService.UpdateModel]. message UpdateModelRequest { // Required. The Model which replaces the resource on the server. + // When Model Versioning is enabled, the model.name will be used to determine + // whether to update the model or model version. + // 1. model.name with the @ value, e.g. models/123@1, refers to a version + // specific update. + // 2. model.name without the @ value, e.g. models/123, refers to a model + // update. + // 3. model.name with @-, e.g. models/123@-, refers to a model update. + // 4. Supported model fields: display_name, description; supported + // version-specific fields: version_description. Labels are supported in both + // scenarios. Both the model labels and the version labels are merged when a + // model is returned. When updating labels, if the request is for + // model-specific update, model label gets updated. Otherwise, version labels + // get updated. + // 5. A model name or model version name fields update mismatch will cause a + // precondition error. + // 6. One request cannot update both the model and the version fields. You + // must update them separately. Model model = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. @@ -270,6 +378,48 @@ message DeleteModelRequest { ]; } +// Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion]. +message DeleteModelVersionRequest { + // Required. The name of the model version to be deleted, with a version ID explicitly + // included. + // + // Example: `projects/{project}/locations/{location}/models/{model}@1234` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; +} + +// Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases]. +message MergeVersionAliasesRequest { + // Required. The name of the model version to merge aliases, with a version ID + // explicitly included. + // + // Example: `projects/{project}/locations/{location}/models/{model}@1234` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Required. The set of version aliases to merge. + // The alias should be at most 128 characters, and match + // `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + // Add the `-` prefix to an alias means removing that alias from the version. + // `-` is NOT counted in the 128 characters. Example: `-golden` means removing + // the `golden` alias from the version. + // + // There is NO ordering in aliases, which means + // 1) The aliases returned from GetModel API might not have the exactly same + // order from this MergeVersionAliases API. 2) Adding and deleting the same + // alias in the request is not recommended, and the 2 operations will be + // cancelled out. + repeated string version_aliases = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Request message for [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel]. message ExportModelRequest { // Output configuration for the Model export. 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 b441d6f2b..04e04b201 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index fccdc743b..abb6fc8f0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/artifact.proto"; @@ -95,8 +94,8 @@ message PipelineJob { // Output only. Timestamp when this PipelineJob was most recently updated. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The spec of the pipeline. - google.protobuf.Struct pipeline_spec = 7 [(google.api.field_behavior) = REQUIRED]; + // The spec of the pipeline. + google.protobuf.Struct pipeline_spec = 7; // Output only. The detailed state of the job. PipelineState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 87f92ff1d..56123e651 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 @@ -322,6 +322,9 @@ message ListPipelineJobsRequest { // * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. // Values must be in RFC 3339 format. // * `labels`: Supports key-value equality and key presence. + // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + // * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + // wildcard. // // Filter expressions can be combined together using logical operators // (`AND` & `OR`). 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 7544acc9d..41f2fb6ae 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 @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; option java_multiple_files = true; 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 bc5e12ac8..e24524205 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 @@ -133,6 +133,10 @@ message PredictResponse { } ]; + // Output only. The version ID of the Model which is deployed as the DeployedModel that + // this prediction hits. + string model_version_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The [display name][google.cloud.aiplatform.v1beta1.Model.display_name] of the Model which is deployed as // the DeployedModel that this prediction hits. string model_display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; 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 42536fcba..49be7b793 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; 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 a315bf44e..d0642d180 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; @@ -399,6 +398,54 @@ message StudySpec { bool use_elapsed_duration = 1; } + // Configuration for ConvexAutomatedStoppingSpec. + // When there are enough completed trials (configured by + // min_measurement_count), for pending trials with enough measurements and + // steps, the policy first computes an overestimate of the objective value at + // max_num_steps according to the slope of the incomplete objective value + // curve. No prediction can be made if the curve is completely flat. If the + // overestimation is worse than the best objective value of the completed + // trials, this pending trial will be early-stopped, but a last measurement + // will be added to the pending trial with max_num_steps and predicted + // objective value from the autoregression model. + message ConvexAutomatedStoppingSpec { + // 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. If not defined, it will learn it from the completed trials. When + // use_steps is false, this field is set to the maximum elapsed seconds. + int64 max_step_count = 1; + + // Minimum number of steps for a trial to complete. Trials which do not have + // a measurement with step_count > min_step_count 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_step_count is set to be one-tenth of the + // max_step_count. + // When use_elapsed_duration is true, this field is set to the minimum + // elapsed seconds. + int64 min_step_count = 2; + + // The minimal number of measurements in a Trial. Early-stopping checks + // will not trigger if less than min_measurement_count+1 completed trials or + // pending trials with less than min_measurement_count measurements. If not + // defined, the default value is 5. + int64 min_measurement_count = 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_elapsed_duration==false, the early stopping + // decision is made according to the predicted objective values according to + // the target steps. If use_elapsed_duration==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_elapsed_duration = 5; + } + // Configuration for ConvexStopPolicy. message ConvexStopConfig { option deprecated = true; @@ -505,6 +552,9 @@ message StudySpec { // Deprecated. // The automated early stopping using convex stopping rule. ConvexStopConfig convex_stop_config = 8 [deprecated = true]; + + // The automated early stopping spec using convex stopping rule. + ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; } // Required. Metric specs for the Study. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto index 3f49bf322..640e636e5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto index 390483915..cfc36e302 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto index b789d11b9..0258ef6d1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto index dd9809dd3..b5f570c87 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto index 0dc2e7748..6e202a6ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; 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 a0b2fe5a0..c4c9225e2 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 @@ -16,13 +16,10 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; -import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; -import "google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; import "google/cloud/aiplatform/v1beta1/pipeline_state.proto"; import "google/protobuf/struct.proto"; @@ -99,6 +96,17 @@ message TrainingPipeline { // is. Model model_to_upload = 7; + // Optional. The ID to use for the uploaded Model, which will become the final + // component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When specify this field, the `model_to_upload` will not be uploaded as a + // new model, instead, it will become a new version of this `parent_model`. + string parent_model = 21 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The detailed state of the pipeline. PipelineState state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto index 1b4db9f26..f4ed214f4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; option java_multiple_files = true; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto index 01a65e003..7b0d6bdcd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto index 9f17635fe..3d4633b59 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; option java_multiple_files = true; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto index 42dea90f1..9468f580a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; option java_multiple_files = true; diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1cd62beac..1e9a9b9c4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-aiplatform - 2.8.8 + 2.8.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 82c10daaa..8e9796f4f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-aiplatform - 2.8.9 + 2.9.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c5be52209..a220da94f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,7 +27,7 @@ com.google.cloud google-cloud-aiplatform - 2.8.8 + 2.8.9 @@ -60,7 +60,7 @@ com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.14.8 + 0.14.9 diff --git a/versions.txt b/versions.txt index e9abfe80c..01359aa6b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-aiplatform:2.8.9:2.8.9 -grpc-google-cloud-aiplatform-v1:2.8.9:2.8.9 -grpc-google-cloud-aiplatform-v1beta1:0.14.9:0.14.9 -proto-google-cloud-aiplatform-v1:2.8.9:2.8.9 -proto-google-cloud-aiplatform-v1beta1:0.14.9:0.14.9 +google-cloud-aiplatform:2.9.0:2.9.0 +grpc-google-cloud-aiplatform-v1:2.9.0:2.9.0 +grpc-google-cloud-aiplatform-v1beta1:0.15.0:0.15.0 +proto-google-cloud-aiplatform-v1:2.9.0:2.9.0 +proto-google-cloud-aiplatform-v1beta1:0.15.0:0.15.0