diff --git a/generation_config.yaml b/generation_config.yaml
index 78ee80ce9447..ffe4ac94d60d 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
-gapic_generator_version: 2.49.0
-googleapis_commitish: 48d30c4966ef9ea31b897e13f75d8f94070cc8e9
-libraries_bom_version: 26.49.0
+gapic_generator_version: 2.50.0
+googleapis_commitish: 14e5759e6036ea42178a7e9cf2490d72cb6813a2
+libraries_bom_version: 26.50.0
# the libraries are ordered with respect to library name, which is
# java-{library.library_name} or java-{library.api-shortname} when
@@ -1054,6 +1054,7 @@ libraries:
- proto_path: google/cloud/gkehub/v1alpha
- proto_path: google/cloud/gkehub/v1beta
- proto_path: google/cloud/gkehub/v1beta1
+ - proto_path: google/cloud/gkehub/policycontroller/v1beta
- proto_path: google/cloud/gkehub/servicemesh/v1beta
- api_shortname: containeranalysis
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index 35a889132323..9d80422eaf01 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.49.0
+ 26.50.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-accessapproval
- 2.53.0
+ 2.54.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-accessapproval:2.53.0'
+implementation 'com.google.cloud:google-cloud-accessapproval:2.54.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.53.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.54.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.53.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.54.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md
index ff00a31af89a..e359981ba3e8 100644
--- a/java-accesscontextmanager/README.md
+++ b/java-accesscontextmanager/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.49.0
+ 26.50.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-identity-accesscontextmanager
- 1.53.0
+ 1.54.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-identity-accesscontextmanager:1.53.0'
+implementation 'com.google.cloud:google-identity-accesscontextmanager:1.54.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.53.0"
+libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.54.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.53.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.54.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-admanager/README.md b/java-admanager/README.md
index ee0317e8886f..020b0368085c 100644
--- a/java-admanager/README.md
+++ b/java-admanager/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.49.0
+ 26.50.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.api-ads
ad-manager
- 0.11.0
+ 0.12.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.api-ads:ad-manager:0.11.0'
+implementation 'com.google.api-ads:ad-manager:0.12.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.11.0"
+libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.12.0"
```
## Authentication
@@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.11.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.12.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md
index 30136637f686..4083eda2f7ce 100644
--- a/java-advisorynotifications/README.md
+++ b/java-advisorynotifications/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.49.0
+ 26.50.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-advisorynotifications
- 0.41.0
+ 0.42.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-advisorynotifications:0.41.0'
+implementation 'com.google.cloud:google-cloud-advisorynotifications:0.42.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.41.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.42.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.41.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.42.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md
index 69b4ab724599..73353d902912 100644
--- a/java-aiplatform/README.md
+++ b/java-aiplatform/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.49.0
+ 26.50.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-aiplatform
- 3.53.0
+ 3.54.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-aiplatform:3.53.0'
+implementation 'com.google.cloud:google-cloud-aiplatform:3.54.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.53.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.54.0"
```
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.53.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.54.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java
index 7ee490cc917b..3b8ce9556a72 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java
@@ -426,7 +426,7 @@
*
*
* CreateNotebookExecutionJob |
* Creates a NotebookExecutionJob. |
*
@@ -2427,6 +2447,168 @@ public final OperationFuture deleteNotebookRunti
return stub.startNotebookRuntimeCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * NotebookRuntimeName name =
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]");
+ * StopNotebookRuntimeResponse response =
+ * notebookServiceClient.stopNotebookRuntimeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the NotebookRuntime resource to be stopped. Instead of
+ * checking whether the name is in valid NotebookRuntime resource name format, directly throw
+ * NotFound exception if there is no such NotebookRuntime in spanner.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ stopNotebookRuntimeAsync(NotebookRuntimeName name) {
+ StopNotebookRuntimeRequest request =
+ StopNotebookRuntimeRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return stopNotebookRuntimeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * String name =
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]").toString();
+ * StopNotebookRuntimeResponse response =
+ * notebookServiceClient.stopNotebookRuntimeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the NotebookRuntime resource to be stopped. Instead of
+ * checking whether the name is in valid NotebookRuntime resource name format, directly throw
+ * NotFound exception if there is no such NotebookRuntime in spanner.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ stopNotebookRuntimeAsync(String name) {
+ StopNotebookRuntimeRequest request =
+ StopNotebookRuntimeRequest.newBuilder().setName(name).build();
+ return stopNotebookRuntimeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * StopNotebookRuntimeRequest request =
+ * StopNotebookRuntimeRequest.newBuilder()
+ * .setName(
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]")
+ * .toString())
+ * .build();
+ * StopNotebookRuntimeResponse response =
+ * notebookServiceClient.stopNotebookRuntimeAsync(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
+ stopNotebookRuntimeAsync(StopNotebookRuntimeRequest request) {
+ return stopNotebookRuntimeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * StopNotebookRuntimeRequest request =
+ * StopNotebookRuntimeRequest.newBuilder()
+ * .setName(
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * notebookServiceClient.stopNotebookRuntimeOperationCallable().futureCall(request);
+ * // Do something.
+ * StopNotebookRuntimeResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable() {
+ return stub.stopNotebookRuntimeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * StopNotebookRuntimeRequest request =
+ * StopNotebookRuntimeRequest.newBuilder()
+ * .setName(
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.stopNotebookRuntimeCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable stopNotebookRuntimeCallable() {
+ return stub.stopNotebookRuntimeCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a NotebookExecutionJob.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java
index e53066f1af6f..6e86ae48e576 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java
@@ -253,6 +253,20 @@ public UnaryCallSettings startNotebookRu
.startNotebookRuntimeOperationSettings();
}
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings stopNotebookRuntimeSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).stopNotebookRuntimeSettings();
+ }
+
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).stopNotebookRuntimeOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings
createNotebookExecutionJobSettings() {
@@ -540,6 +554,21 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().startNotebookRuntimeOperationSettings();
}
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings.Builder
+ stopNotebookRuntimeSettings() {
+ return getStubSettingsBuilder().stopNotebookRuntimeSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings.Builder<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return getStubSettingsBuilder().stopNotebookRuntimeOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings.Builder
createNotebookExecutionJobSettings() {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java
index bacab9a50d96..058f6f7ae0bb 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java
@@ -179,7 +179,7 @@
*
* ResumeSchedule |
* Resumes a paused Schedule to start scheduling new runs. Will mark [Schedule.state][google.cloud.aiplatform.v1.Schedule.state] to 'ACTIVE'. Only paused Schedule can be resumed.
- * When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first. |
+ * When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed runs will be scheduled for backfill first.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
@@ -1064,7 +1064,8 @@ public final UnaryCallable pauseScheduleCallable()
*
* When the Schedule is resumed, new runs will be scheduled starting from the next execution
* time after the current time based on the time_specification in the Schedule. If
- * [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.
+ * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed
+ * runs will be scheduled for backfill first.
*
* Sample code:
*
@@ -1098,7 +1099,8 @@ public final void resumeSchedule(ScheduleName name) {
*
* When the Schedule is resumed, new runs will be scheduled starting from the next execution
* time after the current time based on the time_specification in the Schedule. If
- * [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.
+ * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed
+ * runs will be scheduled for backfill first.
*
* Sample code:
*
@@ -1131,7 +1133,8 @@ public final void resumeSchedule(String name) {
*
* When the Schedule is resumed, new runs will be scheduled starting from the next execution
* time after the current time based on the time_specification in the Schedule. If
- * [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.
+ * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed
+ * runs will be scheduled for backfill first.
*
* Sample code:
*
@@ -1173,7 +1176,8 @@ public final void resumeSchedule(ScheduleName name, boolean catchUp) {
*
* When the Schedule is resumed, new runs will be scheduled starting from the next execution
* time after the current time based on the time_specification in the Schedule. If
- * [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.
+ * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed
+ * runs will be scheduled for backfill first.
*
* Sample code:
*
@@ -1212,7 +1216,8 @@ public final void resumeSchedule(String name, boolean catchUp) {
*
* When the Schedule is resumed, new runs will be scheduled starting from the next execution
* time after the current time based on the time_specification in the Schedule. If
- * [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.
+ * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed
+ * runs will be scheduled for backfill first.
*
* Sample code:
*
@@ -1247,7 +1252,8 @@ public final void resumeSchedule(ResumeScheduleRequest request) {
*
* When the Schedule is resumed, new runs will be scheduled starting from the next execution
* time after the current time based on the time_specification in the Schedule. If
- * [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.
+ * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed
+ * runs will be scheduled for backfill first.
*
* Sample code:
*
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
index dae35503a8f5..7cf6fb30d063 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
@@ -301,6 +301,9 @@
"grpc": {
"libraryClient": "FeatureRegistryServiceClient",
"rpcs": {
+ "BatchCreateFeatures": {
+ "methods": ["batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesOperationCallable", "batchCreateFeaturesCallable"]
+ },
"CreateFeature": {
"methods": ["createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureOperationCallable", "createFeatureCallable"]
},
@@ -389,7 +392,7 @@
"libraryClient": "FeaturestoreServiceClient",
"rpcs": {
"BatchCreateFeatures": {
- "methods": ["batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesOperationCallable", "batchCreateFeaturesCallable"]
+ "methods": ["batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesOperationCallable", "batchCreateFeaturesCallable"]
},
"BatchReadFeatureValues": {
"methods": ["batchReadFeatureValuesAsync", "batchReadFeatureValuesAsync", "batchReadFeatureValuesAsync", "batchReadFeatureValuesOperationCallable", "batchReadFeatureValuesCallable"]
@@ -1102,6 +1105,9 @@
"StartNotebookRuntime": {
"methods": ["startNotebookRuntimeAsync", "startNotebookRuntimeAsync", "startNotebookRuntimeAsync", "startNotebookRuntimeOperationCallable", "startNotebookRuntimeCallable"]
},
+ "StopNotebookRuntime": {
+ "methods": ["stopNotebookRuntimeAsync", "stopNotebookRuntimeAsync", "stopNotebookRuntimeAsync", "stopNotebookRuntimeOperationCallable", "stopNotebookRuntimeCallable"]
+ },
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
},
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java
index c238b0289c28..5c8d589bdab5 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java
@@ -23,6 +23,9 @@
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupRequest;
import com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata;
@@ -124,6 +127,19 @@ public UnaryCallable createFeatureCallable() {
throw new UnsupportedOperationException("Not implemented: createFeatureCallable()");
}
+ public OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: batchCreateFeaturesOperationCallable()");
+ }
+
+ public UnaryCallable batchCreateFeaturesCallable() {
+ throw new UnsupportedOperationException("Not implemented: batchCreateFeaturesCallable()");
+ }
+
public UnaryCallable getFeatureCallable() {
throw new UnsupportedOperationException("Not implemented: getFeatureCallable()");
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java
index 748a5c44d030..628fe8ae76dd 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java
@@ -46,6 +46,9 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupRequest;
import com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata;
@@ -187,6 +190,13 @@ public class FeatureRegistryServiceStubSettings
private final UnaryCallSettings createFeatureSettings;
private final OperationCallSettings
createFeatureOperationSettings;
+ private final UnaryCallSettings
+ batchCreateFeaturesSettings;
+ private final OperationCallSettings<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings;
private final UnaryCallSettings getFeatureSettings;
private final PagedCallSettings<
ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse>
@@ -425,6 +435,20 @@ public UnaryCallSettings createFeatureSettings(
return createFeatureOperationSettings;
}
+ /** Returns the object with the settings used for calls to batchCreateFeatures. */
+ public UnaryCallSettings batchCreateFeaturesSettings() {
+ return batchCreateFeaturesSettings;
+ }
+
+ /** Returns the object with the settings used for calls to batchCreateFeatures. */
+ public OperationCallSettings<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings() {
+ return batchCreateFeaturesOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to getFeature. */
public UnaryCallSettings getFeatureSettings() {
return getFeatureSettings;
@@ -579,6 +603,9 @@ protected FeatureRegistryServiceStubSettings(Builder settingsBuilder) throws IOE
settingsBuilder.deleteFeatureGroupOperationSettings().build();
createFeatureSettings = settingsBuilder.createFeatureSettings().build();
createFeatureOperationSettings = settingsBuilder.createFeatureOperationSettings().build();
+ batchCreateFeaturesSettings = settingsBuilder.batchCreateFeaturesSettings().build();
+ batchCreateFeaturesOperationSettings =
+ settingsBuilder.batchCreateFeaturesOperationSettings().build();
getFeatureSettings = settingsBuilder.getFeatureSettings().build();
listFeaturesSettings = settingsBuilder.listFeaturesSettings().build();
updateFeatureSettings = settingsBuilder.updateFeatureSettings().build();
@@ -620,6 +647,13 @@ public static class Builder
private final OperationCallSettings.Builder<
CreateFeatureRequest, Feature, CreateFeatureOperationMetadata>
createFeatureOperationSettings;
+ private final UnaryCallSettings.Builder
+ batchCreateFeaturesSettings;
+ private final OperationCallSettings.Builder<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings;
private final UnaryCallSettings.Builder getFeatureSettings;
private final PagedCallSettings.Builder<
ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse>
@@ -677,6 +711,8 @@ protected Builder(ClientContext clientContext) {
deleteFeatureGroupOperationSettings = OperationCallSettings.newBuilder();
createFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createFeatureOperationSettings = OperationCallSettings.newBuilder();
+ batchCreateFeaturesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ batchCreateFeaturesOperationSettings = OperationCallSettings.newBuilder();
getFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listFeaturesSettings = PagedCallSettings.newBuilder(LIST_FEATURES_PAGE_STR_FACT);
updateFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -697,6 +733,7 @@ protected Builder(ClientContext clientContext) {
updateFeatureGroupSettings,
deleteFeatureGroupSettings,
createFeatureSettings,
+ batchCreateFeaturesSettings,
getFeatureSettings,
listFeaturesSettings,
updateFeatureSettings,
@@ -725,6 +762,9 @@ protected Builder(FeatureRegistryServiceStubSettings settings) {
settings.deleteFeatureGroupOperationSettings.toBuilder();
createFeatureSettings = settings.createFeatureSettings.toBuilder();
createFeatureOperationSettings = settings.createFeatureOperationSettings.toBuilder();
+ batchCreateFeaturesSettings = settings.batchCreateFeaturesSettings.toBuilder();
+ batchCreateFeaturesOperationSettings =
+ settings.batchCreateFeaturesOperationSettings.toBuilder();
getFeatureSettings = settings.getFeatureSettings.toBuilder();
listFeaturesSettings = settings.listFeaturesSettings.toBuilder();
updateFeatureSettings = settings.updateFeatureSettings.toBuilder();
@@ -745,6 +785,7 @@ protected Builder(FeatureRegistryServiceStubSettings settings) {
updateFeatureGroupSettings,
deleteFeatureGroupSettings,
createFeatureSettings,
+ batchCreateFeaturesSettings,
getFeatureSettings,
listFeaturesSettings,
updateFeatureSettings,
@@ -799,6 +840,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+ builder
+ .batchCreateFeaturesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
builder
.getFeatureSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -943,6 +989,32 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .batchCreateFeaturesOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(
+ BatchCreateFeaturesResponse.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(
+ BatchCreateFeaturesOperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelay(Duration.ofMillis(45000L))
+ .setInitialRpcTimeout(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ZERO)
+ .setTotalTimeout(Duration.ofMillis(300000L))
+ .build()));
+
builder
.updateFeatureOperationSettings()
.setInitialCallSettings(
@@ -1073,6 +1145,21 @@ public UnaryCallSettings.Builder createFeatureS
return createFeatureOperationSettings;
}
+ /** Returns the builder for the settings used for calls to batchCreateFeatures. */
+ public UnaryCallSettings.Builder
+ batchCreateFeaturesSettings() {
+ return batchCreateFeaturesSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to batchCreateFeatures. */
+ public OperationCallSettings.Builder<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings() {
+ return batchCreateFeaturesOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to getFeature. */
public UnaryCallSettings.Builder getFeatureSettings() {
return getFeatureSettings;
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeatureRegistryServiceStub.java
index 0b163aaf25cb..740b26563638 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeatureRegistryServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeatureRegistryServiceStub.java
@@ -28,6 +28,9 @@
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest;
+import com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateFeatureGroupRequest;
import com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata;
@@ -139,6 +142,17 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ batchCreateFeaturesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.FeatureRegistryService/BatchCreateFeatures")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(BatchCreateFeaturesRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor getFeatureMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
@@ -242,6 +256,12 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub {
private final UnaryCallable createFeatureCallable;
private final OperationCallable
createFeatureOperationCallable;
+ private final UnaryCallable batchCreateFeaturesCallable;
+ private final OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable;
private final UnaryCallable getFeatureCallable;
private final UnaryCallable listFeaturesCallable;
private final UnaryCallable
@@ -367,6 +387,16 @@ protected GrpcFeatureRegistryServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings batchCreateFeaturesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(batchCreateFeaturesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings getFeatureTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getFeatureMethodDescriptor)
@@ -514,6 +544,17 @@ protected GrpcFeatureRegistryServiceStub(
settings.createFeatureOperationSettings(),
clientContext,
operationsStub);
+ this.batchCreateFeaturesCallable =
+ callableFactory.createUnaryCallable(
+ batchCreateFeaturesTransportSettings,
+ settings.batchCreateFeaturesSettings(),
+ clientContext);
+ this.batchCreateFeaturesOperationCallable =
+ callableFactory.createOperationCallable(
+ batchCreateFeaturesTransportSettings,
+ settings.batchCreateFeaturesOperationSettings(),
+ clientContext,
+ operationsStub);
this.getFeatureCallable =
callableFactory.createUnaryCallable(
getFeatureTransportSettings, settings.getFeatureSettings(), clientContext);
@@ -633,6 +674,20 @@ public UnaryCallable createFeatureCallable() {
return createFeatureOperationCallable;
}
+ @Override
+ public UnaryCallable batchCreateFeaturesCallable() {
+ return batchCreateFeaturesCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable() {
+ return batchCreateFeaturesOperationCallable;
+ }
+
@Override
public UnaryCallable getFeatureCallable() {
return getFeatureCallable;
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcNotebookServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcNotebookServiceStub.java
index 9e630479f8ba..7cb426f53fd4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcNotebookServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcNotebookServiceStub.java
@@ -54,6 +54,9 @@
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeResponse;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeOperationMetadata;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeResponse;
import com.google.cloud.aiplatform.v1.UpdateNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeRequest;
@@ -209,6 +212,16 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ stopNotebookRuntimeMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.aiplatform.v1.NotebookService/StopNotebookRuntime")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(StopNotebookRuntimeRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
createNotebookExecutionJobMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -353,6 +366,12 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
StartNotebookRuntimeResponse,
StartNotebookRuntimeOperationMetadata>
startNotebookRuntimeOperationCallable;
+ private final UnaryCallable stopNotebookRuntimeCallable;
+ private final OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable;
private final UnaryCallable
createNotebookExecutionJobCallable;
private final OperationCallable<
@@ -550,6 +569,16 @@ protected GrpcNotebookServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings stopNotebookRuntimeTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(stopNotebookRuntimeMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings
createNotebookExecutionJobTransportSettings =
GrpcCallSettings.newBuilder()
@@ -748,6 +777,17 @@ protected GrpcNotebookServiceStub(
settings.startNotebookRuntimeOperationSettings(),
clientContext,
operationsStub);
+ this.stopNotebookRuntimeCallable =
+ callableFactory.createUnaryCallable(
+ stopNotebookRuntimeTransportSettings,
+ settings.stopNotebookRuntimeSettings(),
+ clientContext);
+ this.stopNotebookRuntimeOperationCallable =
+ callableFactory.createOperationCallable(
+ stopNotebookRuntimeTransportSettings,
+ settings.stopNotebookRuntimeOperationSettings(),
+ clientContext,
+ operationsStub);
this.createNotebookExecutionJobCallable =
callableFactory.createUnaryCallable(
createNotebookExecutionJobTransportSettings,
@@ -934,6 +974,20 @@ public UnaryCallable startNotebookRuntim
return startNotebookRuntimeOperationCallable;
}
+ @Override
+ public UnaryCallable stopNotebookRuntimeCallable() {
+ return stopNotebookRuntimeCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable() {
+ return stopNotebookRuntimeOperationCallable;
+ }
+
@Override
public UnaryCallable
createNotebookExecutionJobCallable() {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java
index d870a60a273a..67cb3f1f2ff6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java
@@ -49,6 +49,9 @@
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeResponse;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeOperationMetadata;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeResponse;
import com.google.cloud.aiplatform.v1.UpdateNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeRequest;
@@ -193,6 +196,19 @@ public UnaryCallable startNotebookRuntim
throw new UnsupportedOperationException("Not implemented: startNotebookRuntimeCallable()");
}
+ public OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: stopNotebookRuntimeOperationCallable()");
+ }
+
+ public UnaryCallable stopNotebookRuntimeCallable() {
+ throw new UnsupportedOperationException("Not implemented: stopNotebookRuntimeCallable()");
+ }
+
public OperationCallable<
CreateNotebookExecutionJobRequest,
NotebookExecutionJob,
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java
index 93b96c75f6fa..77d8b7794955 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java
@@ -72,6 +72,9 @@
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeResponse;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeOperationMetadata;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1.StopNotebookRuntimeResponse;
import com.google.cloud.aiplatform.v1.UpdateNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeRequest;
@@ -229,6 +232,13 @@ public class NotebookServiceStubSettings extends StubSettings
startNotebookRuntimeOperationSettings;
+ private final UnaryCallSettings
+ stopNotebookRuntimeSettings;
+ private final OperationCallSettings<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings;
private final UnaryCallSettings
createNotebookExecutionJobSettings;
private final OperationCallSettings<
@@ -640,6 +650,20 @@ public UnaryCallSettings startNotebookRu
return startNotebookRuntimeOperationSettings;
}
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings stopNotebookRuntimeSettings() {
+ return stopNotebookRuntimeSettings;
+ }
+
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return stopNotebookRuntimeOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings
createNotebookExecutionJobSettings() {
@@ -818,6 +842,9 @@ protected NotebookServiceStubSettings(Builder settingsBuilder) throws IOExceptio
startNotebookRuntimeSettings = settingsBuilder.startNotebookRuntimeSettings().build();
startNotebookRuntimeOperationSettings =
settingsBuilder.startNotebookRuntimeOperationSettings().build();
+ stopNotebookRuntimeSettings = settingsBuilder.stopNotebookRuntimeSettings().build();
+ stopNotebookRuntimeOperationSettings =
+ settingsBuilder.stopNotebookRuntimeOperationSettings().build();
createNotebookExecutionJobSettings =
settingsBuilder.createNotebookExecutionJobSettings().build();
createNotebookExecutionJobOperationSettings =
@@ -892,6 +919,13 @@ public static class Builder extends StubSettings.Builder
startNotebookRuntimeOperationSettings;
+ private final UnaryCallSettings.Builder
+ stopNotebookRuntimeSettings;
+ private final OperationCallSettings.Builder<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings;
private final UnaryCallSettings.Builder
createNotebookExecutionJobSettings;
private final OperationCallSettings.Builder<
@@ -965,6 +999,8 @@ protected Builder(ClientContext clientContext) {
upgradeNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
startNotebookRuntimeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
startNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
+ stopNotebookRuntimeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ stopNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
createNotebookExecutionJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createNotebookExecutionJobOperationSettings = OperationCallSettings.newBuilder();
getNotebookExecutionJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -991,6 +1027,7 @@ protected Builder(ClientContext clientContext) {
deleteNotebookRuntimeSettings,
upgradeNotebookRuntimeSettings,
startNotebookRuntimeSettings,
+ stopNotebookRuntimeSettings,
createNotebookExecutionJobSettings,
getNotebookExecutionJobSettings,
listNotebookExecutionJobsSettings,
@@ -1033,6 +1070,9 @@ protected Builder(NotebookServiceStubSettings settings) {
startNotebookRuntimeSettings = settings.startNotebookRuntimeSettings.toBuilder();
startNotebookRuntimeOperationSettings =
settings.startNotebookRuntimeOperationSettings.toBuilder();
+ stopNotebookRuntimeSettings = settings.stopNotebookRuntimeSettings.toBuilder();
+ stopNotebookRuntimeOperationSettings =
+ settings.stopNotebookRuntimeOperationSettings.toBuilder();
createNotebookExecutionJobSettings = settings.createNotebookExecutionJobSettings.toBuilder();
createNotebookExecutionJobOperationSettings =
settings.createNotebookExecutionJobOperationSettings.toBuilder();
@@ -1060,6 +1100,7 @@ protected Builder(NotebookServiceStubSettings settings) {
deleteNotebookRuntimeSettings,
upgradeNotebookRuntimeSettings,
startNotebookRuntimeSettings,
+ stopNotebookRuntimeSettings,
createNotebookExecutionJobSettings,
getNotebookExecutionJobSettings,
listNotebookExecutionJobsSettings,
@@ -1139,6 +1180,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+ builder
+ .stopNotebookRuntimeSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
builder
.createNotebookExecutionJobSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -1336,6 +1382,32 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .stopNotebookRuntimeOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(
+ StopNotebookRuntimeResponse.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(
+ StopNotebookRuntimeOperationMetadata.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
.createNotebookExecutionJobOperationSettings()
.setInitialCallSettings(
@@ -1525,6 +1597,21 @@ public Builder applyToAllUnaryMethods(
return startNotebookRuntimeOperationSettings;
}
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings.Builder
+ stopNotebookRuntimeSettings() {
+ return stopNotebookRuntimeSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings.Builder<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return stopNotebookRuntimeOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings.Builder
createNotebookExecutionJobSettings() {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
index fa557cf11c43..6a05852efa8f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
@@ -160,6 +160,25 @@
* |
*
*
+ * UpdateEndpointLongRunning |
+ * Updates an Endpoint with a long running operation. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
* DeleteEndpoint |
* Deletes an Endpoint. |
*
@@ -1046,6 +1065,124 @@ public final UnaryCallable updateEndpointCallab
return stub.updateEndpointCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an Endpoint with a long running operation.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * Endpoint endpoint = Endpoint.newBuilder().build();
+ * Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(endpoint).get();
+ * }
+ * }
+ *
+ * @param endpoint Required. The Endpoint which replaces the resource on the server. Currently we
+ * only support updating the `client_connection_config` field, all the other fields' update
+ * will be blocked.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ updateEndpointLongRunningAsync(Endpoint endpoint) {
+ UpdateEndpointLongRunningRequest request =
+ UpdateEndpointLongRunningRequest.newBuilder().setEndpoint(endpoint).build();
+ return updateEndpointLongRunningAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an Endpoint with a long running operation.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * UpdateEndpointLongRunningRequest request =
+ * UpdateEndpointLongRunningRequest.newBuilder()
+ * .setEndpoint(Endpoint.newBuilder().build())
+ * .build();
+ * Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(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
+ updateEndpointLongRunningAsync(UpdateEndpointLongRunningRequest request) {
+ return updateEndpointLongRunningOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an Endpoint with a long running operation.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * UpdateEndpointLongRunningRequest request =
+ * UpdateEndpointLongRunningRequest.newBuilder()
+ * .setEndpoint(Endpoint.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * endpointServiceClient.updateEndpointLongRunningOperationCallable().futureCall(request);
+ * // Do something.
+ * Endpoint response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationCallable() {
+ return stub.updateEndpointLongRunningOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an Endpoint with a long running operation.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * UpdateEndpointLongRunningRequest request =
+ * UpdateEndpointLongRunningRequest.newBuilder()
+ * .setEndpoint(Endpoint.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * endpointServiceClient.updateEndpointLongRunningCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateEndpointLongRunningCallable() {
+ return stub.updateEndpointLongRunningCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes an Endpoint.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java
index 03ddae41cccd..b3bcbadd537e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java
@@ -154,6 +154,20 @@ public UnaryCallSettings updateEndpointSettings
return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointSettings();
}
+ /** Returns the object with the settings used for calls to updateEndpointLongRunning. */
+ public UnaryCallSettings
+ updateEndpointLongRunningSettings() {
+ return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointLongRunningSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateEndpointLongRunning. */
+ public OperationCallSettings<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationSettings() {
+ return ((EndpointServiceStubSettings) getStubSettings())
+ .updateEndpointLongRunningOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to deleteEndpoint. */
public UnaryCallSettings deleteEndpointSettings() {
return ((EndpointServiceStubSettings) getStubSettings()).deleteEndpointSettings();
@@ -355,6 +369,19 @@ public UnaryCallSettings.Builder updateEndpoint
return getStubSettingsBuilder().updateEndpointSettings();
}
+ /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */
+ public UnaryCallSettings.Builder
+ updateEndpointLongRunningSettings() {
+ return getStubSettingsBuilder().updateEndpointLongRunningSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */
+ public OperationCallSettings.Builder<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationSettings() {
+ return getStubSettingsBuilder().updateEndpointLongRunningOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to deleteEndpoint. */
public UnaryCallSettings.Builder deleteEndpointSettings() {
return getStubSettingsBuilder().deleteEndpointSettings();
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java
index a9c8b3d8b6ed..d915714e7db7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java
@@ -199,6 +199,24 @@
* |
*
*
+ * BatchCreateFeatures |
+ * Creates a batch of Features in a given FeatureGroup. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * batchCreateFeaturesAsync(EntityTypeName parent, List<CreateFeatureRequest> requests)
+ * batchCreateFeaturesAsync(FeatureGroupName parent, List<CreateFeatureRequest> requests)
+ * batchCreateFeaturesAsync(String parent, List<CreateFeatureRequest> requests)
+ * batchCreateFeaturesAsync(BatchCreateFeaturesRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
* GetFeature |
* Gets details of a single Feature. |
*
@@ -278,6 +296,143 @@
* |
*
*
+ * CreateFeatureMonitor |
+ * Creates a new FeatureMonitor in a given project, location and FeatureGroup. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createFeatureMonitorAsync(FeatureGroupName parent, FeatureMonitor featureMonitor, String featureMonitorId)
+ * createFeatureMonitorAsync(String parent, FeatureMonitor featureMonitor, String featureMonitorId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
+ * GetFeatureMonitor |
+ * Gets details of a single FeatureMonitor. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
+ * ListFeatureMonitors |
+ * Lists FeatureGroups in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
+ * DeleteFeatureMonitor |
+ * Deletes a single FeatureMonitor. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
+ * CreateFeatureMonitorJob |
+ * Creates a new feature monitor job. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * createFeatureMonitorJob(FeatureMonitorName parent, FeatureMonitorJob featureMonitorJob, long featureMonitorJobId)
+ * createFeatureMonitorJob(String parent, FeatureMonitorJob featureMonitorJob, long featureMonitorJobId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
+ * GetFeatureMonitorJob |
+ * Get a feature monitor job. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
+ * ListFeatureMonitorJobs |
+ * List feature monitor jobs. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
* ListLocations |
* Lists information about the supported locations for this service. |
*
@@ -485,7 +640,7 @@ public final OperationsClient getOperationsClient() {
* @param featureGroup Required. The FeatureGroup to create.
* @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
* final component of the FeatureGroup's resource name.
- * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* The value must be unique within the project and location.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -531,7 +686,7 @@ public final OperationsClient getOperationsClient() {
* @param featureGroup Required. The FeatureGroup to create.
* @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
* final component of the FeatureGroup's resource name.
- * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* The value must be unique within the project and location.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1476,6 +1631,231 @@ public final UnaryCallable createFeatureCallabl
return stub.createFeatureCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * EntityTypeName parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * List requests = new ArrayList<>();
+ * BatchCreateFeaturesResponse response =
+ * featureRegistryServiceClient.batchCreateFeaturesAsync(parent, requests).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of
+ * Features under. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param requests Required. The request message specifying the Features to create. All Features
+ * must be created under the same parent EntityType / FeatureGroup. The `parent` field in each
+ * child request message can be omitted. If `parent` is set in a child request, then the value
+ * must match the `parent` value in this request message.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ batchCreateFeaturesAsync(EntityTypeName parent, List requests) {
+ BatchCreateFeaturesRequest request =
+ BatchCreateFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchCreateFeaturesAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * List requests = new ArrayList<>();
+ * BatchCreateFeaturesResponse response =
+ * featureRegistryServiceClient.batchCreateFeaturesAsync(parent, requests).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of
+ * Features under. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param requests Required. The request message specifying the Features to create. All Features
+ * must be created under the same parent EntityType / FeatureGroup. The `parent` field in each
+ * child request message can be omitted. If `parent` is set in a child request, then the value
+ * must match the `parent` value in this request message.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ batchCreateFeaturesAsync(FeatureGroupName parent, List requests) {
+ BatchCreateFeaturesRequest request =
+ BatchCreateFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchCreateFeaturesAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateFeaturesResponse response =
+ * featureRegistryServiceClient.batchCreateFeaturesAsync(parent, requests).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of
+ * Features under. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param requests Required. The request message specifying the Features to create. All Features
+ * must be created under the same parent EntityType / FeatureGroup. The `parent` field in each
+ * child request message can be omitted. If `parent` is set in a child request, then the value
+ * must match the `parent` value in this request message.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ batchCreateFeaturesAsync(String parent, List requests) {
+ BatchCreateFeaturesRequest request =
+ BatchCreateFeaturesRequest.newBuilder().setParent(parent).addAllRequests(requests).build();
+ return batchCreateFeaturesAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * BatchCreateFeaturesRequest request =
+ * BatchCreateFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateFeaturesResponse response =
+ * featureRegistryServiceClient.batchCreateFeaturesAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ batchCreateFeaturesAsync(BatchCreateFeaturesRequest request) {
+ return batchCreateFeaturesOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * BatchCreateFeaturesRequest request =
+ * BatchCreateFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * OperationFuture future =
+ * featureRegistryServiceClient.batchCreateFeaturesOperationCallable().futureCall(request);
+ * // Do something.
+ * BatchCreateFeaturesResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable() {
+ return stub.batchCreateFeaturesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * BatchCreateFeaturesRequest request =
+ * BatchCreateFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.batchCreateFeaturesCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable batchCreateFeaturesCallable() {
+ return stub.batchCreateFeaturesCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets details of a single Feature.
@@ -1562,6 +1942,7 @@ public final Feature getFeature(String name) {
* FeatureName.ofProjectLocationFeatureGroupFeatureName(
* "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]")
* .toString())
+ * .setFeatureStatsAndAnomalySpec(FeatureStatsAndAnomalySpec.newBuilder().build())
* .build();
* Feature response = featureRegistryServiceClient.getFeature(request);
* }
@@ -1594,6 +1975,7 @@ public final Feature getFeature(GetFeatureRequest request) {
* FeatureName.ofProjectLocationFeatureGroupFeatureName(
* "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE]")
* .toString())
+ * .setFeatureStatsAndAnomalySpec(FeatureStatsAndAnomalySpec.newBuilder().build())
* .build();
* ApiFuture future =
* featureRegistryServiceClient.getFeatureCallable().futureCall(request);
@@ -2136,6 +2518,1169 @@ public final UnaryCallable deleteFeatureCallabl
return stub.deleteFeatureCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureMonitor in a given project, location and FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * FeatureMonitor featureMonitor = FeatureMonitor.newBuilder().build();
+ * String featureMonitorId = "featureMonitorId1191342527";
+ * FeatureMonitor response =
+ * featureRegistryServiceClient
+ * .createFeatureMonitorAsync(parent, featureMonitor, featureMonitorId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of FeatureGroup to create FeatureMonitor. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{featuregroup}`
+ * @param featureMonitor Required. The Monitor to create.
+ * @param featureMonitorId Required. The ID to use for this FeatureMonitor, which will become the
+ * final component of the FeatureGroup's resource name.
+ * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within the FeatureGroup.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createFeatureMonitorAsync(
+ FeatureGroupName parent, FeatureMonitor featureMonitor, String featureMonitorId) {
+ CreateFeatureMonitorRequest request =
+ CreateFeatureMonitorRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setFeatureMonitor(featureMonitor)
+ .setFeatureMonitorId(featureMonitorId)
+ .build();
+ return createFeatureMonitorAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureMonitor in a given project, location and FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString();
+ * FeatureMonitor featureMonitor = FeatureMonitor.newBuilder().build();
+ * String featureMonitorId = "featureMonitorId1191342527";
+ * FeatureMonitor response =
+ * featureRegistryServiceClient
+ * .createFeatureMonitorAsync(parent, featureMonitor, featureMonitorId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of FeatureGroup to create FeatureMonitor. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{featuregroup}`
+ * @param featureMonitor Required. The Monitor to create.
+ * @param featureMonitorId Required. The ID to use for this FeatureMonitor, which will become the
+ * final component of the FeatureGroup's resource name.
+ * This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
+ * character cannot be a number.
+ * The value must be unique within the FeatureGroup.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createFeatureMonitorAsync(
+ String parent, FeatureMonitor featureMonitor, String featureMonitorId) {
+ CreateFeatureMonitorRequest request =
+ CreateFeatureMonitorRequest.newBuilder()
+ .setParent(parent)
+ .setFeatureMonitor(featureMonitor)
+ .setFeatureMonitorId(featureMonitorId)
+ .build();
+ return createFeatureMonitorAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureMonitor in a given project, location and FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureMonitorRequest request =
+ * CreateFeatureMonitorRequest.newBuilder()
+ * .setParent(
+ * FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setFeatureMonitor(FeatureMonitor.newBuilder().build())
+ * .setFeatureMonitorId("featureMonitorId1191342527")
+ * .build();
+ * FeatureMonitor response =
+ * featureRegistryServiceClient.createFeatureMonitorAsync(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
+ createFeatureMonitorAsync(CreateFeatureMonitorRequest request) {
+ return createFeatureMonitorOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureMonitor in a given project, location and FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureMonitorRequest request =
+ * CreateFeatureMonitorRequest.newBuilder()
+ * .setParent(
+ * FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setFeatureMonitor(FeatureMonitor.newBuilder().build())
+ * .setFeatureMonitorId("featureMonitorId1191342527")
+ * .build();
+ * OperationFuture future =
+ * featureRegistryServiceClient.createFeatureMonitorOperationCallable().futureCall(request);
+ * // Do something.
+ * FeatureMonitor response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationCallable() {
+ return stub.createFeatureMonitorOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new FeatureMonitor in a given project, location and FeatureGroup.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureMonitorRequest request =
+ * CreateFeatureMonitorRequest.newBuilder()
+ * .setParent(
+ * FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setFeatureMonitor(FeatureMonitor.newBuilder().build())
+ * .setFeatureMonitorId("featureMonitorId1191342527")
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.createFeatureMonitorCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createFeatureMonitorCallable() {
+ return stub.createFeatureMonitorCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureMonitorName name =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]");
+ * FeatureMonitor response = featureRegistryServiceClient.getFeatureMonitor(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureMonitor resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureMonitor getFeatureMonitor(FeatureMonitorName name) {
+ GetFeatureMonitorRequest request =
+ GetFeatureMonitorRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getFeatureMonitor(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String name =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString();
+ * FeatureMonitor response = featureRegistryServiceClient.getFeatureMonitor(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureMonitor resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureMonitor getFeatureMonitor(String name) {
+ GetFeatureMonitorRequest request = GetFeatureMonitorRequest.newBuilder().setName(name).build();
+ return getFeatureMonitor(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureMonitorRequest request =
+ * GetFeatureMonitorRequest.newBuilder()
+ * .setName(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .build();
+ * FeatureMonitor response = featureRegistryServiceClient.getFeatureMonitor(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 FeatureMonitor getFeatureMonitor(GetFeatureMonitorRequest request) {
+ return getFeatureMonitorCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureMonitorRequest request =
+ * GetFeatureMonitorRequest.newBuilder()
+ * .setName(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.getFeatureMonitorCallable().futureCall(request);
+ * // Do something.
+ * FeatureMonitor response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getFeatureMonitorCallable() {
+ return stub.getFeatureMonitorCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups in a given project and location.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * for (FeatureMonitor element :
+ * featureRegistryServiceClient.listFeatureMonitors(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureGroup to list FeatureMonitors. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{featureGroup}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureMonitorsPagedResponse listFeatureMonitors(FeatureGroupName parent) {
+ ListFeatureMonitorsRequest request =
+ ListFeatureMonitorsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatureMonitors(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups in a given project and location.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString();
+ * for (FeatureMonitor element :
+ * featureRegistryServiceClient.listFeatureMonitors(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureGroup to list FeatureMonitors. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{featureGroup}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureMonitorsPagedResponse listFeatureMonitors(String parent) {
+ ListFeatureMonitorsRequest request =
+ ListFeatureMonitorsRequest.newBuilder().setParent(parent).build();
+ return listFeatureMonitors(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups in a given project and location.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureMonitorsRequest request =
+ * ListFeatureMonitorsRequest.newBuilder()
+ * .setParent(
+ * FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FeatureMonitor element :
+ * featureRegistryServiceClient.listFeatureMonitors(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 ListFeatureMonitorsPagedResponse listFeatureMonitors(
+ ListFeatureMonitorsRequest request) {
+ return listFeatureMonitorsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups in a given project and location.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureMonitorsRequest request =
+ * ListFeatureMonitorsRequest.newBuilder()
+ * .setParent(
+ * FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.listFeatureMonitorsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (FeatureMonitor element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listFeatureMonitorsPagedCallable() {
+ return stub.listFeatureMonitorsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FeatureGroups in a given project and location.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureMonitorsRequest request =
+ * ListFeatureMonitorsRequest.newBuilder()
+ * .setParent(
+ * FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFeatureMonitorsResponse response =
+ * featureRegistryServiceClient.listFeatureMonitorsCallable().call(request);
+ * for (FeatureMonitor element : response.getFeatureMonitorsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listFeatureMonitorsCallable() {
+ return stub.listFeatureMonitorsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureMonitorName name =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]");
+ * featureRegistryServiceClient.deleteFeatureMonitorAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureMonitor to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFeatureMonitorAsync(
+ FeatureMonitorName name) {
+ DeleteFeatureMonitorRequest request =
+ DeleteFeatureMonitorRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteFeatureMonitorAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String name =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString();
+ * featureRegistryServiceClient.deleteFeatureMonitorAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureMonitor to be deleted. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFeatureMonitorAsync(
+ String name) {
+ DeleteFeatureMonitorRequest request =
+ DeleteFeatureMonitorRequest.newBuilder().setName(name).build();
+ return deleteFeatureMonitorAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureMonitorRequest request =
+ * DeleteFeatureMonitorRequest.newBuilder()
+ * .setName(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .build();
+ * featureRegistryServiceClient.deleteFeatureMonitorAsync(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 deleteFeatureMonitorAsync(
+ DeleteFeatureMonitorRequest request) {
+ return deleteFeatureMonitorOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureMonitorRequest request =
+ * DeleteFeatureMonitorRequest.newBuilder()
+ * .setName(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * featureRegistryServiceClient.deleteFeatureMonitorOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteFeatureMonitorOperationCallable() {
+ return stub.deleteFeatureMonitorOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single FeatureMonitor.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * DeleteFeatureMonitorRequest request =
+ * DeleteFeatureMonitorRequest.newBuilder()
+ * .setName(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.deleteFeatureMonitorCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteFeatureMonitorCallable() {
+ return stub.deleteFeatureMonitorCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureMonitorName parent =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]");
+ * FeatureMonitorJob featureMonitorJob = FeatureMonitorJob.newBuilder().build();
+ * long featureMonitorJobId = 816328651;
+ * FeatureMonitorJob response =
+ * featureRegistryServiceClient.createFeatureMonitorJob(
+ * parent, featureMonitorJob, featureMonitorJobId);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of FeatureMonitor to create FeatureMonitorJob.
+ * Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+ * @param featureMonitorJob Required. The Monitor to create.
+ * @param featureMonitorJobId Optional. Output only. System-generated ID for feature monitor job.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureMonitorJob createFeatureMonitorJob(
+ FeatureMonitorName parent, FeatureMonitorJob featureMonitorJob, long featureMonitorJobId) {
+ CreateFeatureMonitorJobRequest request =
+ CreateFeatureMonitorJobRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setFeatureMonitorJob(featureMonitorJob)
+ .setFeatureMonitorJobId(featureMonitorJobId)
+ .build();
+ return createFeatureMonitorJob(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString();
+ * FeatureMonitorJob featureMonitorJob = FeatureMonitorJob.newBuilder().build();
+ * long featureMonitorJobId = 816328651;
+ * FeatureMonitorJob response =
+ * featureRegistryServiceClient.createFeatureMonitorJob(
+ * parent, featureMonitorJob, featureMonitorJobId);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of FeatureMonitor to create FeatureMonitorJob.
+ * Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+ * @param featureMonitorJob Required. The Monitor to create.
+ * @param featureMonitorJobId Optional. Output only. System-generated ID for feature monitor job.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureMonitorJob createFeatureMonitorJob(
+ String parent, FeatureMonitorJob featureMonitorJob, long featureMonitorJobId) {
+ CreateFeatureMonitorJobRequest request =
+ CreateFeatureMonitorJobRequest.newBuilder()
+ .setParent(parent)
+ .setFeatureMonitorJob(featureMonitorJob)
+ .setFeatureMonitorJobId(featureMonitorJobId)
+ .build();
+ return createFeatureMonitorJob(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureMonitorJobRequest request =
+ * CreateFeatureMonitorJobRequest.newBuilder()
+ * .setParent(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .setFeatureMonitorJob(FeatureMonitorJob.newBuilder().build())
+ * .setFeatureMonitorJobId(816328651)
+ * .build();
+ * FeatureMonitorJob response = featureRegistryServiceClient.createFeatureMonitorJob(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 FeatureMonitorJob createFeatureMonitorJob(CreateFeatureMonitorJobRequest request) {
+ return createFeatureMonitorJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * CreateFeatureMonitorJobRequest request =
+ * CreateFeatureMonitorJobRequest.newBuilder()
+ * .setParent(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .setFeatureMonitorJob(FeatureMonitorJob.newBuilder().build())
+ * .setFeatureMonitorJobId(816328651)
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.createFeatureMonitorJobCallable().futureCall(request);
+ * // Do something.
+ * FeatureMonitorJob response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createFeatureMonitorJobCallable() {
+ return stub.createFeatureMonitorJobCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureMonitorJobName name =
+ * FeatureMonitorJobName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[FEATURE_GROUP]",
+ * "[FEATURE_MONITOR]",
+ * "[FEATURE_MONITOR_JOB]");
+ * FeatureMonitorJob response = featureRegistryServiceClient.getFeatureMonitorJob(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureMonitorJob resource. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureMonitorJob getFeatureMonitorJob(FeatureMonitorJobName name) {
+ GetFeatureMonitorJobRequest request =
+ GetFeatureMonitorJobRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getFeatureMonitorJob(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String name =
+ * FeatureMonitorJobName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[FEATURE_GROUP]",
+ * "[FEATURE_MONITOR]",
+ * "[FEATURE_MONITOR_JOB]")
+ * .toString();
+ * FeatureMonitorJob response = featureRegistryServiceClient.getFeatureMonitorJob(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the FeatureMonitorJob resource. Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FeatureMonitorJob getFeatureMonitorJob(String name) {
+ GetFeatureMonitorJobRequest request =
+ GetFeatureMonitorJobRequest.newBuilder().setName(name).build();
+ return getFeatureMonitorJob(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureMonitorJobRequest request =
+ * GetFeatureMonitorJobRequest.newBuilder()
+ * .setName(
+ * FeatureMonitorJobName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[FEATURE_GROUP]",
+ * "[FEATURE_MONITOR]",
+ * "[FEATURE_MONITOR_JOB]")
+ * .toString())
+ * .build();
+ * FeatureMonitorJob response = featureRegistryServiceClient.getFeatureMonitorJob(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 FeatureMonitorJob getFeatureMonitorJob(GetFeatureMonitorJobRequest request) {
+ return getFeatureMonitorJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a feature monitor job.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * GetFeatureMonitorJobRequest request =
+ * GetFeatureMonitorJobRequest.newBuilder()
+ * .setName(
+ * FeatureMonitorJobName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[FEATURE_GROUP]",
+ * "[FEATURE_MONITOR]",
+ * "[FEATURE_MONITOR_JOB]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.getFeatureMonitorJobCallable().futureCall(request);
+ * // Do something.
+ * FeatureMonitorJob response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getFeatureMonitorJobCallable() {
+ return stub.getFeatureMonitorJobCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List feature monitor jobs.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * FeatureMonitorName parent =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]");
+ * for (FeatureMonitorJob element :
+ * featureRegistryServiceClient.listFeatureMonitorJobs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs.
+ * Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureMonitorJobsPagedResponse listFeatureMonitorJobs(
+ FeatureMonitorName parent) {
+ ListFeatureMonitorJobsRequest request =
+ ListFeatureMonitorJobsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatureMonitorJobs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List feature monitor jobs.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * String parent =
+ * FeatureMonitorName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString();
+ * for (FeatureMonitorJob element :
+ * featureRegistryServiceClient.listFeatureMonitorJobs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs.
+ * Format:
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeatureMonitorJobsPagedResponse listFeatureMonitorJobs(String parent) {
+ ListFeatureMonitorJobsRequest request =
+ ListFeatureMonitorJobsRequest.newBuilder().setParent(parent).build();
+ return listFeatureMonitorJobs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List feature monitor jobs.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureMonitorJobsRequest request =
+ * ListFeatureMonitorJobsRequest.newBuilder()
+ * .setParent(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FeatureMonitorJob element :
+ * featureRegistryServiceClient.listFeatureMonitorJobs(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 ListFeatureMonitorJobsPagedResponse listFeatureMonitorJobs(
+ ListFeatureMonitorJobsRequest request) {
+ return listFeatureMonitorJobsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List feature monitor jobs.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureMonitorJobsRequest request =
+ * ListFeatureMonitorJobsRequest.newBuilder()
+ * .setParent(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * featureRegistryServiceClient.listFeatureMonitorJobsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (FeatureMonitorJob element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listFeatureMonitorJobsPagedCallable() {
+ return stub.listFeatureMonitorJobsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List feature monitor jobs.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+ * FeatureRegistryServiceClient.create()) {
+ * ListFeatureMonitorJobsRequest request =
+ * ListFeatureMonitorJobsRequest.newBuilder()
+ * .setParent(
+ * FeatureMonitorName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFeatureMonitorJobsResponse response =
+ * featureRegistryServiceClient.listFeatureMonitorJobsCallable().call(request);
+ * for (FeatureMonitorJob element : response.getFeatureMonitorJobsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listFeatureMonitorJobsCallable() {
+ return stub.listFeatureMonitorJobsCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
@@ -2701,6 +4246,178 @@ protected ListFeaturesFixedSizeCollection createCollection(
}
}
+ public static class ListFeatureMonitorsPagedResponse
+ extends AbstractPagedListResponse<
+ ListFeatureMonitorsRequest,
+ ListFeatureMonitorsResponse,
+ FeatureMonitor,
+ ListFeatureMonitorsPage,
+ ListFeatureMonitorsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListFeatureMonitorsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListFeatureMonitorsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListFeatureMonitorsPagedResponse(ListFeatureMonitorsPage page) {
+ super(page, ListFeatureMonitorsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListFeatureMonitorsPage
+ extends AbstractPage<
+ ListFeatureMonitorsRequest,
+ ListFeatureMonitorsResponse,
+ FeatureMonitor,
+ ListFeatureMonitorsPage> {
+
+ private ListFeatureMonitorsPage(
+ PageContext
+ context,
+ ListFeatureMonitorsResponse response) {
+ super(context, response);
+ }
+
+ private static ListFeatureMonitorsPage createEmptyPage() {
+ return new ListFeatureMonitorsPage(null, null);
+ }
+
+ @Override
+ protected ListFeatureMonitorsPage createPage(
+ PageContext
+ context,
+ ListFeatureMonitorsResponse response) {
+ return new ListFeatureMonitorsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListFeatureMonitorsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListFeatureMonitorsRequest,
+ ListFeatureMonitorsResponse,
+ FeatureMonitor,
+ ListFeatureMonitorsPage,
+ ListFeatureMonitorsFixedSizeCollection> {
+
+ private ListFeatureMonitorsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListFeatureMonitorsFixedSizeCollection createEmptyCollection() {
+ return new ListFeatureMonitorsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListFeatureMonitorsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListFeatureMonitorsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListFeatureMonitorJobsPagedResponse
+ extends AbstractPagedListResponse<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ FeatureMonitorJob,
+ ListFeatureMonitorJobsPage,
+ ListFeatureMonitorJobsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListFeatureMonitorJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListFeatureMonitorJobsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListFeatureMonitorJobsPagedResponse(ListFeatureMonitorJobsPage page) {
+ super(page, ListFeatureMonitorJobsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListFeatureMonitorJobsPage
+ extends AbstractPage<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ FeatureMonitorJob,
+ ListFeatureMonitorJobsPage> {
+
+ private ListFeatureMonitorJobsPage(
+ PageContext<
+ ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob>
+ context,
+ ListFeatureMonitorJobsResponse response) {
+ super(context, response);
+ }
+
+ private static ListFeatureMonitorJobsPage createEmptyPage() {
+ return new ListFeatureMonitorJobsPage(null, null);
+ }
+
+ @Override
+ protected ListFeatureMonitorJobsPage createPage(
+ PageContext<
+ ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob>
+ context,
+ ListFeatureMonitorJobsResponse response) {
+ return new ListFeatureMonitorJobsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListFeatureMonitorJobsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ FeatureMonitorJob,
+ ListFeatureMonitorJobsPage,
+ ListFeatureMonitorJobsFixedSizeCollection> {
+
+ private ListFeatureMonitorJobsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListFeatureMonitorJobsFixedSizeCollection createEmptyCollection() {
+ return new ListFeatureMonitorJobsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListFeatureMonitorJobsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListFeatureMonitorJobsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
public static class ListLocationsPagedResponse
extends AbstractPagedListResponse<
ListLocationsRequest,
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java
index 77db4d12b2c9..8ccbdf6eea06 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java
@@ -17,6 +17,8 @@
package com.google.cloud.aiplatform.v1beta1;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureGroupsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeaturesPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListLocationsPagedResponse;
@@ -191,6 +193,21 @@ public UnaryCallSettings createFeatureSettings(
.createFeatureOperationSettings();
}
+ /** Returns the object with the settings used for calls to batchCreateFeatures. */
+ public UnaryCallSettings batchCreateFeaturesSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings()).batchCreateFeaturesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchCreateFeatures. */
+ public OperationCallSettings<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings())
+ .batchCreateFeaturesOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to getFeature. */
public UnaryCallSettings getFeatureSettings() {
return ((FeatureRegistryServiceStubSettings) getStubSettings()).getFeatureSettings();
@@ -226,6 +243,66 @@ public UnaryCallSettings deleteFeatureSettings(
.deleteFeatureOperationSettings();
}
+ /** Returns the object with the settings used for calls to createFeatureMonitor. */
+ public UnaryCallSettings createFeatureMonitorSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings()).createFeatureMonitorSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createFeatureMonitor. */
+ public OperationCallSettings<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings())
+ .createFeatureMonitorOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getFeatureMonitor. */
+ public UnaryCallSettings getFeatureMonitorSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings()).getFeatureMonitorSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listFeatureMonitors. */
+ public PagedCallSettings<
+ ListFeatureMonitorsRequest, ListFeatureMonitorsResponse, ListFeatureMonitorsPagedResponse>
+ listFeatureMonitorsSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings()).listFeatureMonitorsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteFeatureMonitor. */
+ public UnaryCallSettings deleteFeatureMonitorSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings()).deleteFeatureMonitorSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteFeatureMonitor. */
+ public OperationCallSettings
+ deleteFeatureMonitorOperationSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings())
+ .deleteFeatureMonitorOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createFeatureMonitorJob. */
+ public UnaryCallSettings
+ createFeatureMonitorJobSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings())
+ .createFeatureMonitorJobSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getFeatureMonitorJob. */
+ public UnaryCallSettings
+ getFeatureMonitorJobSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings()).getFeatureMonitorJobSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listFeatureMonitorJobs. */
+ public PagedCallSettings<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>
+ listFeatureMonitorJobsSettings() {
+ return ((FeatureRegistryServiceStubSettings) getStubSettings())
+ .listFeatureMonitorJobsSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -413,6 +490,21 @@ public UnaryCallSettings.Builder createFeatureS
return getStubSettingsBuilder().createFeatureOperationSettings();
}
+ /** Returns the builder for the settings used for calls to batchCreateFeatures. */
+ public UnaryCallSettings.Builder
+ batchCreateFeaturesSettings() {
+ return getStubSettingsBuilder().batchCreateFeaturesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchCreateFeatures. */
+ public OperationCallSettings.Builder<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings() {
+ return getStubSettingsBuilder().batchCreateFeaturesOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to getFeature. */
public UnaryCallSettings.Builder getFeatureSettings() {
return getStubSettingsBuilder().getFeatureSettings();
@@ -448,6 +540,68 @@ public UnaryCallSettings.Builder deleteFeatureS
return getStubSettingsBuilder().deleteFeatureOperationSettings();
}
+ /** Returns the builder for the settings used for calls to createFeatureMonitor. */
+ public UnaryCallSettings.Builder
+ createFeatureMonitorSettings() {
+ return getStubSettingsBuilder().createFeatureMonitorSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createFeatureMonitor. */
+ public OperationCallSettings.Builder<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationSettings() {
+ return getStubSettingsBuilder().createFeatureMonitorOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getFeatureMonitor. */
+ public UnaryCallSettings.Builder
+ getFeatureMonitorSettings() {
+ return getStubSettingsBuilder().getFeatureMonitorSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listFeatureMonitors. */
+ public PagedCallSettings.Builder<
+ ListFeatureMonitorsRequest,
+ ListFeatureMonitorsResponse,
+ ListFeatureMonitorsPagedResponse>
+ listFeatureMonitorsSettings() {
+ return getStubSettingsBuilder().listFeatureMonitorsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteFeatureMonitor. */
+ public UnaryCallSettings.Builder
+ deleteFeatureMonitorSettings() {
+ return getStubSettingsBuilder().deleteFeatureMonitorSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteFeatureMonitor. */
+ public OperationCallSettings.Builder<
+ DeleteFeatureMonitorRequest, Empty, DeleteOperationMetadata>
+ deleteFeatureMonitorOperationSettings() {
+ return getStubSettingsBuilder().deleteFeatureMonitorOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createFeatureMonitorJob. */
+ public UnaryCallSettings.Builder
+ createFeatureMonitorJobSettings() {
+ return getStubSettingsBuilder().createFeatureMonitorJobSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getFeatureMonitorJob. */
+ public UnaryCallSettings.Builder
+ getFeatureMonitorJobSettings() {
+ return getStubSettingsBuilder().getFeatureMonitorJobSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listFeatureMonitorJobs. */
+ public PagedCallSettings.Builder<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>
+ listFeatureMonitorJobsSettings() {
+ return getStubSettingsBuilder().listFeatureMonitorJobsSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java
index 104854aedfe7..4f1c8c7f5120 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java
@@ -312,6 +312,7 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* batchCreateFeaturesAsync(EntityTypeName parent, List<CreateFeatureRequest> requests)
+ * batchCreateFeaturesAsync(FeatureGroupName parent, List<CreateFeatureRequest> requests)
* batchCreateFeaturesAsync(String parent, List<CreateFeatureRequest> requests)
* batchCreateFeaturesAsync(BatchCreateFeaturesRequest request)
*
@@ -2829,13 +2830,14 @@ public final UnaryCallable createFeatureCallabl
* }
* }
*
- * @param parent Required. The resource name of the EntityType to create the batch of Features
- * under. Format:
+ * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of
+ * Features under. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
* @param requests Required. The request message specifying the Features to create. All Features
- * must be created under the same parent EntityType. The `parent` field in each child request
- * message can be omitted. If `parent` is set in a child request, then the value must match
- * the `parent` value in this request message.
+ * must be created under the same parent EntityType / FeatureGroup. The `parent` field in each
+ * child request message can be omitted. If `parent` is set in a child request, then the value
+ * must match the `parent` value in this request message.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
@@ -2848,6 +2850,46 @@ public final UnaryCallable createFeatureCallabl
return batchCreateFeaturesAsync(request);
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given EntityType.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ * List requests = new ArrayList<>();
+ * BatchCreateFeaturesResponse response =
+ * featurestoreServiceClient.batchCreateFeaturesAsync(parent, requests).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of
+ * Features under. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
+ * @param requests Required. The request message specifying the Features to create. All Features
+ * must be created under the same parent EntityType / FeatureGroup. The `parent` field in each
+ * child request message can be omitted. If `parent` is set in a child request, then the value
+ * must match the `parent` value in this request message.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ batchCreateFeaturesAsync(FeatureGroupName parent, List requests) {
+ BatchCreateFeaturesRequest request =
+ BatchCreateFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchCreateFeaturesAsync(request);
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a batch of Features in a given EntityType.
@@ -2870,13 +2912,14 @@ public final UnaryCallable createFeatureCallabl
* }
* }
*
- * @param parent Required. The resource name of the EntityType to create the batch of Features
- * under. Format:
+ * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of
+ * Features under. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
* @param requests Required. The request message specifying the Features to create. All Features
- * must be created under the same parent EntityType. The `parent` field in each child request
- * message can be omitted. If `parent` is set in a child request, then the value must match
- * the `parent` value in this request message.
+ * must be created under the same parent EntityType / FeatureGroup. The `parent` field in each
+ * child request message can be omitted. If `parent` is set in a child request, then the value
+ * must match the `parent` value in this request message.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
@@ -3068,6 +3111,7 @@ public final Feature getFeature(String name) {
* FeatureName.ofProjectLocationFeaturestoreEntityTypeFeatureName(
* "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
* .toString())
+ * .setFeatureStatsAndAnomalySpec(FeatureStatsAndAnomalySpec.newBuilder().build())
* .build();
* Feature response = featurestoreServiceClient.getFeature(request);
* }
@@ -3099,6 +3143,7 @@ public final Feature getFeature(GetFeatureRequest request) {
* FeatureName.ofProjectLocationFeaturestoreEntityTypeFeatureName(
* "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
* .toString())
+ * .setFeatureStatsAndAnomalySpec(FeatureStatsAndAnomalySpec.newBuilder().build())
* .build();
* ApiFuture future =
* featurestoreServiceClient.getFeatureCallable().futureCall(request);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java
index 7f6c25e71ae2..8d5ccbf22b46 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java
@@ -298,6 +298,26 @@
* |
*
*
+ * StopNotebookRuntime |
+ * Stops a NotebookRuntime. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
* CreateNotebookExecutionJob |
* Creates a NotebookExecutionJob. |
*
@@ -2429,6 +2449,168 @@ public final OperationFuture deleteNotebookRunti
return stub.startNotebookRuntimeCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * NotebookRuntimeName name =
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]");
+ * StopNotebookRuntimeResponse response =
+ * notebookServiceClient.stopNotebookRuntimeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the NotebookRuntime resource to be stopped. Instead of
+ * checking whether the name is in valid NotebookRuntime resource name format, directly throw
+ * NotFound exception if there is no such NotebookRuntime in spanner.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ stopNotebookRuntimeAsync(NotebookRuntimeName name) {
+ StopNotebookRuntimeRequest request =
+ StopNotebookRuntimeRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return stopNotebookRuntimeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * String name =
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]").toString();
+ * StopNotebookRuntimeResponse response =
+ * notebookServiceClient.stopNotebookRuntimeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the NotebookRuntime resource to be stopped. Instead of
+ * checking whether the name is in valid NotebookRuntime resource name format, directly throw
+ * NotFound exception if there is no such NotebookRuntime in spanner.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ stopNotebookRuntimeAsync(String name) {
+ StopNotebookRuntimeRequest request =
+ StopNotebookRuntimeRequest.newBuilder().setName(name).build();
+ return stopNotebookRuntimeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * StopNotebookRuntimeRequest request =
+ * StopNotebookRuntimeRequest.newBuilder()
+ * .setName(
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]")
+ * .toString())
+ * .build();
+ * StopNotebookRuntimeResponse response =
+ * notebookServiceClient.stopNotebookRuntimeAsync(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
+ stopNotebookRuntimeAsync(StopNotebookRuntimeRequest request) {
+ return stopNotebookRuntimeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * StopNotebookRuntimeRequest request =
+ * StopNotebookRuntimeRequest.newBuilder()
+ * .setName(
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * notebookServiceClient.stopNotebookRuntimeOperationCallable().futureCall(request);
+ * // Do something.
+ * StopNotebookRuntimeResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable() {
+ return stub.stopNotebookRuntimeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a NotebookRuntime.
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * StopNotebookRuntimeRequest request =
+ * StopNotebookRuntimeRequest.newBuilder()
+ * .setName(
+ * NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.stopNotebookRuntimeCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable stopNotebookRuntimeCallable() {
+ return stub.stopNotebookRuntimeCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a NotebookExecutionJob.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java
index f057ae74c620..ae1b414ae398 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java
@@ -255,6 +255,20 @@ public UnaryCallSettings startNotebookRu
.startNotebookRuntimeOperationSettings();
}
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings stopNotebookRuntimeSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).stopNotebookRuntimeSettings();
+ }
+
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).stopNotebookRuntimeOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings
createNotebookExecutionJobSettings() {
@@ -542,6 +556,21 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().startNotebookRuntimeOperationSettings();
}
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings.Builder
+ stopNotebookRuntimeSettings() {
+ return getStubSettingsBuilder().stopNotebookRuntimeSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings.Builder<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return getStubSettingsBuilder().stopNotebookRuntimeOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings.Builder
createNotebookExecutionJobSettings() {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
index 918ef6be290a..ca13b427c8f4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
@@ -171,6 +171,9 @@
},
"UpdateEndpoint": {
"methods": ["updateEndpoint", "updateEndpoint", "updateEndpointCallable"]
+ },
+ "UpdateEndpointLongRunning": {
+ "methods": ["updateEndpointLongRunningAsync", "updateEndpointLongRunningAsync", "updateEndpointLongRunningOperationCallable", "updateEndpointLongRunningCallable"]
}
}
}
@@ -373,24 +376,42 @@
"grpc": {
"libraryClient": "FeatureRegistryServiceClient",
"rpcs": {
+ "BatchCreateFeatures": {
+ "methods": ["batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesOperationCallable", "batchCreateFeaturesCallable"]
+ },
"CreateFeature": {
"methods": ["createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureOperationCallable", "createFeatureCallable"]
},
"CreateFeatureGroup": {
"methods": ["createFeatureGroupAsync", "createFeatureGroupAsync", "createFeatureGroupAsync", "createFeatureGroupOperationCallable", "createFeatureGroupCallable"]
},
+ "CreateFeatureMonitor": {
+ "methods": ["createFeatureMonitorAsync", "createFeatureMonitorAsync", "createFeatureMonitorAsync", "createFeatureMonitorOperationCallable", "createFeatureMonitorCallable"]
+ },
+ "CreateFeatureMonitorJob": {
+ "methods": ["createFeatureMonitorJob", "createFeatureMonitorJob", "createFeatureMonitorJob", "createFeatureMonitorJobCallable"]
+ },
"DeleteFeature": {
"methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"]
},
"DeleteFeatureGroup": {
"methods": ["deleteFeatureGroupAsync", "deleteFeatureGroupAsync", "deleteFeatureGroupAsync", "deleteFeatureGroupOperationCallable", "deleteFeatureGroupCallable"]
},
+ "DeleteFeatureMonitor": {
+ "methods": ["deleteFeatureMonitorAsync", "deleteFeatureMonitorAsync", "deleteFeatureMonitorAsync", "deleteFeatureMonitorOperationCallable", "deleteFeatureMonitorCallable"]
+ },
"GetFeature": {
"methods": ["getFeature", "getFeature", "getFeature", "getFeatureCallable"]
},
"GetFeatureGroup": {
"methods": ["getFeatureGroup", "getFeatureGroup", "getFeatureGroup", "getFeatureGroupCallable"]
},
+ "GetFeatureMonitor": {
+ "methods": ["getFeatureMonitor", "getFeatureMonitor", "getFeatureMonitor", "getFeatureMonitorCallable"]
+ },
+ "GetFeatureMonitorJob": {
+ "methods": ["getFeatureMonitorJob", "getFeatureMonitorJob", "getFeatureMonitorJob", "getFeatureMonitorJobCallable"]
+ },
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicyCallable"]
},
@@ -400,6 +421,12 @@
"ListFeatureGroups": {
"methods": ["listFeatureGroups", "listFeatureGroups", "listFeatureGroups", "listFeatureGroupsPagedCallable", "listFeatureGroupsCallable"]
},
+ "ListFeatureMonitorJobs": {
+ "methods": ["listFeatureMonitorJobs", "listFeatureMonitorJobs", "listFeatureMonitorJobs", "listFeatureMonitorJobsPagedCallable", "listFeatureMonitorJobsCallable"]
+ },
+ "ListFeatureMonitors": {
+ "methods": ["listFeatureMonitors", "listFeatureMonitors", "listFeatureMonitors", "listFeatureMonitorsPagedCallable", "listFeatureMonitorsCallable"]
+ },
"ListFeatures": {
"methods": ["listFeatures", "listFeatures", "listFeatures", "listFeatures", "listFeaturesPagedCallable", "listFeaturesCallable"]
},
@@ -461,7 +488,7 @@
"libraryClient": "FeaturestoreServiceClient",
"rpcs": {
"BatchCreateFeatures": {
- "methods": ["batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesOperationCallable", "batchCreateFeaturesCallable"]
+ "methods": ["batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesOperationCallable", "batchCreateFeaturesCallable"]
},
"BatchReadFeatureValues": {
"methods": ["batchReadFeatureValuesAsync", "batchReadFeatureValuesAsync", "batchReadFeatureValuesAsync", "batchReadFeatureValuesOperationCallable", "batchReadFeatureValuesCallable"]
@@ -1270,6 +1297,9 @@
"StartNotebookRuntime": {
"methods": ["startNotebookRuntimeAsync", "startNotebookRuntimeAsync", "startNotebookRuntimeAsync", "startNotebookRuntimeOperationCallable", "startNotebookRuntimeCallable"]
},
+ "StopNotebookRuntime": {
+ "methods": ["stopNotebookRuntimeAsync", "stopNotebookRuntimeAsync", "stopNotebookRuntimeAsync", "stopNotebookRuntimeOperationCallable", "stopNotebookRuntimeCallable"]
+ },
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
},
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java
index c9dc2398f557..9cd60cf40426 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java
@@ -40,6 +40,8 @@
import com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UndeployModelRequest;
import com.google.cloud.aiplatform.v1beta1.UndeployModelResponse;
+import com.google.cloud.aiplatform.v1beta1.UpdateEndpointLongRunningRequest;
+import com.google.cloud.aiplatform.v1beta1.UpdateEndpointOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
@@ -95,6 +97,18 @@ public UnaryCallable updateEndpointCallable() {
throw new UnsupportedOperationException("Not implemented: updateEndpointCallable()");
}
+ public OperationCallable<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateEndpointLongRunningOperationCallable()");
+ }
+
+ public UnaryCallable
+ updateEndpointLongRunningCallable() {
+ throw new UnsupportedOperationException("Not implemented: updateEndpointLongRunningCallable()");
+ }
+
public OperationCallable
deleteEndpointOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteEndpointOperationCallable()");
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java
index 35a7e02ef6f7..362a672b15f1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java
@@ -63,6 +63,8 @@
import com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UndeployModelRequest;
import com.google.cloud.aiplatform.v1beta1.UndeployModelResponse;
+import com.google.cloud.aiplatform.v1beta1.UpdateEndpointLongRunningRequest;
+import com.google.cloud.aiplatform.v1beta1.UpdateEndpointOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
@@ -176,6 +178,11 @@ public class EndpointServiceStubSettings extends StubSettings
listEndpointsSettings;
private final UnaryCallSettings updateEndpointSettings;
+ private final UnaryCallSettings
+ updateEndpointLongRunningSettings;
+ private final OperationCallSettings<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationSettings;
private final UnaryCallSettings deleteEndpointSettings;
private final OperationCallSettings
deleteEndpointOperationSettings;
@@ -332,6 +339,19 @@ public UnaryCallSettings updateEndpointSettings
return updateEndpointSettings;
}
+ /** Returns the object with the settings used for calls to updateEndpointLongRunning. */
+ public UnaryCallSettings
+ updateEndpointLongRunningSettings() {
+ return updateEndpointLongRunningSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateEndpointLongRunning. */
+ public OperationCallSettings<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationSettings() {
+ return updateEndpointLongRunningOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to deleteEndpoint. */
public UnaryCallSettings deleteEndpointSettings() {
return deleteEndpointSettings;
@@ -494,6 +514,9 @@ protected EndpointServiceStubSettings(Builder settingsBuilder) throws IOExceptio
getEndpointSettings = settingsBuilder.getEndpointSettings().build();
listEndpointsSettings = settingsBuilder.listEndpointsSettings().build();
updateEndpointSettings = settingsBuilder.updateEndpointSettings().build();
+ updateEndpointLongRunningSettings = settingsBuilder.updateEndpointLongRunningSettings().build();
+ updateEndpointLongRunningOperationSettings =
+ settingsBuilder.updateEndpointLongRunningOperationSettings().build();
deleteEndpointSettings = settingsBuilder.deleteEndpointSettings().build();
deleteEndpointOperationSettings = settingsBuilder.deleteEndpointOperationSettings().build();
deployModelSettings = settingsBuilder.deployModelSettings().build();
@@ -523,6 +546,11 @@ public static class Builder extends StubSettings.Builder
listEndpointsSettings;
private final UnaryCallSettings.Builder updateEndpointSettings;
+ private final UnaryCallSettings.Builder
+ updateEndpointLongRunningSettings;
+ private final OperationCallSettings.Builder<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationSettings;
private final UnaryCallSettings.Builder
deleteEndpointSettings;
private final OperationCallSettings.Builder<
@@ -593,6 +621,8 @@ protected Builder(ClientContext clientContext) {
getEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listEndpointsSettings = PagedCallSettings.newBuilder(LIST_ENDPOINTS_PAGE_STR_FACT);
updateEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateEndpointLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateEndpointLongRunningOperationSettings = OperationCallSettings.newBuilder();
deleteEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteEndpointOperationSettings = OperationCallSettings.newBuilder();
deployModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -613,6 +643,7 @@ protected Builder(ClientContext clientContext) {
getEndpointSettings,
listEndpointsSettings,
updateEndpointSettings,
+ updateEndpointLongRunningSettings,
deleteEndpointSettings,
deployModelSettings,
undeployModelSettings,
@@ -633,6 +664,9 @@ protected Builder(EndpointServiceStubSettings settings) {
getEndpointSettings = settings.getEndpointSettings.toBuilder();
listEndpointsSettings = settings.listEndpointsSettings.toBuilder();
updateEndpointSettings = settings.updateEndpointSettings.toBuilder();
+ updateEndpointLongRunningSettings = settings.updateEndpointLongRunningSettings.toBuilder();
+ updateEndpointLongRunningOperationSettings =
+ settings.updateEndpointLongRunningOperationSettings.toBuilder();
deleteEndpointSettings = settings.deleteEndpointSettings.toBuilder();
deleteEndpointOperationSettings = settings.deleteEndpointOperationSettings.toBuilder();
deployModelSettings = settings.deployModelSettings.toBuilder();
@@ -654,6 +688,7 @@ protected Builder(EndpointServiceStubSettings settings) {
getEndpointSettings,
listEndpointsSettings,
updateEndpointSettings,
+ updateEndpointLongRunningSettings,
deleteEndpointSettings,
deployModelSettings,
undeployModelSettings,
@@ -698,6 +733,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+ builder
+ .updateEndpointLongRunningSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
builder
.deleteEndpointSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
@@ -768,6 +808,32 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .updateEndpointLongRunningOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .
+ newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(Endpoint.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(
+ UpdateEndpointOperationMetadata.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
.deleteEndpointOperationSettings()
.setInitialCallSettings(
@@ -914,6 +980,19 @@ public UnaryCallSettings.Builder updateEndpoint
return updateEndpointSettings;
}
+ /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */
+ public UnaryCallSettings.Builder
+ updateEndpointLongRunningSettings() {
+ return updateEndpointLongRunningSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */
+ public OperationCallSettings.Builder<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationSettings() {
+ return updateEndpointLongRunningOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to deleteEndpoint. */
public UnaryCallSettings.Builder deleteEndpointSettings() {
return deleteEndpointSettings;
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java
index dcd9e25eca5a..9bac85dc7c73 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java
@@ -17,6 +17,8 @@
package com.google.cloud.aiplatform.v1beta1.stub;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureGroupsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeaturesPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListLocationsPagedResponse;
@@ -24,19 +26,34 @@
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.Feature;
import com.google.cloud.aiplatform.v1beta1.FeatureGroup;
+import com.google.cloud.aiplatform.v1beta1.FeatureMonitor;
+import com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob;
import com.google.cloud.aiplatform.v1beta1.GetFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest;
+import com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.GetFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsResponse;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse;
import com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupOperationMetadata;
@@ -126,6 +143,19 @@ public UnaryCallable createFeatureCallable() {
throw new UnsupportedOperationException("Not implemented: createFeatureCallable()");
}
+ public OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: batchCreateFeaturesOperationCallable()");
+ }
+
+ public UnaryCallable batchCreateFeaturesCallable() {
+ throw new UnsupportedOperationException("Not implemented: batchCreateFeaturesCallable()");
+ }
+
public UnaryCallable getFeatureCallable() {
throw new UnsupportedOperationException("Not implemented: getFeatureCallable()");
}
@@ -156,6 +186,62 @@ public UnaryCallable deleteFeatureCallable() {
throw new UnsupportedOperationException("Not implemented: deleteFeatureCallable()");
}
+ public OperationCallable<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createFeatureMonitorOperationCallable()");
+ }
+
+ public UnaryCallable createFeatureMonitorCallable() {
+ throw new UnsupportedOperationException("Not implemented: createFeatureMonitorCallable()");
+ }
+
+ public UnaryCallable getFeatureMonitorCallable() {
+ throw new UnsupportedOperationException("Not implemented: getFeatureMonitorCallable()");
+ }
+
+ public UnaryCallable
+ listFeatureMonitorsPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listFeatureMonitorsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listFeatureMonitorsCallable() {
+ throw new UnsupportedOperationException("Not implemented: listFeatureMonitorsCallable()");
+ }
+
+ public OperationCallable
+ deleteFeatureMonitorOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteFeatureMonitorOperationCallable()");
+ }
+
+ public UnaryCallable deleteFeatureMonitorCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteFeatureMonitorCallable()");
+ }
+
+ public UnaryCallable
+ createFeatureMonitorJobCallable() {
+ throw new UnsupportedOperationException("Not implemented: createFeatureMonitorJobCallable()");
+ }
+
+ public UnaryCallable
+ getFeatureMonitorJobCallable() {
+ throw new UnsupportedOperationException("Not implemented: getFeatureMonitorJobCallable()");
+ }
+
+ public UnaryCallable
+ listFeatureMonitorJobsPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listFeatureMonitorJobsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listFeatureMonitorJobsCallable() {
+ throw new UnsupportedOperationException("Not implemented: listFeatureMonitorJobsCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java
index e7895417e858..d07e7f527782 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java
@@ -17,6 +17,8 @@
package com.google.cloud.aiplatform.v1beta1.stub;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureGroupsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeaturesPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListLocationsPagedResponse;
@@ -47,19 +49,34 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.Feature;
import com.google.cloud.aiplatform.v1beta1.FeatureGroup;
+import com.google.cloud.aiplatform.v1beta1.FeatureMonitor;
+import com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob;
import com.google.cloud.aiplatform.v1beta1.GetFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest;
+import com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.GetFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsResponse;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse;
import com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupOperationMetadata;
@@ -189,6 +206,13 @@ public class FeatureRegistryServiceStubSettings
private final UnaryCallSettings createFeatureSettings;
private final OperationCallSettings
createFeatureOperationSettings;
+ private final UnaryCallSettings
+ batchCreateFeaturesSettings;
+ private final OperationCallSettings<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings;
private final UnaryCallSettings getFeatureSettings;
private final PagedCallSettings<
ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse>
@@ -199,6 +223,29 @@ public class FeatureRegistryServiceStubSettings
private final UnaryCallSettings deleteFeatureSettings;
private final OperationCallSettings
deleteFeatureOperationSettings;
+ private final UnaryCallSettings
+ createFeatureMonitorSettings;
+ private final OperationCallSettings<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationSettings;
+ private final UnaryCallSettings
+ getFeatureMonitorSettings;
+ private final PagedCallSettings<
+ ListFeatureMonitorsRequest, ListFeatureMonitorsResponse, ListFeatureMonitorsPagedResponse>
+ listFeatureMonitorsSettings;
+ private final UnaryCallSettings
+ deleteFeatureMonitorSettings;
+ private final OperationCallSettings
+ deleteFeatureMonitorOperationSettings;
+ private final UnaryCallSettings
+ createFeatureMonitorJobSettings;
+ private final UnaryCallSettings
+ getFeatureMonitorJobSettings;
+ private final PagedCallSettings<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>
+ listFeatureMonitorJobsSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -280,6 +327,85 @@ public Iterable extractResources(ListFeaturesResponse payload) {
}
};
+ private static final PagedListDescriptor<
+ ListFeatureMonitorsRequest, ListFeatureMonitorsResponse, FeatureMonitor>
+ LIST_FEATURE_MONITORS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListFeatureMonitorsRequest, ListFeatureMonitorsResponse, FeatureMonitor>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListFeatureMonitorsRequest injectToken(
+ ListFeatureMonitorsRequest payload, String token) {
+ return ListFeatureMonitorsRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListFeatureMonitorsRequest injectPageSize(
+ ListFeatureMonitorsRequest payload, int pageSize) {
+ return ListFeatureMonitorsRequest.newBuilder(payload).setPageSize(pageSize).build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListFeatureMonitorsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListFeatureMonitorsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(ListFeatureMonitorsResponse payload) {
+ return payload.getFeatureMonitorsList();
+ }
+ };
+
+ private static final PagedListDescriptor<
+ ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob>
+ LIST_FEATURE_MONITOR_JOBS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListFeatureMonitorJobsRequest injectToken(
+ ListFeatureMonitorJobsRequest payload, String token) {
+ return ListFeatureMonitorJobsRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListFeatureMonitorJobsRequest injectPageSize(
+ ListFeatureMonitorJobsRequest payload, int pageSize) {
+ return ListFeatureMonitorJobsRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListFeatureMonitorJobsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListFeatureMonitorJobsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListFeatureMonitorJobsResponse payload) {
+ return payload.getFeatureMonitorJobsList();
+ }
+ };
+
private static final PagedListDescriptor
LIST_LOCATIONS_PAGE_STR_DESC =
new PagedListDescriptor() {
@@ -352,6 +478,54 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListFeatureMonitorsRequest, ListFeatureMonitorsResponse, ListFeatureMonitorsPagedResponse>
+ LIST_FEATURE_MONITORS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListFeatureMonitorsRequest,
+ ListFeatureMonitorsResponse,
+ ListFeatureMonitorsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable callable,
+ ListFeatureMonitorsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext
+ pageContext =
+ PageContext.create(
+ callable, LIST_FEATURE_MONITORS_PAGE_STR_DESC, request, context);
+ return ListFeatureMonitorsPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>
+ LIST_FEATURE_MONITOR_JOBS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable
+ callable,
+ ListFeatureMonitorJobsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ FeatureMonitorJob>
+ pageContext =
+ PageContext.create(
+ callable, LIST_FEATURE_MONITOR_JOBS_PAGE_STR_DESC, request, context);
+ return ListFeatureMonitorJobsPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
private static final PagedListResponseFactory<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
LIST_LOCATIONS_PAGE_STR_FACT =
@@ -427,6 +601,20 @@ public UnaryCallSettings createFeatureSettings(
return createFeatureOperationSettings;
}
+ /** Returns the object with the settings used for calls to batchCreateFeatures. */
+ public UnaryCallSettings batchCreateFeaturesSettings() {
+ return batchCreateFeaturesSettings;
+ }
+
+ /** Returns the object with the settings used for calls to batchCreateFeatures. */
+ public OperationCallSettings<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings() {
+ return batchCreateFeaturesOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to getFeature. */
public UnaryCallSettings getFeatureSettings() {
return getFeatureSettings;
@@ -460,6 +648,62 @@ public UnaryCallSettings deleteFeatureSettings(
return deleteFeatureOperationSettings;
}
+ /** Returns the object with the settings used for calls to createFeatureMonitor. */
+ public UnaryCallSettings createFeatureMonitorSettings() {
+ return createFeatureMonitorSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createFeatureMonitor. */
+ public OperationCallSettings<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationSettings() {
+ return createFeatureMonitorOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getFeatureMonitor. */
+ public UnaryCallSettings getFeatureMonitorSettings() {
+ return getFeatureMonitorSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listFeatureMonitors. */
+ public PagedCallSettings<
+ ListFeatureMonitorsRequest, ListFeatureMonitorsResponse, ListFeatureMonitorsPagedResponse>
+ listFeatureMonitorsSettings() {
+ return listFeatureMonitorsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteFeatureMonitor. */
+ public UnaryCallSettings deleteFeatureMonitorSettings() {
+ return deleteFeatureMonitorSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteFeatureMonitor. */
+ public OperationCallSettings
+ deleteFeatureMonitorOperationSettings() {
+ return deleteFeatureMonitorOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createFeatureMonitorJob. */
+ public UnaryCallSettings
+ createFeatureMonitorJobSettings() {
+ return createFeatureMonitorJobSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getFeatureMonitorJob. */
+ public UnaryCallSettings
+ getFeatureMonitorJobSettings() {
+ return getFeatureMonitorJobSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listFeatureMonitorJobs. */
+ public PagedCallSettings<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>
+ listFeatureMonitorJobsSettings() {
+ return listFeatureMonitorJobsSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -581,12 +825,26 @@ protected FeatureRegistryServiceStubSettings(Builder settingsBuilder) throws IOE
settingsBuilder.deleteFeatureGroupOperationSettings().build();
createFeatureSettings = settingsBuilder.createFeatureSettings().build();
createFeatureOperationSettings = settingsBuilder.createFeatureOperationSettings().build();
+ batchCreateFeaturesSettings = settingsBuilder.batchCreateFeaturesSettings().build();
+ batchCreateFeaturesOperationSettings =
+ settingsBuilder.batchCreateFeaturesOperationSettings().build();
getFeatureSettings = settingsBuilder.getFeatureSettings().build();
listFeaturesSettings = settingsBuilder.listFeaturesSettings().build();
updateFeatureSettings = settingsBuilder.updateFeatureSettings().build();
updateFeatureOperationSettings = settingsBuilder.updateFeatureOperationSettings().build();
deleteFeatureSettings = settingsBuilder.deleteFeatureSettings().build();
deleteFeatureOperationSettings = settingsBuilder.deleteFeatureOperationSettings().build();
+ createFeatureMonitorSettings = settingsBuilder.createFeatureMonitorSettings().build();
+ createFeatureMonitorOperationSettings =
+ settingsBuilder.createFeatureMonitorOperationSettings().build();
+ getFeatureMonitorSettings = settingsBuilder.getFeatureMonitorSettings().build();
+ listFeatureMonitorsSettings = settingsBuilder.listFeatureMonitorsSettings().build();
+ deleteFeatureMonitorSettings = settingsBuilder.deleteFeatureMonitorSettings().build();
+ deleteFeatureMonitorOperationSettings =
+ settingsBuilder.deleteFeatureMonitorOperationSettings().build();
+ createFeatureMonitorJobSettings = settingsBuilder.createFeatureMonitorJobSettings().build();
+ getFeatureMonitorJobSettings = settingsBuilder.getFeatureMonitorJobSettings().build();
+ listFeatureMonitorJobsSettings = settingsBuilder.listFeatureMonitorJobsSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
@@ -622,6 +880,13 @@ public static class Builder
private final OperationCallSettings.Builder<
CreateFeatureRequest, Feature, CreateFeatureOperationMetadata>
createFeatureOperationSettings;
+ private final UnaryCallSettings.Builder
+ batchCreateFeaturesSettings;
+ private final OperationCallSettings.Builder<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings;
private final UnaryCallSettings.Builder getFeatureSettings;
private final PagedCallSettings.Builder<
ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse>
@@ -634,6 +899,32 @@ public static class Builder
private final OperationCallSettings.Builder<
DeleteFeatureRequest, Empty, DeleteOperationMetadata>
deleteFeatureOperationSettings;
+ private final UnaryCallSettings.Builder
+ createFeatureMonitorSettings;
+ private final OperationCallSettings.Builder<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationSettings;
+ private final UnaryCallSettings.Builder
+ getFeatureMonitorSettings;
+ private final PagedCallSettings.Builder<
+ ListFeatureMonitorsRequest,
+ ListFeatureMonitorsResponse,
+ ListFeatureMonitorsPagedResponse>
+ listFeatureMonitorsSettings;
+ private final UnaryCallSettings.Builder
+ deleteFeatureMonitorSettings;
+ private final OperationCallSettings.Builder<
+ DeleteFeatureMonitorRequest, Empty, DeleteOperationMetadata>
+ deleteFeatureMonitorOperationSettings;
+ private final UnaryCallSettings.Builder
+ createFeatureMonitorJobSettings;
+ private final UnaryCallSettings.Builder
+ getFeatureMonitorJobSettings;
+ private final PagedCallSettings.Builder<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>
+ listFeatureMonitorJobsSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -679,12 +970,25 @@ protected Builder(ClientContext clientContext) {
deleteFeatureGroupOperationSettings = OperationCallSettings.newBuilder();
createFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createFeatureOperationSettings = OperationCallSettings.newBuilder();
+ batchCreateFeaturesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ batchCreateFeaturesOperationSettings = OperationCallSettings.newBuilder();
getFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listFeaturesSettings = PagedCallSettings.newBuilder(LIST_FEATURES_PAGE_STR_FACT);
updateFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
updateFeatureOperationSettings = OperationCallSettings.newBuilder();
deleteFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteFeatureOperationSettings = OperationCallSettings.newBuilder();
+ createFeatureMonitorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createFeatureMonitorOperationSettings = OperationCallSettings.newBuilder();
+ getFeatureMonitorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listFeatureMonitorsSettings =
+ PagedCallSettings.newBuilder(LIST_FEATURE_MONITORS_PAGE_STR_FACT);
+ deleteFeatureMonitorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteFeatureMonitorOperationSettings = OperationCallSettings.newBuilder();
+ createFeatureMonitorJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getFeatureMonitorJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listFeatureMonitorJobsSettings =
+ PagedCallSettings.newBuilder(LIST_FEATURE_MONITOR_JOBS_PAGE_STR_FACT);
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -699,10 +1003,18 @@ protected Builder(ClientContext clientContext) {
updateFeatureGroupSettings,
deleteFeatureGroupSettings,
createFeatureSettings,
+ batchCreateFeaturesSettings,
getFeatureSettings,
listFeaturesSettings,
updateFeatureSettings,
deleteFeatureSettings,
+ createFeatureMonitorSettings,
+ getFeatureMonitorSettings,
+ listFeatureMonitorsSettings,
+ deleteFeatureMonitorSettings,
+ createFeatureMonitorJobSettings,
+ getFeatureMonitorJobSettings,
+ listFeatureMonitorJobsSettings,
listLocationsSettings,
getLocationSettings,
setIamPolicySettings,
@@ -727,12 +1039,26 @@ protected Builder(FeatureRegistryServiceStubSettings settings) {
settings.deleteFeatureGroupOperationSettings.toBuilder();
createFeatureSettings = settings.createFeatureSettings.toBuilder();
createFeatureOperationSettings = settings.createFeatureOperationSettings.toBuilder();
+ batchCreateFeaturesSettings = settings.batchCreateFeaturesSettings.toBuilder();
+ batchCreateFeaturesOperationSettings =
+ settings.batchCreateFeaturesOperationSettings.toBuilder();
getFeatureSettings = settings.getFeatureSettings.toBuilder();
listFeaturesSettings = settings.listFeaturesSettings.toBuilder();
updateFeatureSettings = settings.updateFeatureSettings.toBuilder();
updateFeatureOperationSettings = settings.updateFeatureOperationSettings.toBuilder();
deleteFeatureSettings = settings.deleteFeatureSettings.toBuilder();
deleteFeatureOperationSettings = settings.deleteFeatureOperationSettings.toBuilder();
+ createFeatureMonitorSettings = settings.createFeatureMonitorSettings.toBuilder();
+ createFeatureMonitorOperationSettings =
+ settings.createFeatureMonitorOperationSettings.toBuilder();
+ getFeatureMonitorSettings = settings.getFeatureMonitorSettings.toBuilder();
+ listFeatureMonitorsSettings = settings.listFeatureMonitorsSettings.toBuilder();
+ deleteFeatureMonitorSettings = settings.deleteFeatureMonitorSettings.toBuilder();
+ deleteFeatureMonitorOperationSettings =
+ settings.deleteFeatureMonitorOperationSettings.toBuilder();
+ createFeatureMonitorJobSettings = settings.createFeatureMonitorJobSettings.toBuilder();
+ getFeatureMonitorJobSettings = settings.getFeatureMonitorJobSettings.toBuilder();
+ listFeatureMonitorJobsSettings = settings.listFeatureMonitorJobsSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
@@ -747,10 +1073,18 @@ protected Builder(FeatureRegistryServiceStubSettings settings) {
updateFeatureGroupSettings,
deleteFeatureGroupSettings,
createFeatureSettings,
+ batchCreateFeaturesSettings,
getFeatureSettings,
listFeaturesSettings,
updateFeatureSettings,
deleteFeatureSettings,
+ createFeatureMonitorSettings,
+ getFeatureMonitorSettings,
+ listFeatureMonitorsSettings,
+ deleteFeatureMonitorSettings,
+ createFeatureMonitorJobSettings,
+ getFeatureMonitorJobSettings,
+ listFeatureMonitorJobsSettings,
listLocationsSettings,
getLocationSettings,
setIamPolicySettings,
@@ -801,6 +1135,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+ builder
+ .batchCreateFeaturesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
builder
.getFeatureSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -821,6 +1160,41 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+ builder
+ .createFeatureMonitorSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .getFeatureMonitorSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .listFeatureMonitorsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .deleteFeatureMonitorSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .createFeatureMonitorJobSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .getFeatureMonitorJobSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .listFeatureMonitorJobsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -945,6 +1319,32 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .batchCreateFeaturesOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(
+ BatchCreateFeaturesResponse.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(
+ BatchCreateFeaturesOperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelay(Duration.ofMillis(45000L))
+ .setInitialRpcTimeout(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ZERO)
+ .setTotalTimeout(Duration.ofMillis(300000L))
+ .build()));
+
builder
.updateFeatureOperationSettings()
.setInitialCallSettings(
@@ -994,6 +1394,55 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .createFeatureMonitorOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(FeatureMonitor.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(
+ CreateFeatureMonitorOperationMetadata.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
+ .deleteFeatureMonitorOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelay(Duration.ofMillis(45000L))
+ .setInitialRpcTimeout(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ZERO)
+ .setTotalTimeout(Duration.ofMillis(300000L))
+ .build()));
+
return builder;
}
@@ -1075,6 +1524,21 @@ public UnaryCallSettings.Builder createFeatureS
return createFeatureOperationSettings;
}
+ /** Returns the builder for the settings used for calls to batchCreateFeatures. */
+ public UnaryCallSettings.Builder
+ batchCreateFeaturesSettings() {
+ return batchCreateFeaturesSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to batchCreateFeatures. */
+ public OperationCallSettings.Builder<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationSettings() {
+ return batchCreateFeaturesOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to getFeature. */
public UnaryCallSettings.Builder getFeatureSettings() {
return getFeatureSettings;
@@ -1110,6 +1574,68 @@ public UnaryCallSettings.Builder deleteFeatureS
return deleteFeatureOperationSettings;
}
+ /** Returns the builder for the settings used for calls to createFeatureMonitor. */
+ public UnaryCallSettings.Builder
+ createFeatureMonitorSettings() {
+ return createFeatureMonitorSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createFeatureMonitor. */
+ public OperationCallSettings.Builder<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationSettings() {
+ return createFeatureMonitorOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getFeatureMonitor. */
+ public UnaryCallSettings.Builder
+ getFeatureMonitorSettings() {
+ return getFeatureMonitorSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listFeatureMonitors. */
+ public PagedCallSettings.Builder<
+ ListFeatureMonitorsRequest,
+ ListFeatureMonitorsResponse,
+ ListFeatureMonitorsPagedResponse>
+ listFeatureMonitorsSettings() {
+ return listFeatureMonitorsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteFeatureMonitor. */
+ public UnaryCallSettings.Builder
+ deleteFeatureMonitorSettings() {
+ return deleteFeatureMonitorSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteFeatureMonitor. */
+ public OperationCallSettings.Builder<
+ DeleteFeatureMonitorRequest, Empty, DeleteOperationMetadata>
+ deleteFeatureMonitorOperationSettings() {
+ return deleteFeatureMonitorOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createFeatureMonitorJob. */
+ public UnaryCallSettings.Builder
+ createFeatureMonitorJobSettings() {
+ return createFeatureMonitorJobSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getFeatureMonitorJob. */
+ public UnaryCallSettings.Builder
+ getFeatureMonitorJobSettings() {
+ return getFeatureMonitorJobSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listFeatureMonitorJobs. */
+ public PagedCallSettings.Builder<
+ ListFeatureMonitorJobsRequest,
+ ListFeatureMonitorJobsResponse,
+ ListFeatureMonitorJobsPagedResponse>
+ listFeatureMonitorJobsSettings() {
+ return listFeatureMonitorJobsSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java
index 2b4a4425ce15..a996999ffa0a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java
@@ -45,6 +45,8 @@
import com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UndeployModelRequest;
import com.google.cloud.aiplatform.v1beta1.UndeployModelResponse;
+import com.google.cloud.aiplatform.v1beta1.UpdateEndpointLongRunningRequest;
+import com.google.cloud.aiplatform.v1beta1.UpdateEndpointOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
@@ -112,6 +114,17 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Endpoint.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ updateEndpointLongRunningMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.EndpointService/UpdateEndpointLongRunning")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateEndpointLongRunningRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
deleteEndpointMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -205,6 +218,11 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub {
private final UnaryCallable
listEndpointsPagedCallable;
private final UnaryCallable updateEndpointCallable;
+ private final UnaryCallable
+ updateEndpointLongRunningCallable;
+ private final OperationCallable<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationCallable;
private final UnaryCallable deleteEndpointCallable;
private final OperationCallable
deleteEndpointOperationCallable;
@@ -315,6 +333,17 @@ protected GrpcEndpointServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ updateEndpointLongRunningTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateEndpointLongRunningMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("endpoint.name", String.valueOf(request.getEndpoint().getName()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings deleteEndpointTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteEndpointMethodDescriptor)
@@ -428,6 +457,17 @@ protected GrpcEndpointServiceStub(
this.updateEndpointCallable =
callableFactory.createUnaryCallable(
updateEndpointTransportSettings, settings.updateEndpointSettings(), clientContext);
+ this.updateEndpointLongRunningCallable =
+ callableFactory.createUnaryCallable(
+ updateEndpointLongRunningTransportSettings,
+ settings.updateEndpointLongRunningSettings(),
+ clientContext);
+ this.updateEndpointLongRunningOperationCallable =
+ callableFactory.createOperationCallable(
+ updateEndpointLongRunningTransportSettings,
+ settings.updateEndpointLongRunningOperationSettings(),
+ clientContext,
+ operationsStub);
this.deleteEndpointCallable =
callableFactory.createUnaryCallable(
deleteEndpointTransportSettings, settings.deleteEndpointSettings(), clientContext);
@@ -527,6 +567,19 @@ public UnaryCallable updateEndpointCallable() {
return updateEndpointCallable;
}
+ @Override
+ public UnaryCallable
+ updateEndpointLongRunningCallable() {
+ return updateEndpointLongRunningCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationCallable() {
+ return updateEndpointLongRunningOperationCallable;
+ }
+
@Override
public UnaryCallable deleteEndpointCallable() {
return deleteEndpointCallable;
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java
index 03d20d1d00cb..7c65bdbfa9f0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java
@@ -17,6 +17,8 @@
package com.google.cloud.aiplatform.v1beta1.stub;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureGroupsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeatureMonitorsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListFeaturesPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient.ListLocationsPagedResponse;
@@ -29,19 +31,34 @@
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest;
+import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.Feature;
import com.google.cloud.aiplatform.v1beta1.FeatureGroup;
+import com.google.cloud.aiplatform.v1beta1.FeatureMonitor;
+import com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob;
import com.google.cloud.aiplatform.v1beta1.GetFeatureGroupRequest;
+import com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest;
+import com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest;
import com.google.cloud.aiplatform.v1beta1.GetFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsResponse;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest;
+import com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse;
import com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest;
import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupOperationMetadata;
@@ -142,6 +159,17 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ batchCreateFeaturesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/BatchCreateFeatures")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(BatchCreateFeaturesRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor getFeatureMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
@@ -183,6 +211,87 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ createFeatureMonitorMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/CreateFeatureMonitor")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateFeatureMonitorRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getFeatureMonitorMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/GetFeatureMonitor")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetFeatureMonitorRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(FeatureMonitor.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ listFeatureMonitorsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/ListFeatureMonitors")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListFeatureMonitorsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListFeatureMonitorsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteFeatureMonitorMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/DeleteFeatureMonitor")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteFeatureMonitorRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ createFeatureMonitorJobMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/CreateFeatureMonitorJob")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateFeatureMonitorJobRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(FeatureMonitorJob.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getFeatureMonitorJobMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/GetFeatureMonitorJob")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetFeatureMonitorJobRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(FeatureMonitorJob.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse>
+ listFeatureMonitorJobsMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.FeatureRegistryService/ListFeatureMonitorJobs")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListFeatureMonitorJobsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListFeatureMonitorJobsResponse.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -248,6 +357,12 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub {
private final UnaryCallable createFeatureCallable;
private final OperationCallable
createFeatureOperationCallable;
+ private final UnaryCallable batchCreateFeaturesCallable;
+ private final OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable;
private final UnaryCallable getFeatureCallable;
private final UnaryCallable listFeaturesCallable;
private final UnaryCallable
@@ -258,6 +373,26 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub {
private final UnaryCallable deleteFeatureCallable;
private final OperationCallable
deleteFeatureOperationCallable;
+ private final UnaryCallable createFeatureMonitorCallable;
+ private final OperationCallable<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationCallable;
+ private final UnaryCallable getFeatureMonitorCallable;
+ private final UnaryCallable
+ listFeatureMonitorsCallable;
+ private final UnaryCallable
+ listFeatureMonitorsPagedCallable;
+ private final UnaryCallable deleteFeatureMonitorCallable;
+ private final OperationCallable
+ deleteFeatureMonitorOperationCallable;
+ private final UnaryCallable
+ createFeatureMonitorJobCallable;
+ private final UnaryCallable
+ getFeatureMonitorJobCallable;
+ private final UnaryCallable
+ listFeatureMonitorJobsCallable;
+ private final UnaryCallable
+ listFeatureMonitorJobsPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -373,6 +508,16 @@ protected GrpcFeatureRegistryServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings batchCreateFeaturesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(batchCreateFeaturesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings getFeatureTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getFeatureMethodDescriptor)
@@ -413,6 +558,81 @@ protected GrpcFeatureRegistryServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings createFeatureMonitorTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createFeatureMonitorMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings getFeatureMonitorTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getFeatureMonitorMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ listFeatureMonitorsTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listFeatureMonitorsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings deleteFeatureMonitorTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteFeatureMonitorMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ createFeatureMonitorJobTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createFeatureMonitorJobMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ getFeatureMonitorJobTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getFeatureMonitorJobMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ listFeatureMonitorJobsTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listFeatureMonitorJobsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -520,6 +740,17 @@ protected GrpcFeatureRegistryServiceStub(
settings.createFeatureOperationSettings(),
clientContext,
operationsStub);
+ this.batchCreateFeaturesCallable =
+ callableFactory.createUnaryCallable(
+ batchCreateFeaturesTransportSettings,
+ settings.batchCreateFeaturesSettings(),
+ clientContext);
+ this.batchCreateFeaturesOperationCallable =
+ callableFactory.createOperationCallable(
+ batchCreateFeaturesTransportSettings,
+ settings.batchCreateFeaturesOperationSettings(),
+ clientContext,
+ operationsStub);
this.getFeatureCallable =
callableFactory.createUnaryCallable(
getFeatureTransportSettings, settings.getFeatureSettings(), clientContext);
@@ -547,6 +778,63 @@ protected GrpcFeatureRegistryServiceStub(
settings.deleteFeatureOperationSettings(),
clientContext,
operationsStub);
+ this.createFeatureMonitorCallable =
+ callableFactory.createUnaryCallable(
+ createFeatureMonitorTransportSettings,
+ settings.createFeatureMonitorSettings(),
+ clientContext);
+ this.createFeatureMonitorOperationCallable =
+ callableFactory.createOperationCallable(
+ createFeatureMonitorTransportSettings,
+ settings.createFeatureMonitorOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.getFeatureMonitorCallable =
+ callableFactory.createUnaryCallable(
+ getFeatureMonitorTransportSettings,
+ settings.getFeatureMonitorSettings(),
+ clientContext);
+ this.listFeatureMonitorsCallable =
+ callableFactory.createUnaryCallable(
+ listFeatureMonitorsTransportSettings,
+ settings.listFeatureMonitorsSettings(),
+ clientContext);
+ this.listFeatureMonitorsPagedCallable =
+ callableFactory.createPagedCallable(
+ listFeatureMonitorsTransportSettings,
+ settings.listFeatureMonitorsSettings(),
+ clientContext);
+ this.deleteFeatureMonitorCallable =
+ callableFactory.createUnaryCallable(
+ deleteFeatureMonitorTransportSettings,
+ settings.deleteFeatureMonitorSettings(),
+ clientContext);
+ this.deleteFeatureMonitorOperationCallable =
+ callableFactory.createOperationCallable(
+ deleteFeatureMonitorTransportSettings,
+ settings.deleteFeatureMonitorOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.createFeatureMonitorJobCallable =
+ callableFactory.createUnaryCallable(
+ createFeatureMonitorJobTransportSettings,
+ settings.createFeatureMonitorJobSettings(),
+ clientContext);
+ this.getFeatureMonitorJobCallable =
+ callableFactory.createUnaryCallable(
+ getFeatureMonitorJobTransportSettings,
+ settings.getFeatureMonitorJobSettings(),
+ clientContext);
+ this.listFeatureMonitorJobsCallable =
+ callableFactory.createUnaryCallable(
+ listFeatureMonitorJobsTransportSettings,
+ settings.listFeatureMonitorJobsSettings(),
+ clientContext);
+ this.listFeatureMonitorJobsPagedCallable =
+ callableFactory.createPagedCallable(
+ listFeatureMonitorJobsTransportSettings,
+ settings.listFeatureMonitorJobsSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -639,6 +927,20 @@ public UnaryCallable createFeatureCallable() {
return createFeatureOperationCallable;
}
+ @Override
+ public UnaryCallable batchCreateFeaturesCallable() {
+ return batchCreateFeaturesCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable() {
+ return batchCreateFeaturesOperationCallable;
+ }
+
@Override
public UnaryCallable getFeatureCallable() {
return getFeatureCallable;
@@ -676,6 +978,70 @@ public UnaryCallable deleteFeatureCallable() {
return deleteFeatureOperationCallable;
}
+ @Override
+ public UnaryCallable createFeatureMonitorCallable() {
+ return createFeatureMonitorCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ CreateFeatureMonitorRequest, FeatureMonitor, CreateFeatureMonitorOperationMetadata>
+ createFeatureMonitorOperationCallable() {
+ return createFeatureMonitorOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable getFeatureMonitorCallable() {
+ return getFeatureMonitorCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listFeatureMonitorsCallable() {
+ return listFeatureMonitorsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listFeatureMonitorsPagedCallable() {
+ return listFeatureMonitorsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable deleteFeatureMonitorCallable() {
+ return deleteFeatureMonitorCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deleteFeatureMonitorOperationCallable() {
+ return deleteFeatureMonitorOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ createFeatureMonitorJobCallable() {
+ return createFeatureMonitorJobCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getFeatureMonitorJobCallable() {
+ return getFeatureMonitorJobCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listFeatureMonitorJobsCallable() {
+ return listFeatureMonitorJobsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listFeatureMonitorJobsPagedCallable() {
+ return listFeatureMonitorJobsPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcNotebookServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcNotebookServiceStub.java
index 287507004bcf..15c73c643287 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcNotebookServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcNotebookServiceStub.java
@@ -55,6 +55,9 @@
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeResponse;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeRequest;
@@ -216,6 +219,17 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ stopNotebookRuntimeMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1beta1.NotebookService/StopNotebookRuntime")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(StopNotebookRuntimeRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
createNotebookExecutionJobMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -360,6 +374,12 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
StartNotebookRuntimeResponse,
StartNotebookRuntimeOperationMetadata>
startNotebookRuntimeOperationCallable;
+ private final UnaryCallable stopNotebookRuntimeCallable;
+ private final OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable;
private final UnaryCallable
createNotebookExecutionJobCallable;
private final OperationCallable<
@@ -557,6 +577,16 @@ protected GrpcNotebookServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings stopNotebookRuntimeTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(stopNotebookRuntimeMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings
createNotebookExecutionJobTransportSettings =
GrpcCallSettings.newBuilder()
@@ -755,6 +785,17 @@ protected GrpcNotebookServiceStub(
settings.startNotebookRuntimeOperationSettings(),
clientContext,
operationsStub);
+ this.stopNotebookRuntimeCallable =
+ callableFactory.createUnaryCallable(
+ stopNotebookRuntimeTransportSettings,
+ settings.stopNotebookRuntimeSettings(),
+ clientContext);
+ this.stopNotebookRuntimeOperationCallable =
+ callableFactory.createOperationCallable(
+ stopNotebookRuntimeTransportSettings,
+ settings.stopNotebookRuntimeOperationSettings(),
+ clientContext,
+ operationsStub);
this.createNotebookExecutionJobCallable =
callableFactory.createUnaryCallable(
createNotebookExecutionJobTransportSettings,
@@ -941,6 +982,20 @@ public UnaryCallable startNotebookRuntim
return startNotebookRuntimeOperationCallable;
}
+ @Override
+ public UnaryCallable stopNotebookRuntimeCallable() {
+ return stopNotebookRuntimeCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable() {
+ return stopNotebookRuntimeOperationCallable;
+ }
+
@Override
public UnaryCallable
createNotebookExecutionJobCallable() {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java
index bb78cb918622..04bb182acaf7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java
@@ -50,6 +50,9 @@
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeResponse;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeRequest;
@@ -195,6 +198,19 @@ public UnaryCallable startNotebookRuntim
throw new UnsupportedOperationException("Not implemented: startNotebookRuntimeCallable()");
}
+ public OperationCallable<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: stopNotebookRuntimeOperationCallable()");
+ }
+
+ public UnaryCallable stopNotebookRuntimeCallable() {
+ throw new UnsupportedOperationException("Not implemented: stopNotebookRuntimeCallable()");
+ }
+
public OperationCallable<
CreateNotebookExecutionJobRequest,
NotebookExecutionJob,
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java
index 659984e4c4c8..cebab5c8ef05 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java
@@ -73,6 +73,9 @@
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeResponse;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeRequest;
@@ -231,6 +234,13 @@ public class NotebookServiceStubSettings extends StubSettings
startNotebookRuntimeOperationSettings;
+ private final UnaryCallSettings
+ stopNotebookRuntimeSettings;
+ private final OperationCallSettings<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings;
private final UnaryCallSettings
createNotebookExecutionJobSettings;
private final OperationCallSettings<
@@ -642,6 +652,20 @@ public UnaryCallSettings startNotebookRu
return startNotebookRuntimeOperationSettings;
}
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings stopNotebookRuntimeSettings() {
+ return stopNotebookRuntimeSettings;
+ }
+
+ /** Returns the object with the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return stopNotebookRuntimeOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings
createNotebookExecutionJobSettings() {
@@ -820,6 +844,9 @@ protected NotebookServiceStubSettings(Builder settingsBuilder) throws IOExceptio
startNotebookRuntimeSettings = settingsBuilder.startNotebookRuntimeSettings().build();
startNotebookRuntimeOperationSettings =
settingsBuilder.startNotebookRuntimeOperationSettings().build();
+ stopNotebookRuntimeSettings = settingsBuilder.stopNotebookRuntimeSettings().build();
+ stopNotebookRuntimeOperationSettings =
+ settingsBuilder.stopNotebookRuntimeOperationSettings().build();
createNotebookExecutionJobSettings =
settingsBuilder.createNotebookExecutionJobSettings().build();
createNotebookExecutionJobOperationSettings =
@@ -894,6 +921,13 @@ public static class Builder extends StubSettings.Builder
startNotebookRuntimeOperationSettings;
+ private final UnaryCallSettings.Builder
+ stopNotebookRuntimeSettings;
+ private final OperationCallSettings.Builder<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings;
private final UnaryCallSettings.Builder
createNotebookExecutionJobSettings;
private final OperationCallSettings.Builder<
@@ -967,6 +1001,8 @@ protected Builder(ClientContext clientContext) {
upgradeNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
startNotebookRuntimeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
startNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
+ stopNotebookRuntimeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ stopNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
createNotebookExecutionJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createNotebookExecutionJobOperationSettings = OperationCallSettings.newBuilder();
getNotebookExecutionJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -993,6 +1029,7 @@ protected Builder(ClientContext clientContext) {
deleteNotebookRuntimeSettings,
upgradeNotebookRuntimeSettings,
startNotebookRuntimeSettings,
+ stopNotebookRuntimeSettings,
createNotebookExecutionJobSettings,
getNotebookExecutionJobSettings,
listNotebookExecutionJobsSettings,
@@ -1035,6 +1072,9 @@ protected Builder(NotebookServiceStubSettings settings) {
startNotebookRuntimeSettings = settings.startNotebookRuntimeSettings.toBuilder();
startNotebookRuntimeOperationSettings =
settings.startNotebookRuntimeOperationSettings.toBuilder();
+ stopNotebookRuntimeSettings = settings.stopNotebookRuntimeSettings.toBuilder();
+ stopNotebookRuntimeOperationSettings =
+ settings.stopNotebookRuntimeOperationSettings.toBuilder();
createNotebookExecutionJobSettings = settings.createNotebookExecutionJobSettings.toBuilder();
createNotebookExecutionJobOperationSettings =
settings.createNotebookExecutionJobOperationSettings.toBuilder();
@@ -1062,6 +1102,7 @@ protected Builder(NotebookServiceStubSettings settings) {
deleteNotebookRuntimeSettings,
upgradeNotebookRuntimeSettings,
startNotebookRuntimeSettings,
+ stopNotebookRuntimeSettings,
createNotebookExecutionJobSettings,
getNotebookExecutionJobSettings,
listNotebookExecutionJobsSettings,
@@ -1141,6 +1182,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+ builder
+ .stopNotebookRuntimeSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
builder
.createNotebookExecutionJobSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -1338,6 +1384,32 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .stopNotebookRuntimeOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(
+ StopNotebookRuntimeResponse.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(
+ StopNotebookRuntimeOperationMetadata.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
.createNotebookExecutionJobOperationSettings()
.setInitialCallSettings(
@@ -1527,6 +1599,21 @@ public Builder applyToAllUnaryMethods(
return startNotebookRuntimeOperationSettings;
}
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public UnaryCallSettings.Builder
+ stopNotebookRuntimeSettings() {
+ return stopNotebookRuntimeSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to stopNotebookRuntime. */
+ public OperationCallSettings.Builder<
+ StopNotebookRuntimeRequest,
+ StopNotebookRuntimeResponse,
+ StopNotebookRuntimeOperationMetadata>
+ stopNotebookRuntimeOperationSettings() {
+ return stopNotebookRuntimeOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
public UnaryCallSettings.Builder
createNotebookExecutionJobSettings() {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json
index 504698a30794..c7bc66d5aa52 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json
@@ -1862,6 +1862,87 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometInput",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometInput$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometInstance",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometInstance$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometResult",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometResult$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometSpec",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometSpec$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CometSpec$CometVersion",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.CompleteTrialRequest",
"queryAllDeclaredConstructors": true,
@@ -5597,6 +5678,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.FasterDeploymentConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.FasterDeploymentConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.Feature",
"queryAllDeclaredConstructors": true,
@@ -10493,6 +10592,87 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxInput",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxInput$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxInstance",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxInstance$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxResult",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxResult$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxSpec",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxSpec$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.MetricxSpec$MetricxVersion",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.MigratableResource",
"queryAllDeclaredConstructors": true,
@@ -15389,6 +15569,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.StopNotebookRuntimeOperationMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.StopNotebookRuntimeOperationMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.StopNotebookRuntimeRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.StopNotebookRuntimeRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.StopNotebookRuntimeResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.StopNotebookRuntimeResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.StopTrialRequest",
"queryAllDeclaredConstructors": true,
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json
index 1534a559ad06..bc40f9d5fb12 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json
@@ -2015,6 +2015,51 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ClientConnectionConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ClientConnectionConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CodeExecutionResult",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CodeExecutionResult$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CodeExecutionResult$Outcome",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.CoherenceInput",
"queryAllDeclaredConstructors": true,
@@ -2690,6 +2735,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.CreateFeatureOnlineStoreOperationMetadata",
"queryAllDeclaredConstructors": true,
@@ -3986,6 +4085,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.DeleteFeatureOnlineStoreRequest",
"queryAllDeclaredConstructors": true,
@@ -5606,6 +5723,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode$Language",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionRequest",
"queryAllDeclaredConstructors": true,
@@ -6362,6 +6506,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.Feature",
"queryAllDeclaredConstructors": true,
@@ -6470,6 +6632,69 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitor",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitor$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob$FeatureMonitorJobTrigger",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob$JobSummary",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob$JobSummary$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma",
"queryAllDeclaredConstructors": true,
@@ -6623,6 +6848,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig$FeatureConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig$FeatureConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.FeatureSelector",
"queryAllDeclaredConstructors": true,
@@ -6641,6 +6902,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly",
"queryAllDeclaredConstructors": true,
@@ -6866,6 +7163,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureView$OptimizedConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.FeatureView$OptimizedConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.FeatureView$ServiceAgentType",
"queryAllDeclaredConstructors": true,
@@ -8225,6 +8540,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.GetFeatureOnlineStoreRequest",
"queryAllDeclaredConstructors": true,
@@ -10331,6 +10682,78 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.ListFeatureOnlineStoresRequest",
"queryAllDeclaredConstructors": true,
@@ -17918,6 +18341,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ScheduleConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ScheduleConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.Scheduling",
"queryAllDeclaredConstructors": true,
@@ -18539,6 +18980,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.StopTrialRequest",
"queryAllDeclaredConstructors": true,
@@ -19970,6 +20465,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.Tool$CodeExecution",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.Tool$CodeExecution$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInput",
"queryAllDeclaredConstructors": true,
@@ -20816,6 +21329,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.UpdateEndpointLongRunningRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.UpdateEndpointLongRunningRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.UpdateEndpointOperationMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.UpdateEndpointOperationMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest",
"queryAllDeclaredConstructors": true,
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EvaluationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EvaluationServiceClientTest.java
index 96e120d27c8d..43797185fe06 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EvaluationServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EvaluationServiceClientTest.java
@@ -158,6 +158,8 @@ public void evaluateInstancesTest() throws Exception {
request.getToolParameterKeyMatchInput(), actualRequest.getToolParameterKeyMatchInput());
Assert.assertEquals(
request.getToolParameterKvMatchInput(), actualRequest.getToolParameterKvMatchInput());
+ Assert.assertEquals(request.getCometInput(), actualRequest.getCometInput());
+ Assert.assertEquals(request.getMetricxInput(), actualRequest.getMetricxInput());
Assert.assertEquals(request.getLocation(), actualRequest.getLocation());
Assert.assertTrue(
channelProvider.isHeaderSent(
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClientTest.java
index f6fb038870f3..4b2ecf1d2c12 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClientTest.java
@@ -736,6 +736,152 @@ public void createFeatureExceptionTest3() throws Exception {
}
}
+ @Test
+ public void batchCreateFeaturesTest() throws Exception {
+ BatchCreateFeaturesResponse expectedResponse =
+ BatchCreateFeaturesResponse.newBuilder().addAllFeatures(new ArrayList()).build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("batchCreateFeaturesTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockFeatureRegistryService.addResponse(resultOperation);
+
+ EntityTypeName parent =
+ EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ List requests = new ArrayList<>();
+
+ BatchCreateFeaturesResponse actualResponse =
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockFeatureRegistryService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ BatchCreateFeaturesRequest actualRequest = ((BatchCreateFeaturesRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(requests, actualRequest.getRequestsList());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void batchCreateFeaturesExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockFeatureRegistryService.addException(exception);
+
+ try {
+ EntityTypeName parent =
+ EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ List requests = new ArrayList<>();
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+
+ @Test
+ public void batchCreateFeaturesTest2() throws Exception {
+ BatchCreateFeaturesResponse expectedResponse =
+ BatchCreateFeaturesResponse.newBuilder().addAllFeatures(new ArrayList()).build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("batchCreateFeaturesTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockFeatureRegistryService.addResponse(resultOperation);
+
+ FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ List requests = new ArrayList<>();
+
+ BatchCreateFeaturesResponse actualResponse =
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockFeatureRegistryService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ BatchCreateFeaturesRequest actualRequest = ((BatchCreateFeaturesRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(requests, actualRequest.getRequestsList());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void batchCreateFeaturesExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockFeatureRegistryService.addException(exception);
+
+ try {
+ FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ List requests = new ArrayList<>();
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+
+ @Test
+ public void batchCreateFeaturesTest3() throws Exception {
+ BatchCreateFeaturesResponse expectedResponse =
+ BatchCreateFeaturesResponse.newBuilder().addAllFeatures(new ArrayList()).build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("batchCreateFeaturesTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockFeatureRegistryService.addResponse(resultOperation);
+
+ String parent = "parent-995424086";
+ List requests = new ArrayList<>();
+
+ BatchCreateFeaturesResponse actualResponse =
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockFeatureRegistryService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ BatchCreateFeaturesRequest actualRequest = ((BatchCreateFeaturesRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertEquals(requests, actualRequest.getRequestsList());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void batchCreateFeaturesExceptionTest3() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockFeatureRegistryService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ List requests = new ArrayList<>();
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+
@Test
public void getFeatureTest() throws Exception {
Feature expectedResponse =
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java
index fd7af38af381..005923d2314b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java
@@ -1870,6 +1870,54 @@ public void batchCreateFeaturesTest2() throws Exception {
.build();
mockFeaturestoreService.addResponse(resultOperation);
+ FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ List requests = new ArrayList<>();
+
+ BatchCreateFeaturesResponse actualResponse =
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockFeaturestoreService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ BatchCreateFeaturesRequest actualRequest = ((BatchCreateFeaturesRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(requests, actualRequest.getRequestsList());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void batchCreateFeaturesExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockFeaturestoreService.addException(exception);
+
+ try {
+ FeatureGroupName parent = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
+ List requests = new ArrayList<>();
+ client.batchCreateFeaturesAsync(parent, requests).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+
+ @Test
+ public void batchCreateFeaturesTest3() throws Exception {
+ BatchCreateFeaturesResponse expectedResponse =
+ BatchCreateFeaturesResponse.newBuilder().addAllFeatures(new ArrayList()).build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("batchCreateFeaturesTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockFeaturestoreService.addResponse(resultOperation);
+
String parent = "parent-995424086";
List requests = new ArrayList<>();
@@ -1890,7 +1938,7 @@ public void batchCreateFeaturesTest2() throws Exception {
}
@Test
- public void batchCreateFeaturesExceptionTest2() throws Exception {
+ public void batchCreateFeaturesExceptionTest3() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockFeaturestoreService.addException(exception);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java
index ebc59e016e97..08d527860c48 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java
@@ -127,6 +127,7 @@ public void createTuningJobTest() throws Exception {
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
.build();
mockGenAiTuningService.addResponse(expectedResponse);
@@ -183,6 +184,7 @@ public void createTuningJobTest2() throws Exception {
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
.build();
mockGenAiTuningService.addResponse(expectedResponse);
@@ -239,6 +241,7 @@ public void getTuningJobTest() throws Exception {
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
.build();
mockGenAiTuningService.addResponse(expectedResponse);
@@ -292,6 +295,7 @@ public void getTuningJobTest2() throws Exception {
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
.build();
mockGenAiTuningService.addResponse(expectedResponse);
@@ -501,6 +505,7 @@ public void rebaseTunedModelTest() throws Exception {
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -565,6 +570,7 @@ public void rebaseTunedModelTest2() throws Exception {
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
+ .setServiceAccount("serviceAccount1079137720")
.build();
Operation resultOperation =
Operation.newBuilder()
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeatureRegistryServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeatureRegistryServiceImpl.java
index 7c935e978435..54ee9aaea77b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeatureRegistryServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeatureRegistryServiceImpl.java
@@ -186,6 +186,27 @@ public void createFeature(
}
}
+ @Override
+ public void batchCreateFeatures(
+ BatchCreateFeaturesRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof Operation) {
+ requests.add(request);
+ responseObserver.onNext(((Operation) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method BatchCreateFeatures, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
@Override
public void getFeature(GetFeatureRequest request, StreamObserver responseObserver) {
Object response = responses.poll();
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockNotebookServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockNotebookServiceImpl.java
index a7b596094b64..ff54f40035c7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockNotebookServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockNotebookServiceImpl.java
@@ -294,6 +294,27 @@ public void startNotebookRuntime(
}
}
+ @Override
+ public void stopNotebookRuntime(
+ StopNotebookRuntimeRequest 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 StopNotebookRuntime, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
@Override
public void createNotebookExecutionJob(
CreateNotebookExecutionJobRequest request, StreamObserver responseObserver) {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java
index de9f92b8ef97..79ffabdbe31d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java
@@ -1450,6 +1450,94 @@ public void startNotebookRuntimeExceptionTest2() throws Exception {
}
}
+ @Test
+ public void stopNotebookRuntimeTest() throws Exception {
+ StopNotebookRuntimeResponse expectedResponse = StopNotebookRuntimeResponse.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("stopNotebookRuntimeTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockNotebookService.addResponse(resultOperation);
+
+ NotebookRuntimeName name =
+ NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]");
+
+ StopNotebookRuntimeResponse actualResponse = client.stopNotebookRuntimeAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ StopNotebookRuntimeRequest actualRequest = ((StopNotebookRuntimeRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void stopNotebookRuntimeExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ NotebookRuntimeName name =
+ NotebookRuntimeName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_RUNTIME]");
+ client.stopNotebookRuntimeAsync(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 stopNotebookRuntimeTest2() throws Exception {
+ StopNotebookRuntimeResponse expectedResponse = StopNotebookRuntimeResponse.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("stopNotebookRuntimeTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockNotebookService.addResponse(resultOperation);
+
+ String name = "name3373707";
+
+ StopNotebookRuntimeResponse actualResponse = client.stopNotebookRuntimeAsync(name).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ StopNotebookRuntimeRequest actualRequest = ((StopNotebookRuntimeRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void stopNotebookRuntimeExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.stopNotebookRuntimeAsync(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 createNotebookExecutionJobTest() throws Exception {
NotebookExecutionJob expectedResponse =
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java
index 8bf70523a2f7..466387d921c1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java
@@ -134,6 +134,7 @@ public void createEndpointTest() throws Exception {
PredictRequestResponseLoggingConfig.newBuilder().build())
.setDedicatedEndpointEnabled(true)
.setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
@@ -207,6 +208,7 @@ public void createEndpointTest2() throws Exception {
PredictRequestResponseLoggingConfig.newBuilder().build())
.setDedicatedEndpointEnabled(true)
.setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
@@ -280,6 +282,7 @@ public void createEndpointTest3() throws Exception {
PredictRequestResponseLoggingConfig.newBuilder().build())
.setDedicatedEndpointEnabled(true)
.setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
@@ -356,6 +359,7 @@ public void createEndpointTest4() throws Exception {
PredictRequestResponseLoggingConfig.newBuilder().build())
.setDedicatedEndpointEnabled(true)
.setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
@@ -432,6 +436,7 @@ public void getEndpointTest() throws Exception {
PredictRequestResponseLoggingConfig.newBuilder().build())
.setDedicatedEndpointEnabled(true)
.setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
@@ -496,6 +501,7 @@ public void getEndpointTest2() throws Exception {
PredictRequestResponseLoggingConfig.newBuilder().build())
.setDedicatedEndpointEnabled(true)
.setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
@@ -646,6 +652,7 @@ public void updateEndpointTest() throws Exception {
PredictRequestResponseLoggingConfig.newBuilder().build())
.setDedicatedEndpointEnabled(true)
.setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
@@ -684,6 +691,78 @@ public void updateEndpointExceptionTest() throws Exception {
}
}
+ @Test
+ public void updateEndpointLongRunningTest() throws Exception {
+ Endpoint expectedResponse =
+ Endpoint.newBuilder()
+ .setName(
+ EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .addAllDeployedModels(new ArrayList())
+ .putAllTrafficSplit(new HashMap | |