diff --git a/generation_config.yaml b/generation_config.yaml
index 4a2df5ca5734..eb878d7e9f7c 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
-gapic_generator_version: 2.42.0
-googleapis_commitish: a3528c3c840f3382747a64e8ede3b2e974053d7f
-libraries_bom_version: 26.42.0
+gapic_generator_version: 2.43.0
+googleapis_commitish: d8fce50eea92bac3a6612ee61559989ce3b38776
+libraries_bom_version: 26.43.0
# the libraries are ordered with respect to library name, which is
# java-{library.library_name} or java-{library.api-shortname} when
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index 3e61838db6e9..9c21679dee60 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.42.0
+ 26.43.0
pom
import
@@ -195,7 +195,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.46.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.47.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-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java
index 0f96457bb103..19525a122dcd 100644
--- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java
+++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -284,6 +285,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "accessapproval.googleapis.com:443";
}
diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md
index d140bcd2362a..5a1f823fcab9 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.42.0
+ 26.43.0
pom
import
@@ -195,7 +195,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.46.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.47.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/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java
index 8c75c1a2b0d3..83de8200f1f8 100644
--- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java
+++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java
@@ -24,6 +24,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -808,6 +809,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "accesscontextmanager.googleapis.com:443";
}
diff --git a/java-admanager/README.md b/java-admanager/README.md
index b44492463514..7b6434430fdd 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.42.0
+ 26.43.0
pom
import
@@ -201,7 +201,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.4.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.5.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/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdPartnerServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdPartnerServiceStubSettings.java
index 55ddd0ff5ff9..d04f4e8d19dc 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdPartnerServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdPartnerServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListAdPartnersResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -188,6 +189,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java
index 25c920faf44a..8a0852361aec 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListAdUnitsResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java
index 540916ffaa00..151d581b2a3f 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListCompaniesResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java
index 14e97f0f2b55..35cbd8e1689c 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListContactsResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeServiceStubSettings.java
index 35409c454580..76e3763cb509 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListCreativesResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java
index dbe4fb9d0139..30b5a4a8d3c4 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListCustomFieldsResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -194,6 +195,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java
index cc57fd819ea9..fee095a27f0c 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListCustomTargetingKeysResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -214,6 +215,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java
index 7a48ff296e7e..da91425dcdf6 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListCustomTargetingValuesResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java
index e13b5b8ff23e..778730a0e333 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListLabelsResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java
index 7764f607f630..f4d4cfbcc0ec 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.ListLineItemsResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java
index 6158b4a66b11..39263b44ec5b 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java
@@ -19,6 +19,7 @@
import com.google.ads.admanager.v1.GetNetworkRequest;
import com.google.ads.admanager.v1.Network;
import com.google.api.core.ApiFunction;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -113,6 +114,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java
index 4251f10b29fb..23806daddd31 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.Order;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java
index 7d82104a7f1e..b8d6e7fa686c 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.Placement;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -188,6 +189,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java
index f93c952de6d3..096da080aa9e 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java
@@ -20,6 +20,7 @@
import com.google.ads.admanager.v1.ExportSavedReportRequest;
import com.google.ads.admanager.v1.ExportSavedReportResponse;
import com.google.api.core.ApiFunction;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -130,6 +131,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java
index 875cd9fdb6ad..c1a99b0c46f4 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.Role;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java
index d5b964a13b7d..fd8b92fc6028 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.Team;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java
index bbd82f138b17..4ceb2e869422 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.ads.admanager.v1.User;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "admanager.googleapis.com:443";
}
diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md
index 5f4732010bbb..03a8bc6a1260 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.42.0
+ 26.43.0
pom
import
@@ -195,7 +195,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.34.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.35.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/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java
index affc1d49fd96..30e5ab505a96 100644
--- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java
+++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -223,6 +224,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "advisorynotifications.googleapis.com:443";
}
diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md
index f010979e70d8..ae0c6546aeb5 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.42.0
+ 26.43.0
pom
import
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java
index 3b577b0d12ca..9a73f26ebdea 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java
@@ -1054,7 +1054,8 @@ public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(
* mask. If the user does not provide a mask then only the non-empty fields present in the
* request will be overwritten. Set the update_mask to `*` to override all fields.
*
Updatable fields:
- *
* `big_query_source` * `bigtable` * `labels` * `sync_config`
+ *
* `labels` * `description` * `bigtable` * `bigtable.auto_scaling` *
+ * `bigtable.enable_multi_region_replica`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
@@ -1894,7 +1895,10 @@ public final ListFeatureViewsPagedResponse listFeatureViews(ListFeatureViewsRequ
* user does not provide a mask then only the non-empty fields present in the request will be
* overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
- *
* `labels` * `serviceAgentType`
+ *
* `labels` * `service_agent_type` * `big_query_source` *
+ * `big_query_source.uri` * `big_query_source.entity_id_columns` *
+ * `feature_registry_source` * `feature_registry_source.feature_groups` *
+ * `sync_config` * `sync_config.cron`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java
index 490e469f76d6..21f6b2fc4e9b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java
@@ -965,7 +965,7 @@ public final ListFeatureGroupsPagedResponse listFeatureGroups(ListFeatureGroupsR
* the user does not provide a mask then only the non-empty fields present in the request will
* be overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
- *
* `labels`
+ *
* `labels` * `description` * `big_query` * `big_query.entity_id_columns`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
@@ -1868,7 +1868,8 @@ public final UnaryCallable listFeatur
* overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
*
* `description` * `labels` * `disable_monitoring` (Not supported for
- * FeatureRegistry Feature)
+ * FeatureRegistryService Feature) * `point_of_contact` (Not supported for
+ * FeaturestoreService FeatureStore)
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture updateFeatureAsync(
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java
index ceda54d03a9e..011383590737 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java
@@ -3366,7 +3366,8 @@ public final UnaryCallable listFeatur
* overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
*
* `description` * `labels` * `disable_monitoring` (Not supported for
- * FeatureRegistry Feature)
+ * FeatureRegistryService Feature) * `point_of_contact` (Not supported for
+ * FeaturestoreService FeatureStore)
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Feature updateFeature(Feature feature, FieldMask updateMask) {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java
index e8acf92a9f4b..3e7a61745322 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java
@@ -300,7 +300,7 @@ public LlmUtilityServiceStub getStub() {
*
* @param endpoint Required. The name of the Endpoint requested to perform token counting. Format:
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
- * @param instances Required. The instances that are the input to token counting call. Schema is
+ * @param instances Optional. The instances that are the input to token counting call. Schema is
* identical to the prediction schema of the underlying model.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -336,7 +336,7 @@ public final CountTokensResponse countTokens(EndpointName endpoint, List
*
* @param endpoint Required. The name of the Endpoint requested to perform token counting. Format:
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
- * @param instances Required. The instances that are the input to token counting call. Schema is
+ * @param instances Optional. The instances that are the input to token counting call. Schema is
* identical to the prediction schema of the underlying model.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -368,6 +368,8 @@ public final CountTokensResponse countTokens(String endpoint, List instan
* .setModel("model104069929")
* .addAllInstances(new ArrayList())
* .addAllContents(new ArrayList())
+ * .setSystemInstruction(Content.newBuilder().build())
+ * .addAllTools(new ArrayList())
* .build();
* CountTokensResponse response = llmUtilityServiceClient.countTokens(request);
* }
@@ -402,6 +404,8 @@ public final CountTokensResponse countTokens(CountTokensRequest request) {
* .setModel("model104069929")
* .addAllInstances(new ArrayList())
* .addAllContents(new ArrayList())
+ * .setSystemInstruction(Content.newBuilder().build())
+ * .addAllTools(new ArrayList())
* .build();
* ApiFuture future =
* llmUtilityServiceClient.countTokensCallable().futureCall(request);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java
index 0db52ee8f388..1223e3d6f817 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java
@@ -331,6 +331,7 @@ public final PublisherModel getPublisherModel(String name) {
* .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString())
* .setLanguageCode("languageCode-2092349083")
* .setView(PublisherModelView.forNumber(0))
+ * .setIsHuggingFaceModel(true)
* .build();
* PublisherModel response = modelGardenServiceClient.getPublisherModel(request);
* }
@@ -361,6 +362,7 @@ public final PublisherModel getPublisherModel(GetPublisherModelRequest request)
* .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString())
* .setLanguageCode("languageCode-2092349083")
* .setView(PublisherModelView.forNumber(0))
+ * .setIsHuggingFaceModel(true)
* .build();
* ApiFuture future =
* modelGardenServiceClient.getPublisherModelCallable().futureCall(request);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java
index 2ec8b67e175b..b9f9cb022076 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java
@@ -297,6 +297,85 @@
*
*
*
+ * CreateNotebookExecutionJob |
+ * Creates a NotebookExecutionJob. |
+ *
+ * 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.
+ *
+ * createNotebookExecutionJobAsync(LocationName parent, NotebookExecutionJob notebookExecutionJob, String notebookExecutionJobId)
+ * createNotebookExecutionJobAsync(String parent, NotebookExecutionJob notebookExecutionJob, String notebookExecutionJobId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * |
+ *
+ *
+ * GetNotebookExecutionJob |
+ * Gets a NotebookExecutionJob. |
+ *
+ * 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.
+ *
+ * |
+ *
+ *
+ * ListNotebookExecutionJobs |
+ * Lists NotebookExecutionJobs in a 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.
+ *
+ * |
+ *
+ *
+ * DeleteNotebookExecutionJob |
+ * Deletes a NotebookExecutionJob. |
+ *
+ * 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.
+ *
+ * |
+ *
+ *
* ListLocations |
* Lists information about the supported locations for this service. |
*
@@ -2350,7 +2429,7 @@ public final OperationFuture deleteNotebookRunti
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a NotebookExecutionJob.
*
* Sample code:
*
@@ -2361,29 +2440,39 @@ public final OperationFuture deleteNotebookRunti
* // - 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()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * for (Location element : notebookServiceClient.listLocations(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build();
+ * String notebookExecutionJobId = "notebookExecutionJobId1598189627";
+ * NotebookExecutionJob response =
+ * notebookServiceClient
+ * .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId)
+ * .get();
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The resource name of the Location to create the NotebookExecutionJob.
+ * Format: `projects/{project}/locations/{location}`
+ * @param notebookExecutionJob Required. The NotebookExecutionJob to create.
+ * @param notebookExecutionJobId Optional. User specified ID for the NotebookExecutionJob.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
- return listLocationsPagedCallable().call(request);
+ public final OperationFuture
+ createNotebookExecutionJobAsync(
+ LocationName parent,
+ NotebookExecutionJob notebookExecutionJob,
+ String notebookExecutionJobId) {
+ CreateNotebookExecutionJobRequest request =
+ CreateNotebookExecutionJobRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setNotebookExecutionJob(notebookExecutionJob)
+ .setNotebookExecutionJobId(notebookExecutionJobId)
+ .build();
+ return createNotebookExecutionJobAsync(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a NotebookExecutionJob.
*
* Sample code:
*
@@ -2394,30 +2483,37 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - 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()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * ApiFuture future =
- * notebookServiceClient.listLocationsPagedCallable().futureCall(request);
- * // Do something.
- * for (Location element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build();
+ * String notebookExecutionJobId = "notebookExecutionJobId1598189627";
+ * NotebookExecutionJob response =
+ * notebookServiceClient
+ * .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId)
+ * .get();
* }
* }
+ *
+ * @param parent Required. The resource name of the Location to create the NotebookExecutionJob.
+ * Format: `projects/{project}/locations/{location}`
+ * @param notebookExecutionJob Required. The NotebookExecutionJob to create.
+ * @param notebookExecutionJobId Optional. User specified ID for the NotebookExecutionJob.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable
- listLocationsPagedCallable() {
- return stub.listLocationsPagedCallable();
+ public final OperationFuture
+ createNotebookExecutionJobAsync(
+ String parent, NotebookExecutionJob notebookExecutionJob, String notebookExecutionJobId) {
+ CreateNotebookExecutionJobRequest request =
+ CreateNotebookExecutionJobRequest.newBuilder()
+ .setParent(parent)
+ .setNotebookExecutionJob(notebookExecutionJob)
+ .setNotebookExecutionJobId(notebookExecutionJobId)
+ .build();
+ return createNotebookExecutionJobAsync(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a NotebookExecutionJob.
*
* Sample code:
*
@@ -2428,36 +2524,28 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - 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()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreateNotebookExecutionJobRequest request =
+ * CreateNotebookExecutionJobRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setNotebookExecutionJob(NotebookExecutionJob.newBuilder().build())
+ * .setNotebookExecutionJobId("notebookExecutionJobId1598189627")
* .build();
- * while (true) {
- * ListLocationsResponse response =
- * notebookServiceClient.listLocationsCallable().call(request);
- * for (Location element : response.getLocationsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * NotebookExecutionJob response =
+ * notebookServiceClient.createNotebookExecutionJobAsync(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 UnaryCallable listLocationsCallable() {
- return stub.listLocationsCallable();
+ public final OperationFuture
+ createNotebookExecutionJobAsync(CreateNotebookExecutionJobRequest request) {
+ return createNotebookExecutionJobOperationCallable().futureCall(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets information about a location.
+ * Creates a NotebookExecutionJob.
*
* Sample code:
*
@@ -2468,21 +2556,30 @@ public final UnaryCallable listLoca
* // - 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()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * Location response = notebookServiceClient.getLocation(request);
+ * CreateNotebookExecutionJobRequest request =
+ * CreateNotebookExecutionJobRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setNotebookExecutionJob(NotebookExecutionJob.newBuilder().build())
+ * .setNotebookExecutionJobId("notebookExecutionJobId1598189627")
+ * .build();
+ * OperationFuture future =
+ * notebookServiceClient.createNotebookExecutionJobOperationCallable().futureCall(request);
+ * // Do something.
+ * NotebookExecutionJob response = future.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 Location getLocation(GetLocationRequest request) {
- return getLocationCallable().call(request);
+ public final OperationCallable<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationCallable() {
+ return stub.createNotebookExecutionJobOperationCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets information about a location.
+ * Creates a NotebookExecutionJob.
*
* Sample code:
*
@@ -2493,22 +2590,27 @@ public final Location getLocation(GetLocationRequest request) {
* // - 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()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * ApiFuture future = notebookServiceClient.getLocationCallable().futureCall(request);
+ * CreateNotebookExecutionJobRequest request =
+ * CreateNotebookExecutionJobRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setNotebookExecutionJob(NotebookExecutionJob.newBuilder().build())
+ * .setNotebookExecutionJobId("notebookExecutionJobId1598189627")
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.createNotebookExecutionJobCallable().futureCall(request);
* // Do something.
- * Location response = future.get();
+ * Operation response = future.get();
* }
* }
*/
- public final UnaryCallable getLocationCallable() {
- return stub.getLocationCallable();
+ public final UnaryCallable
+ createNotebookExecutionJobCallable() {
+ return stub.createNotebookExecutionJobCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Sets the access control policy on the specified resource. Replacesany existing policy.
- *
- * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ * Gets a NotebookExecutionJob.
*
* Sample code:
*
@@ -2519,31 +2621,26 @@ public final UnaryCallable getLocationCallable() {
* // - 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()) {
- * SetIamPolicyRequest request =
- * SetIamPolicyRequest.newBuilder()
- * .setResource(
- * EndpointName.ofProjectLocationEndpointName(
- * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
- * .toString())
- * .setPolicy(Policy.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * Policy response = notebookServiceClient.setIamPolicy(request);
+ * NotebookExecutionJobName name =
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+ * NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. The name of the NotebookExecutionJob resource.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Policy setIamPolicy(SetIamPolicyRequest request) {
- return setIamPolicyCallable().call(request);
+ public final NotebookExecutionJob getNotebookExecutionJob(NotebookExecutionJobName name) {
+ GetNotebookExecutionJobRequest request =
+ GetNotebookExecutionJobRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getNotebookExecutionJob(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Sets the access control policy on the specified resource. Replacesany existing policy.
- *
- * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ * Gets a NotebookExecutionJob.
*
* Sample code:
*
@@ -2554,29 +2651,25 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* // - 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()) {
- * SetIamPolicyRequest request =
- * SetIamPolicyRequest.newBuilder()
- * .setResource(
- * EndpointName.ofProjectLocationEndpointName(
- * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
- * .toString())
- * .setPolicy(Policy.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * ApiFuture future = notebookServiceClient.setIamPolicyCallable().futureCall(request);
- * // Do something.
- * Policy response = future.get();
+ * String name =
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ * .toString();
+ * NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name);
* }
* }
+ *
+ * @param name Required. The name of the NotebookExecutionJob resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable setIamPolicyCallable() {
- return stub.setIamPolicyCallable();
+ public final NotebookExecutionJob getNotebookExecutionJob(String name) {
+ GetNotebookExecutionJobRequest request =
+ GetNotebookExecutionJobRequest.newBuilder().setName(name).build();
+ return getNotebookExecutionJob(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the access control policy for a resource. Returns an empty policyif the resource exists
- * and does not have a policy set.
+ * Gets a NotebookExecutionJob.
*
* Sample code:
*
@@ -2587,29 +2680,28 @@ public final UnaryCallable setIamPolicyCallable() {
* // - 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()) {
- * GetIamPolicyRequest request =
- * GetIamPolicyRequest.newBuilder()
- * .setResource(
- * EndpointName.ofProjectLocationEndpointName(
- * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * GetNotebookExecutionJobRequest request =
+ * GetNotebookExecutionJobRequest.newBuilder()
+ * .setName(
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
* .toString())
- * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .setView(NotebookExecutionJobView.forNumber(0))
* .build();
- * Policy response = notebookServiceClient.getIamPolicy(request);
+ * NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(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 Policy getIamPolicy(GetIamPolicyRequest request) {
- return getIamPolicyCallable().call(request);
+ public final NotebookExecutionJob getNotebookExecutionJob(
+ GetNotebookExecutionJobRequest request) {
+ return getNotebookExecutionJobCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the access control policy for a resource. Returns an empty policyif the resource exists
- * and does not have a policy set.
+ * Gets a NotebookExecutionJob.
*
* Sample code:
*
@@ -2620,32 +2712,28 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* // - 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()) {
- * GetIamPolicyRequest request =
- * GetIamPolicyRequest.newBuilder()
- * .setResource(
- * EndpointName.ofProjectLocationEndpointName(
- * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * GetNotebookExecutionJobRequest request =
+ * GetNotebookExecutionJobRequest.newBuilder()
+ * .setName(
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
* .toString())
- * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .setView(NotebookExecutionJobView.forNumber(0))
* .build();
- * ApiFuture future = notebookServiceClient.getIamPolicyCallable().futureCall(request);
+ * ApiFuture future =
+ * notebookServiceClient.getNotebookExecutionJobCallable().futureCall(request);
* // Do something.
- * Policy response = future.get();
+ * NotebookExecutionJob response = future.get();
* }
* }
*/
- public final UnaryCallable getIamPolicyCallable() {
- return stub.getIamPolicyCallable();
+ public final UnaryCallable
+ getNotebookExecutionJobCallable() {
+ return stub.getNotebookExecutionJobCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns permissions that a caller has on the specified resource. If theresource does not exist,
- * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
- *
- * Note: This operation is designed to be used for buildingpermission-aware UIs and
- * command-line tools, not for authorizationchecking. This operation may "fail open" without
- * warning.
+ * Lists NotebookExecutionJobs in a Location.
*
* Sample code:
*
@@ -2656,33 +2744,30 @@ public final UnaryCallable getIamPolicyCallable() {
* // - 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()) {
- * TestIamPermissionsRequest request =
- * TestIamPermissionsRequest.newBuilder()
- * .setResource(
- * EndpointName.ofProjectLocationEndpointName(
- * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
- * .toString())
- * .addAllPermissions(new ArrayList())
- * .build();
- * TestIamPermissionsResponse response = notebookServiceClient.testIamPermissions(request);
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (NotebookExecutionJob element :
+ * notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The resource name of the Location from which to list the
+ * NotebookExecutionJobs. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
- return testIamPermissionsCallable().call(request);
+ public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs(
+ LocationName parent) {
+ ListNotebookExecutionJobsRequest request =
+ ListNotebookExecutionJobsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listNotebookExecutionJobs(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns permissions that a caller has on the specified resource. If theresource does not exist,
- * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
- *
- * Note: This operation is designed to be used for buildingpermission-aware UIs and
- * command-line tools, not for authorizationchecking. This operation may "fail open" without
- * warning.
+ * Lists NotebookExecutionJobs in a Location.
*
* Sample code:
*
@@ -2693,22 +2778,656 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* // - 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()) {
- * TestIamPermissionsRequest request =
- * TestIamPermissionsRequest.newBuilder()
- * .setResource(
- * EndpointName.ofProjectLocationEndpointName(
- * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
- * .toString())
- * .addAllPermissions(new ArrayList())
- * .build();
- * ApiFuture future =
- * notebookServiceClient.testIamPermissionsCallable().futureCall(request);
- * // Do something.
- * TestIamPermissionsResponse response = future.get();
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (NotebookExecutionJob element :
+ * notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
- */
- public final UnaryCallable
+ *
+ * @param parent Required. The resource name of the Location from which to list the
+ * NotebookExecutionJobs. Format: `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs(String parent) {
+ ListNotebookExecutionJobsRequest request =
+ ListNotebookExecutionJobsRequest.newBuilder().setParent(parent).build();
+ return listNotebookExecutionJobs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists NotebookExecutionJobs in a 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * ListNotebookExecutionJobsRequest request =
+ * ListNotebookExecutionJobsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(NotebookExecutionJobView.forNumber(0))
+ * .build();
+ * for (NotebookExecutionJob element :
+ * notebookServiceClient.listNotebookExecutionJobs(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 ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs(
+ ListNotebookExecutionJobsRequest request) {
+ return listNotebookExecutionJobsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists NotebookExecutionJobs in a 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * ListNotebookExecutionJobsRequest request =
+ * ListNotebookExecutionJobsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(NotebookExecutionJobView.forNumber(0))
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.listNotebookExecutionJobsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (NotebookExecutionJob element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsPagedCallable() {
+ return stub.listNotebookExecutionJobsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists NotebookExecutionJobs in a 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * ListNotebookExecutionJobsRequest request =
+ * ListNotebookExecutionJobsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(NotebookExecutionJobView.forNumber(0))
+ * .build();
+ * while (true) {
+ * ListNotebookExecutionJobsResponse response =
+ * notebookServiceClient.listNotebookExecutionJobsCallable().call(request);
+ * for (NotebookExecutionJob element : response.getNotebookExecutionJobsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listNotebookExecutionJobsCallable() {
+ return stub.listNotebookExecutionJobsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a NotebookExecutionJob.
+ *
+ * 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()) {
+ * NotebookExecutionJobName name =
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+ * notebookServiceClient.deleteNotebookExecutionJobAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the NotebookExecutionJob resource to be deleted.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteNotebookExecutionJobAsync(
+ NotebookExecutionJobName name) {
+ DeleteNotebookExecutionJobRequest request =
+ DeleteNotebookExecutionJobRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteNotebookExecutionJobAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a NotebookExecutionJob.
+ *
+ * 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 =
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ * .toString();
+ * notebookServiceClient.deleteNotebookExecutionJobAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the NotebookExecutionJob resource to be deleted.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteNotebookExecutionJobAsync(
+ String name) {
+ DeleteNotebookExecutionJobRequest request =
+ DeleteNotebookExecutionJobRequest.newBuilder().setName(name).build();
+ return deleteNotebookExecutionJobAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a NotebookExecutionJob.
+ *
+ * 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()) {
+ * DeleteNotebookExecutionJobRequest request =
+ * DeleteNotebookExecutionJobRequest.newBuilder()
+ * .setName(
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ * .toString())
+ * .build();
+ * notebookServiceClient.deleteNotebookExecutionJobAsync(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 deleteNotebookExecutionJobAsync(
+ DeleteNotebookExecutionJobRequest request) {
+ return deleteNotebookExecutionJobOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a NotebookExecutionJob.
+ *
+ * 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()) {
+ * DeleteNotebookExecutionJobRequest request =
+ * DeleteNotebookExecutionJobRequest.newBuilder()
+ * .setName(
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * notebookServiceClient.deleteNotebookExecutionJobOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteNotebookExecutionJobOperationCallable() {
+ return stub.deleteNotebookExecutionJobOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a NotebookExecutionJob.
+ *
+ * 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()) {
+ * DeleteNotebookExecutionJobRequest request =
+ * DeleteNotebookExecutionJobRequest.newBuilder()
+ * .setName(
+ * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.deleteNotebookExecutionJobCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteNotebookExecutionJobCallable() {
+ return stub.deleteNotebookExecutionJobCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * 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()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : notebookServiceClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * 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()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listLocationsPagedCallable() {
+ return stub.listLocationsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * 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()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * notebookServiceClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listLocationsCallable() {
+ return stub.listLocationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = notebookServiceClient.getLocation(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 Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future = notebookServiceClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getLocationCallable() {
+ return stub.getLocationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * 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()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = notebookServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * 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()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = notebookServiceClient.setIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable setIamPolicyCallable() {
+ return stub.setIamPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists
+ * and does not have a policy set.
+ *
+ * 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()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = notebookServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists
+ * and does not have a policy set.
+ *
+ * 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()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * ApiFuture future = notebookServiceClient.getIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getIamPolicyCallable() {
+ return stub.getIamPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist,
+ * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * 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()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * TestIamPermissionsResponse response = notebookServiceClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist,
+ * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * 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()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestIamPermissionsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
testIamPermissionsCallable() {
return stub.testIamPermissionsCallable();
}
@@ -2924,6 +3643,102 @@ protected ListNotebookRuntimesFixedSizeCollection createCollection(
}
}
+ public static class ListNotebookExecutionJobsPagedResponse
+ extends AbstractPagedListResponse<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob,
+ ListNotebookExecutionJobsPage,
+ ListNotebookExecutionJobsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListNotebookExecutionJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListNotebookExecutionJobsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListNotebookExecutionJobsPagedResponse(ListNotebookExecutionJobsPage page) {
+ super(page, ListNotebookExecutionJobsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListNotebookExecutionJobsPage
+ extends AbstractPage<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob,
+ ListNotebookExecutionJobsPage> {
+
+ private ListNotebookExecutionJobsPage(
+ PageContext<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob>
+ context,
+ ListNotebookExecutionJobsResponse response) {
+ super(context, response);
+ }
+
+ private static ListNotebookExecutionJobsPage createEmptyPage() {
+ return new ListNotebookExecutionJobsPage(null, null);
+ }
+
+ @Override
+ protected ListNotebookExecutionJobsPage createPage(
+ PageContext<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob>
+ context,
+ ListNotebookExecutionJobsResponse response) {
+ return new ListNotebookExecutionJobsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListNotebookExecutionJobsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob,
+ ListNotebookExecutionJobsPage,
+ ListNotebookExecutionJobsFixedSizeCollection> {
+
+ private ListNotebookExecutionJobsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListNotebookExecutionJobsFixedSizeCollection createEmptyCollection() {
+ return new ListNotebookExecutionJobsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListNotebookExecutionJobsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListNotebookExecutionJobsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
public static class ListLocationsPagedResponse
extends AbstractPagedListResponse<
ListLocationsRequest,
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 52c716acfadf..4c3708e76003 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
@@ -17,6 +17,7 @@
package com.google.cloud.aiplatform.v1;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListLocationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookExecutionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimesPagedResponse;
@@ -213,6 +214,50 @@ public UnaryCallSettings startNotebookRu
.startNotebookRuntimeOperationSettings();
}
+ /** Returns the object with the settings used for calls to createNotebookExecutionJob. */
+ public UnaryCallSettings
+ createNotebookExecutionJobSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).createNotebookExecutionJobSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createNotebookExecutionJob. */
+ public OperationCallSettings<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings())
+ .createNotebookExecutionJobOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getNotebookExecutionJob. */
+ public UnaryCallSettings
+ getNotebookExecutionJobSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).getNotebookExecutionJobSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listNotebookExecutionJobs. */
+ public PagedCallSettings<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).listNotebookExecutionJobsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteNotebookExecutionJob. */
+ public UnaryCallSettings
+ deleteNotebookExecutionJobSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings()).deleteNotebookExecutionJobSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteNotebookExecutionJob. */
+ public OperationCallSettings
+ deleteNotebookExecutionJobOperationSettings() {
+ return ((NotebookServiceStubSettings) getStubSettings())
+ .deleteNotebookExecutionJobOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -456,6 +501,49 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().startNotebookRuntimeOperationSettings();
}
+ /** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
+ public UnaryCallSettings.Builder
+ createNotebookExecutionJobSettings() {
+ return getStubSettingsBuilder().createNotebookExecutionJobSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
+ public OperationCallSettings.Builder<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationSettings() {
+ return getStubSettingsBuilder().createNotebookExecutionJobOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getNotebookExecutionJob. */
+ public UnaryCallSettings.Builder
+ getNotebookExecutionJobSettings() {
+ return getStubSettingsBuilder().getNotebookExecutionJobSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listNotebookExecutionJobs. */
+ public PagedCallSettings.Builder<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsSettings() {
+ return getStubSettingsBuilder().listNotebookExecutionJobsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteNotebookExecutionJob. */
+ public UnaryCallSettings.Builder
+ deleteNotebookExecutionJobSettings() {
+ return getStubSettingsBuilder().deleteNotebookExecutionJobSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteNotebookExecutionJob. */
+ public OperationCallSettings.Builder<
+ DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
+ deleteNotebookExecutionJobOperationSettings() {
+ return getStubSettingsBuilder().deleteNotebookExecutionJobOperationSettings();
+ }
+
/** 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/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
index d11832bdfee0..e4fc7edbd245 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
@@ -1024,9 +1024,15 @@
"AssignNotebookRuntime": {
"methods": ["assignNotebookRuntimeAsync", "assignNotebookRuntimeAsync", "assignNotebookRuntimeAsync", "assignNotebookRuntimeAsync", "assignNotebookRuntimeAsync", "assignNotebookRuntimeOperationCallable", "assignNotebookRuntimeCallable"]
},
+ "CreateNotebookExecutionJob": {
+ "methods": ["createNotebookExecutionJobAsync", "createNotebookExecutionJobAsync", "createNotebookExecutionJobAsync", "createNotebookExecutionJobOperationCallable", "createNotebookExecutionJobCallable"]
+ },
"CreateNotebookRuntimeTemplate": {
"methods": ["createNotebookRuntimeTemplateAsync", "createNotebookRuntimeTemplateAsync", "createNotebookRuntimeTemplateAsync", "createNotebookRuntimeTemplateOperationCallable", "createNotebookRuntimeTemplateCallable"]
},
+ "DeleteNotebookExecutionJob": {
+ "methods": ["deleteNotebookExecutionJobAsync", "deleteNotebookExecutionJobAsync", "deleteNotebookExecutionJobAsync", "deleteNotebookExecutionJobOperationCallable", "deleteNotebookExecutionJobCallable"]
+ },
"DeleteNotebookRuntime": {
"methods": ["deleteNotebookRuntimeAsync", "deleteNotebookRuntimeAsync", "deleteNotebookRuntimeAsync", "deleteNotebookRuntimeOperationCallable", "deleteNotebookRuntimeCallable"]
},
@@ -1039,6 +1045,9 @@
"GetLocation": {
"methods": ["getLocation", "getLocationCallable"]
},
+ "GetNotebookExecutionJob": {
+ "methods": ["getNotebookExecutionJob", "getNotebookExecutionJob", "getNotebookExecutionJob", "getNotebookExecutionJobCallable"]
+ },
"GetNotebookRuntime": {
"methods": ["getNotebookRuntime", "getNotebookRuntime", "getNotebookRuntime", "getNotebookRuntimeCallable"]
},
@@ -1048,6 +1057,9 @@
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
+ "ListNotebookExecutionJobs": {
+ "methods": ["listNotebookExecutionJobs", "listNotebookExecutionJobs", "listNotebookExecutionJobs", "listNotebookExecutionJobsPagedCallable", "listNotebookExecutionJobsCallable"]
+ },
"ListNotebookRuntimeTemplates": {
"methods": ["listNotebookRuntimeTemplates", "listNotebookRuntimeTemplates", "listNotebookRuntimeTemplates", "listNotebookRuntimeTemplatesPagedCallable", "listNotebookRuntimeTemplatesCallable"]
},
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
index 0a78600ffa85..647f7464adf1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
@@ -26,6 +26,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -817,6 +818,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java
index 3391e9116a60..8aaba602d2a6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -467,6 +468,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java
index 45764fab41d2..0a4e880b4889 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -393,6 +394,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java
index 9a29504306e1..25aea54f211b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java
@@ -23,6 +23,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -620,6 +621,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java
index 988e5dc47b4b..f13e276282ff 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java
@@ -20,6 +20,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -233,6 +234,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
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 12b9ae44fa0b..e037fafdd0e2 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
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -474,6 +475,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java
index 52abbe9d0cfb..b7d3cf066c3c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java
@@ -20,6 +20,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -245,6 +246,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java
index e08aa0a41416..9cc6aaa43cc9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -769,6 +770,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java
index 68a93c5b9ea7..8d96a08c5345 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -302,6 +303,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
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 f49a66a8edb4..9e630479f8ba 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
@@ -17,6 +17,7 @@
package com.google.cloud.aiplatform.v1.stub;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListLocationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookExecutionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimesPagedResponse;
@@ -30,17 +31,24 @@
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.aiplatform.v1.AssignNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.AssignNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata;
+import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateRequest;
+import com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
+import com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.GetNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.GetNotebookRuntimeTemplateRequest;
+import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest;
+import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesRequest;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesResponse;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimesRequest;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimesResponse;
+import com.google.cloud.aiplatform.v1.NotebookExecutionJob;
import com.google.cloud.aiplatform.v1.NotebookRuntime;
import com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata;
@@ -201,6 +209,54 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ createNotebookExecutionJobMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.NotebookService/CreateNotebookExecutionJob")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateNotebookExecutionJobRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getNotebookExecutionJobMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.NotebookService/GetNotebookExecutionJob")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetNotebookExecutionJobRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(NotebookExecutionJob.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse>
+ listNotebookExecutionJobsMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.NotebookService/ListNotebookExecutionJobs")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListNotebookExecutionJobsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListNotebookExecutionJobsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteNotebookExecutionJobMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.NotebookService/DeleteNotebookExecutionJob")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteNotebookExecutionJobRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -297,6 +353,24 @@ public class GrpcNotebookServiceStub extends NotebookServiceStub {
StartNotebookRuntimeResponse,
StartNotebookRuntimeOperationMetadata>
startNotebookRuntimeOperationCallable;
+ private final UnaryCallable
+ createNotebookExecutionJobCallable;
+ private final OperationCallable<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationCallable;
+ private final UnaryCallable
+ getNotebookExecutionJobCallable;
+ private final UnaryCallable
+ listNotebookExecutionJobsCallable;
+ private final UnaryCallable<
+ ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsPagedCallable;
+ private final UnaryCallable
+ deleteNotebookExecutionJobCallable;
+ private final OperationCallable
+ deleteNotebookExecutionJobOperationCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -476,6 +550,51 @@ protected GrpcNotebookServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ createNotebookExecutionJobTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createNotebookExecutionJobMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ getNotebookExecutionJobTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getNotebookExecutionJobMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ listNotebookExecutionJobsTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listNotebookExecutionJobsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ deleteNotebookExecutionJobTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteNotebookExecutionJobMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -629,6 +748,43 @@ protected GrpcNotebookServiceStub(
settings.startNotebookRuntimeOperationSettings(),
clientContext,
operationsStub);
+ this.createNotebookExecutionJobCallable =
+ callableFactory.createUnaryCallable(
+ createNotebookExecutionJobTransportSettings,
+ settings.createNotebookExecutionJobSettings(),
+ clientContext);
+ this.createNotebookExecutionJobOperationCallable =
+ callableFactory.createOperationCallable(
+ createNotebookExecutionJobTransportSettings,
+ settings.createNotebookExecutionJobOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.getNotebookExecutionJobCallable =
+ callableFactory.createUnaryCallable(
+ getNotebookExecutionJobTransportSettings,
+ settings.getNotebookExecutionJobSettings(),
+ clientContext);
+ this.listNotebookExecutionJobsCallable =
+ callableFactory.createUnaryCallable(
+ listNotebookExecutionJobsTransportSettings,
+ settings.listNotebookExecutionJobsSettings(),
+ clientContext);
+ this.listNotebookExecutionJobsPagedCallable =
+ callableFactory.createPagedCallable(
+ listNotebookExecutionJobsTransportSettings,
+ settings.listNotebookExecutionJobsSettings(),
+ clientContext);
+ this.deleteNotebookExecutionJobCallable =
+ callableFactory.createUnaryCallable(
+ deleteNotebookExecutionJobTransportSettings,
+ settings.deleteNotebookExecutionJobSettings(),
+ clientContext);
+ this.deleteNotebookExecutionJobOperationCallable =
+ callableFactory.createOperationCallable(
+ deleteNotebookExecutionJobTransportSettings,
+ settings.deleteNotebookExecutionJobOperationSettings(),
+ clientContext,
+ operationsStub);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -778,6 +934,51 @@ public UnaryCallable startNotebookRuntim
return startNotebookRuntimeOperationCallable;
}
+ @Override
+ public UnaryCallable
+ createNotebookExecutionJobCallable() {
+ return createNotebookExecutionJobCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationCallable() {
+ return createNotebookExecutionJobOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getNotebookExecutionJobCallable() {
+ return getNotebookExecutionJobCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listNotebookExecutionJobsCallable() {
+ return listNotebookExecutionJobsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listNotebookExecutionJobsPagedCallable() {
+ return listNotebookExecutionJobsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deleteNotebookExecutionJobCallable() {
+ return deleteNotebookExecutionJobCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deleteNotebookExecutionJobOperationCallable() {
+ return deleteNotebookExecutionJobOperationCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java
index 41d29b4e1ae7..f6a0bb12d2f0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -409,6 +410,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java
index 5d3bea7e5904..236e0317c297 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -358,6 +359,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java
index 064c15bb5b90..6730f3db1a32 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java
@@ -28,6 +28,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -1202,6 +1203,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java
index 261905c1a7b5..1cb466992179 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java
@@ -20,6 +20,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -229,6 +230,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java
index 9f2aeb42a0f3..22883f0dd073 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java
@@ -20,6 +20,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -230,6 +231,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java
index d01ec71a39ea..76dba2b665e3 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java
@@ -25,6 +25,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -865,6 +866,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java
index 6033956797c4..07774fb1aa33 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -335,6 +336,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java
index 79f0377d8a5b..217f8bb3781b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java
@@ -20,6 +20,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -221,6 +222,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java
index d0a80deede1a..5abda81e60f5 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -714,6 +715,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
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 b9a15f56213d..d870a60a273a 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
@@ -17,6 +17,7 @@
package com.google.cloud.aiplatform.v1.stub;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListLocationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookExecutionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimesPagedResponse;
@@ -25,17 +26,24 @@
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.aiplatform.v1.AssignNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.AssignNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata;
+import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateRequest;
+import com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
+import com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.GetNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.GetNotebookRuntimeTemplateRequest;
+import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest;
+import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesRequest;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesResponse;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimesRequest;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimesResponse;
+import com.google.cloud.aiplatform.v1.NotebookExecutionJob;
import com.google.cloud.aiplatform.v1.NotebookRuntime;
import com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata;
@@ -185,6 +193,49 @@ public UnaryCallable startNotebookRuntim
throw new UnsupportedOperationException("Not implemented: startNotebookRuntimeCallable()");
}
+ public OperationCallable<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createNotebookExecutionJobOperationCallable()");
+ }
+
+ public UnaryCallable
+ createNotebookExecutionJobCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createNotebookExecutionJobCallable()");
+ }
+
+ public UnaryCallable
+ getNotebookExecutionJobCallable() {
+ throw new UnsupportedOperationException("Not implemented: getNotebookExecutionJobCallable()");
+ }
+
+ public UnaryCallable
+ listNotebookExecutionJobsPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listNotebookExecutionJobsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listNotebookExecutionJobsCallable() {
+ throw new UnsupportedOperationException("Not implemented: listNotebookExecutionJobsCallable()");
+ }
+
+ public OperationCallable
+ deleteNotebookExecutionJobOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteNotebookExecutionJobOperationCallable()");
+ }
+
+ public UnaryCallable
+ deleteNotebookExecutionJobCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteNotebookExecutionJobCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
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 805c8e820e07..617c99fc0e73 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
@@ -17,11 +17,13 @@
package com.google.cloud.aiplatform.v1.stub;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListLocationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookExecutionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimesPagedResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -47,17 +49,24 @@
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.aiplatform.v1.AssignNotebookRuntimeOperationMetadata;
import com.google.cloud.aiplatform.v1.AssignNotebookRuntimeRequest;
+import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata;
+import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateOperationMetadata;
import com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateRequest;
+import com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeTemplateRequest;
import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
+import com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest;
import com.google.cloud.aiplatform.v1.GetNotebookRuntimeRequest;
import com.google.cloud.aiplatform.v1.GetNotebookRuntimeTemplateRequest;
+import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest;
+import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesRequest;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesResponse;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimesRequest;
import com.google.cloud.aiplatform.v1.ListNotebookRuntimesResponse;
+import com.google.cloud.aiplatform.v1.NotebookExecutionJob;
import com.google.cloud.aiplatform.v1.NotebookRuntime;
import com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate;
import com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata;
@@ -181,6 +190,25 @@ public class NotebookServiceStubSettings extends StubSettings
startNotebookRuntimeOperationSettings;
+ private final UnaryCallSettings
+ createNotebookExecutionJobSettings;
+ private final OperationCallSettings<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationSettings;
+ private final UnaryCallSettings
+ getNotebookExecutionJobSettings;
+ private final PagedCallSettings<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsSettings;
+ private final UnaryCallSettings
+ deleteNotebookExecutionJobSettings;
+ private final OperationCallSettings<
+ DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
+ deleteNotebookExecutionJobOperationSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -280,6 +308,53 @@ public Iterable extractResources(
}
};
+ private static final PagedListDescriptor<
+ ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse, NotebookExecutionJob>
+ LIST_NOTEBOOK_EXECUTION_JOBS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListNotebookExecutionJobsRequest injectToken(
+ ListNotebookExecutionJobsRequest payload, String token) {
+ return ListNotebookExecutionJobsRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListNotebookExecutionJobsRequest injectPageSize(
+ ListNotebookExecutionJobsRequest payload, int pageSize) {
+ return ListNotebookExecutionJobsRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListNotebookExecutionJobsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListNotebookExecutionJobsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListNotebookExecutionJobsResponse payload) {
+ return payload.getNotebookExecutionJobsList() == null
+ ? ImmutableList.of()
+ : payload.getNotebookExecutionJobsList();
+ }
+ };
+
private static final PagedListDescriptor
LIST_LOCATIONS_PAGE_STR_DESC =
new PagedListDescriptor() {
@@ -372,6 +447,34 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>
+ LIST_NOTEBOOK_EXECUTION_JOBS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable
+ callable,
+ ListNotebookExecutionJobsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ NotebookExecutionJob>
+ pageContext =
+ PageContext.create(
+ callable, LIST_NOTEBOOK_EXECUTION_JOBS_PAGE_STR_DESC, request, context);
+ return ListNotebookExecutionJobsPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
private static final PagedListResponseFactory<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
LIST_LOCATIONS_PAGE_STR_FACT =
@@ -506,6 +609,48 @@ public UnaryCallSettings startNotebookRu
return startNotebookRuntimeOperationSettings;
}
+ /** Returns the object with the settings used for calls to createNotebookExecutionJob. */
+ public UnaryCallSettings
+ createNotebookExecutionJobSettings() {
+ return createNotebookExecutionJobSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createNotebookExecutionJob. */
+ public OperationCallSettings<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationSettings() {
+ return createNotebookExecutionJobOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getNotebookExecutionJob. */
+ public UnaryCallSettings
+ getNotebookExecutionJobSettings() {
+ return getNotebookExecutionJobSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listNotebookExecutionJobs. */
+ public PagedCallSettings<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsSettings() {
+ return listNotebookExecutionJobsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteNotebookExecutionJob. */
+ public UnaryCallSettings
+ deleteNotebookExecutionJobSettings() {
+ return deleteNotebookExecutionJobSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteNotebookExecutionJob. */
+ public OperationCallSettings
+ deleteNotebookExecutionJobOperationSettings() {
+ return deleteNotebookExecutionJobOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -556,6 +701,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
@@ -641,6 +787,16 @@ protected NotebookServiceStubSettings(Builder settingsBuilder) throws IOExceptio
startNotebookRuntimeSettings = settingsBuilder.startNotebookRuntimeSettings().build();
startNotebookRuntimeOperationSettings =
settingsBuilder.startNotebookRuntimeOperationSettings().build();
+ createNotebookExecutionJobSettings =
+ settingsBuilder.createNotebookExecutionJobSettings().build();
+ createNotebookExecutionJobOperationSettings =
+ settingsBuilder.createNotebookExecutionJobOperationSettings().build();
+ getNotebookExecutionJobSettings = settingsBuilder.getNotebookExecutionJobSettings().build();
+ listNotebookExecutionJobsSettings = settingsBuilder.listNotebookExecutionJobsSettings().build();
+ deleteNotebookExecutionJobSettings =
+ settingsBuilder.deleteNotebookExecutionJobSettings().build();
+ deleteNotebookExecutionJobOperationSettings =
+ settingsBuilder.deleteNotebookExecutionJobOperationSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
@@ -705,6 +861,25 @@ public static class Builder extends StubSettings.Builder
startNotebookRuntimeOperationSettings;
+ private final UnaryCallSettings.Builder
+ createNotebookExecutionJobSettings;
+ private final OperationCallSettings.Builder<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationSettings;
+ private final UnaryCallSettings.Builder
+ getNotebookExecutionJobSettings;
+ private final PagedCallSettings.Builder<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsSettings;
+ private final UnaryCallSettings.Builder
+ deleteNotebookExecutionJobSettings;
+ private final OperationCallSettings.Builder<
+ DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
+ deleteNotebookExecutionJobOperationSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -759,6 +934,13 @@ protected Builder(ClientContext clientContext) {
upgradeNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
startNotebookRuntimeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
startNotebookRuntimeOperationSettings = OperationCallSettings.newBuilder();
+ createNotebookExecutionJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createNotebookExecutionJobOperationSettings = OperationCallSettings.newBuilder();
+ getNotebookExecutionJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listNotebookExecutionJobsSettings =
+ PagedCallSettings.newBuilder(LIST_NOTEBOOK_EXECUTION_JOBS_PAGE_STR_FACT);
+ deleteNotebookExecutionJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteNotebookExecutionJobOperationSettings = OperationCallSettings.newBuilder();
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -778,6 +960,10 @@ protected Builder(ClientContext clientContext) {
deleteNotebookRuntimeSettings,
upgradeNotebookRuntimeSettings,
startNotebookRuntimeSettings,
+ createNotebookExecutionJobSettings,
+ getNotebookExecutionJobSettings,
+ listNotebookExecutionJobsSettings,
+ deleteNotebookExecutionJobSettings,
listLocationsSettings,
getLocationSettings,
setIamPolicySettings,
@@ -816,6 +1002,14 @@ protected Builder(NotebookServiceStubSettings settings) {
startNotebookRuntimeSettings = settings.startNotebookRuntimeSettings.toBuilder();
startNotebookRuntimeOperationSettings =
settings.startNotebookRuntimeOperationSettings.toBuilder();
+ createNotebookExecutionJobSettings = settings.createNotebookExecutionJobSettings.toBuilder();
+ createNotebookExecutionJobOperationSettings =
+ settings.createNotebookExecutionJobOperationSettings.toBuilder();
+ getNotebookExecutionJobSettings = settings.getNotebookExecutionJobSettings.toBuilder();
+ listNotebookExecutionJobsSettings = settings.listNotebookExecutionJobsSettings.toBuilder();
+ deleteNotebookExecutionJobSettings = settings.deleteNotebookExecutionJobSettings.toBuilder();
+ deleteNotebookExecutionJobOperationSettings =
+ settings.deleteNotebookExecutionJobOperationSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
@@ -835,6 +1029,10 @@ protected Builder(NotebookServiceStubSettings settings) {
deleteNotebookRuntimeSettings,
upgradeNotebookRuntimeSettings,
startNotebookRuntimeSettings,
+ createNotebookExecutionJobSettings,
+ getNotebookExecutionJobSettings,
+ listNotebookExecutionJobsSettings,
+ deleteNotebookExecutionJobSettings,
listLocationsSettings,
getLocationSettings,
setIamPolicySettings,
@@ -910,6 +1108,26 @@ private static Builder initDefaults(Builder builder) {
.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"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .getNotebookExecutionJobSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .listNotebookExecutionJobsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+ builder
+ .deleteNotebookExecutionJobSettings()
+ .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"))
@@ -1087,6 +1305,57 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .createNotebookExecutionJobOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .
+ newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(NotebookExecutionJob.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(
+ CreateNotebookExecutionJobOperationMetadata.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
+ .deleteNotebookExecutionJobOperationSettings()
+ .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;
}
@@ -1225,6 +1494,49 @@ public Builder applyToAllUnaryMethods(
return startNotebookRuntimeOperationSettings;
}
+ /** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
+ public UnaryCallSettings.Builder
+ createNotebookExecutionJobSettings() {
+ return createNotebookExecutionJobSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createNotebookExecutionJob. */
+ public OperationCallSettings.Builder<
+ CreateNotebookExecutionJobRequest,
+ NotebookExecutionJob,
+ CreateNotebookExecutionJobOperationMetadata>
+ createNotebookExecutionJobOperationSettings() {
+ return createNotebookExecutionJobOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getNotebookExecutionJob. */
+ public UnaryCallSettings.Builder
+ getNotebookExecutionJobSettings() {
+ return getNotebookExecutionJobSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listNotebookExecutionJobs. */
+ public PagedCallSettings.Builder<
+ ListNotebookExecutionJobsRequest,
+ ListNotebookExecutionJobsResponse,
+ ListNotebookExecutionJobsPagedResponse>
+ listNotebookExecutionJobsSettings() {
+ return listNotebookExecutionJobsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteNotebookExecutionJob. */
+ public UnaryCallSettings.Builder
+ deleteNotebookExecutionJobSettings() {
+ return deleteNotebookExecutionJobSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteNotebookExecutionJob. */
+ public OperationCallSettings.Builder<
+ DeleteNotebookExecutionJobRequest, Empty, DeleteOperationMetadata>
+ deleteNotebookExecutionJobOperationSettings() {
+ return deleteNotebookExecutionJobOperationSettings;
+ }
+
/** 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/v1/stub/PersistentResourceServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStubSettings.java
index dc82b4ad6ad3..f36f831e6b19 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -410,6 +411,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java
index 7c5557e2e2a0..cd67e862f534 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -499,6 +500,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java
index b47ae3a32bcc..b287eb8b6112 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.HttpBody;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -334,6 +335,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java
index 46932a8c884a..a3c9c7e958bc 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -335,6 +336,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java
index 8ead324c3fba..81755be3cd61 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -358,6 +359,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java
index f60a9ce19469..fe4432fc156f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java
@@ -25,6 +25,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -953,6 +954,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java
index 4bbc736c0809..def7f7c913ab 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -471,6 +472,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java
index fc5c33fe731b..7e501f030fbc 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java
@@ -1056,7 +1056,8 @@ public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(
* mask. If the user does not provide a mask then only the non-empty fields present in the
* request will be overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
- * * `big_query_source` * `bigtable` * `labels` * `sync_config`
+ * * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` *
+ * `bigtable.enable_multi_region_replica`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
@@ -1896,7 +1897,10 @@ public final ListFeatureViewsPagedResponse listFeatureViews(ListFeatureViewsRequ
* user does not provide a mask then only the non-empty fields present in the request will be
* overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
- * * `labels` * `serviceAgentType`
+ * * `labels` * `service_agent_type` * `big_query_source` *
+ * `big_query_source.uri` * `big_query_source.entity_id_columns` *
+ * `feature_registry_source` * `feature_registry_source.feature_groups` *
+ * `sync_config` * `sync_config.cron`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
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 af08175130d8..a9c8b3d8b6ed 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
@@ -967,7 +967,7 @@ public final ListFeatureGroupsPagedResponse listFeatureGroups(ListFeatureGroupsR
* the user does not provide a mask then only the non-empty fields present in the request will
* be overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
- * * `labels`
+ * * `labels` * `description` * `big_query` * `big_query.entity_id_columns`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture
@@ -1870,7 +1870,8 @@ public final UnaryCallable listFeatur
* overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
* * `description` * `labels` * `disable_monitoring` (Not supported for
- * FeatureRegistry Feature)
+ * FeatureRegistryService Feature) * `point_of_contact` (Not supported for
+ * FeaturestoreService FeatureStore)
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture updateFeatureAsync(
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 e5e399ac2801..104854aedfe7 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
@@ -3368,7 +3368,8 @@ public final UnaryCallable listFeatur
* overwritten. Set the update_mask to `*` to override all fields.
* Updatable fields:
* * `description` * `labels` * `disable_monitoring` (Not supported for
- * FeatureRegistry Feature)
+ * FeatureRegistryService Feature) * `point_of_contact` (Not supported for
+ * FeaturestoreService FeatureStore)
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Feature updateFeature(Feature feature, FieldMask updateMask) {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java
index 8292270f156a..57705782cc89 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java
@@ -352,6 +352,7 @@ public final PublisherModel getPublisherModel(String name) {
* .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString())
* .setLanguageCode("languageCode-2092349083")
* .setView(PublisherModelView.forNumber(0))
+ * .setIsHuggingFaceModel(true)
* .build();
* PublisherModel response = modelGardenServiceClient.getPublisherModel(request);
* }
@@ -382,6 +383,7 @@ public final PublisherModel getPublisherModel(GetPublisherModelRequest request)
* .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString())
* .setLanguageCode("languageCode-2092349083")
* .setView(PublisherModelView.forNumber(0))
+ * .setIsHuggingFaceModel(true)
* .build();
* ApiFuture future =
* modelGardenServiceClient.getPublisherModelCallable().futureCall(request);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java
index c9533e627ee2..48e04988166e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java
@@ -1407,7 +1407,7 @@ public final UnaryCallable explainCallable() {
*
* @param endpoint Required. The name of the Endpoint requested to perform token counting. Format:
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
- * @param instances Required. The instances that are the input to token counting call. Schema is
+ * @param instances Optional. The instances that are the input to token counting call. Schema is
* identical to the prediction schema of the underlying model.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -1443,7 +1443,7 @@ public final CountTokensResponse countTokens(EndpointName endpoint, List
*
* @param endpoint Required. The name of the Endpoint requested to perform token counting. Format:
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
- * @param instances Required. The instances that are the input to token counting call. Schema is
+ * @param instances Optional. The instances that are the input to token counting call. Schema is
* identical to the prediction schema of the underlying model.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -1475,6 +1475,8 @@ public final CountTokensResponse countTokens(String endpoint, List instan
* .setModel("model104069929")
* .addAllInstances(new ArrayList())
* .addAllContents(new ArrayList())
+ * .setSystemInstruction(Content.newBuilder().build())
+ * .addAllTools(new ArrayList())
* .build();
* CountTokensResponse response = predictionServiceClient.countTokens(request);
* }
@@ -1509,6 +1511,8 @@ public final CountTokensResponse countTokens(CountTokensRequest request) {
* .setModel("model104069929")
* .addAllInstances(new ArrayList())
* .addAllContents(new ArrayList())
+ * .setSystemInstruction(Content.newBuilder().build())
+ * .addAllTools(new ArrayList())
* .build();
* ApiFuture future =
* predictionServiceClient.countTokensCallable().futureCall(request);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java
index dabb7138cb2f..d0bc7384e504 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java
@@ -27,6 +27,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -819,6 +820,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java
index abeed197cadd..d911ec2dd4bb 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java
@@ -23,6 +23,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -469,6 +470,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
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 ce790c901cbe..07c948f7b95d 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
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -395,6 +396,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java
index c5f19518e46d..c3a051f3f5a9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -225,6 +226,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java
index 4cd00f3f23d7..d8102329a3ef 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -234,6 +235,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java
index 0d559cbdcb3a..b4f5d2a9e7c8 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -337,6 +338,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java
index ca912bd7e8a6..da301342d12d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java
@@ -24,6 +24,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -622,6 +623,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java
index bd43b40fc652..ae843abe5b04 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -248,6 +249,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
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 5add693696d0..383f7205a269 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
@@ -23,6 +23,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -476,6 +477,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java
index c73da6250108..d700a97d6e59 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -248,6 +249,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java
index d83c5ea01845..1925c5fb99d4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java
@@ -25,6 +25,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -771,6 +772,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java
index 8b5107882f71..6d5c1f9be109 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -322,6 +323,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java
index 337040eabe6e..db0d86536eaa 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -304,6 +305,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java
index 6e7cf26964de..90492ea68170 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -411,6 +412,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java
index a233577cee28..21b8e141c962 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -360,6 +361,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java
index a3647dfff48d..e9894403fc21 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java
@@ -29,6 +29,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -1204,6 +1205,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java
index ea4d591da33f..6dbe41675418 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -223,6 +224,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java
index b3793401c985..46fd078d0551 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -232,6 +233,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java
index 6d10ac67cf19..dcb060b3f377 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java
@@ -26,6 +26,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -867,6 +868,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java
index 36daf44c2d62..ab47b9947753 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -337,6 +338,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java
index dcb8fdf242c9..309c6b3b1cc8 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -297,6 +298,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java
index 2472b31a4b74..6c222f6e6c7d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java
@@ -25,6 +25,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -673,6 +674,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java
index fac8791c8bd0..3c51be229a1b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java
@@ -25,6 +25,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -716,6 +717,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
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 345e74fce191..5ff1780e414e 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
@@ -24,6 +24,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -702,6 +703,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java
index 6071ce228f7f..4faf7c343cc6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -412,6 +413,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java
index cc604e6dd8a9..2acb57f14174 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java
@@ -23,6 +23,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -501,6 +502,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java
index 400a53cf151d..c5f016c01e80 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -353,6 +354,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java
index 8a56fcf82b3f..5b3d49d537da 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -226,6 +227,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java
index 210fd3b9153c..e17f1b1197ab 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -372,6 +373,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java
index 9638e0b13705..28e1d990903b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -337,6 +338,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java
index 26eb5dd21df7..aaf8e71a4341 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java
@@ -22,6 +22,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -360,6 +361,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java
index a8f077af8a57..1551521c06c0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java
@@ -26,6 +26,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -952,6 +953,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java
index 3b212d650935..f60960404861 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java
@@ -23,6 +23,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -446,6 +447,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java
index 6217a629a43e..a061f3998187 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java
@@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -223,6 +224,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java
index caf19f943236..36a526554632 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java
@@ -23,6 +23,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
+import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -473,6 +474,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}
/** Returns the default service endpoint. */
+ @ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "aiplatform.googleapis.com:443";
}
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 ca8fcb673962..15414ae531da 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
@@ -2546,6 +2546,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateOperationMetadata",
"queryAllDeclaredConstructors": true,
@@ -3626,6 +3662,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeRequest",
"queryAllDeclaredConstructors": true,
@@ -6920,6 +6974,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.GetNotebookRuntimeRequest",
"queryAllDeclaredConstructors": true,
@@ -7208,6 +7280,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingChunk",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingChunk$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingChunk$RetrievedContext",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingChunk$RetrievedContext$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingChunk$Web",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingChunk$Web$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.GroundingMetadata",
"queryAllDeclaredConstructors": true,
@@ -7226,6 +7352,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingSupport",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.GroundingSupport$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.HarmCategory",
"queryAllDeclaredConstructors": true,
@@ -8828,6 +8972,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesRequest",
"queryAllDeclaredConstructors": true,
@@ -10826,6 +11006,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.NearestNeighborQuery$NumericFilter",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NearestNeighborQuery$NumericFilter$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NearestNeighborQuery$NumericFilter$Operator",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.NearestNeighborQuery$Parameters",
"queryAllDeclaredConstructors": true,
@@ -11033,6 +11240,87 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$DataformRepositorySource",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$DataformRepositorySource$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$DirectNotebookSource",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$DirectNotebookSource$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$GcsNotebookSource",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$GcsNotebookSource$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJobView",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig",
"queryAllDeclaredConstructors": true,
@@ -12212,6 +12500,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.RayLogsSpec",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.RayLogsSpec$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.RayMetricSpec",
"queryAllDeclaredConstructors": true,
@@ -13112,6 +13418,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.Scheduling$Strategy",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.Schema",
"queryAllDeclaredConstructors": true,
@@ -13364,6 +13679,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1.Segment",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1.Segment$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1.ServiceAccountSpec",
"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 5579934069cd..b4d1acd0753d 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
@@ -584,6 +584,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ApiAuth",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ApiAuth$ApiKeyConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ApiAuth$ApiKeyConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.ApiAuth$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.Artifact",
"queryAllDeclaredConstructors": true,
@@ -3509,6 +3545,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DatasetDistribution",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DatasetDistribution$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DatasetDistribution$DistributionBucket",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DatasetDistribution$DistributionBucket$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DatasetStats",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DatasetStats$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.DatasetVersion",
"queryAllDeclaredConstructors": true,
@@ -4895,6 +4985,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DistillationDataStats",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DistillationDataStats$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DistillationSpec",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.DistillationSpec$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.DoubleArray",
"queryAllDeclaredConstructors": true,
@@ -7487,6 +7631,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.GenerationConfig",
"queryAllDeclaredConstructors": true,
@@ -9314,6 +9476,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.JiraSource",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.JiraSource$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.JiraSource$JiraQueries",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.JiraSource$JiraQueries$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.JobState",
"queryAllDeclaredConstructors": true,
@@ -13418,6 +13616,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$NumericFilter",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$NumericFilter$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$NumericFilter$Operator",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$Parameters",
"queryAllDeclaredConstructors": true,
@@ -14318,6 +14543,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.PredictRequest",
"queryAllDeclaredConstructors": true,
@@ -14516,6 +14777,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.PublisherModel",
"queryAllDeclaredConstructors": true,
@@ -15569,6 +15848,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.RayLogsSpec",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.RayLogsSpec$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.RayMetricSpec",
"queryAllDeclaredConstructors": true,
@@ -16811,6 +17108,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.Scheduling$Strategy",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.Schema",
"queryAllDeclaredConstructors": true,
@@ -17225,6 +17531,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.SlackSource",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.SlackSource$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.SlackSource$SlackChannels",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.SlackSource$SlackChannels$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.SlackSource$SlackChannels$SlackChannel",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.aiplatform.v1beta1.SlackSource$SlackChannels$SlackChannel$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.aiplatform.v1beta1.SmoothGradConfig",
"queryAllDeclaredConstructors": true,
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java
index 3faab9187db8..e7e277cc1f3a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java
@@ -132,6 +132,10 @@ public void createEndpointTest() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -201,6 +205,10 @@ public void createEndpointTest2() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -270,6 +278,10 @@ public void createEndpointTest3() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -342,6 +354,10 @@ public void createEndpointTest4() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -414,6 +430,10 @@ public void getEndpointTest() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockEndpointService.addResponse(expectedResponse);
@@ -474,6 +494,10 @@ public void getEndpointTest2() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockEndpointService.addResponse(expectedResponse);
@@ -620,6 +644,10 @@ public void updateEndpointTest() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockEndpointService.addResponse(expectedResponse);
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 3e2c65419034..a7b596094b64 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
@@ -293,4 +293,90 @@ public void startNotebookRuntime(
Exception.class.getName())));
}
}
+
+ @Override
+ public void createNotebookExecutionJob(
+ CreateNotebookExecutionJobRequest 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 CreateNotebookExecutionJob, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
+ @Override
+ public void getNotebookExecutionJob(
+ GetNotebookExecutionJobRequest request,
+ StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof NotebookExecutionJob) {
+ requests.add(request);
+ responseObserver.onNext(((NotebookExecutionJob) 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 GetNotebookExecutionJob, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ NotebookExecutionJob.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
+ @Override
+ public void listNotebookExecutionJobs(
+ ListNotebookExecutionJobsRequest request,
+ StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof ListNotebookExecutionJobsResponse) {
+ requests.add(request);
+ responseObserver.onNext(((ListNotebookExecutionJobsResponse) 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 ListNotebookExecutionJobs, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ ListNotebookExecutionJobsResponse.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
+ @Override
+ public void deleteNotebookExecutionJob(
+ DeleteNotebookExecutionJobRequest 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 DeleteNotebookExecutionJob, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
+ }
+ }
}
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 5883e1c78936..00e02bcebe9c 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
@@ -17,6 +17,7 @@
package com.google.cloud.aiplatform.v1;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListLocationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookExecutionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse;
import static com.google.cloud.aiplatform.v1.NotebookServiceClient.ListNotebookRuntimesPagedResponse;
@@ -45,9 +46,11 @@
import com.google.protobuf.AbstractMessage;
import com.google.protobuf.Any;
import com.google.protobuf.ByteString;
+import com.google.protobuf.Duration;
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import com.google.protobuf.Timestamp;
+import com.google.rpc.Status;
import io.grpc.StatusRuntimeException;
import java.io.IOException;
import java.util.ArrayList;
@@ -1447,6 +1450,426 @@ public void startNotebookRuntimeExceptionTest2() throws Exception {
}
}
+ @Test
+ public void createNotebookExecutionJobTest() throws Exception {
+ NotebookExecutionJob expectedResponse =
+ NotebookExecutionJob.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setExecutionTimeout(Duration.newBuilder().build())
+ .setScheduleResourceName(
+ ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString())
+ .setJobState(JobState.forNumber(0))
+ .setStatus(Status.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .putAllLabels(new HashMap())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("createNotebookExecutionJobTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockNotebookService.addResponse(resultOperation);
+
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build();
+ String notebookExecutionJobId = "notebookExecutionJobId1598189627";
+
+ NotebookExecutionJob actualResponse =
+ client
+ .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId)
+ .get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateNotebookExecutionJobRequest actualRequest =
+ ((CreateNotebookExecutionJobRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(notebookExecutionJob, actualRequest.getNotebookExecutionJob());
+ Assert.assertEquals(notebookExecutionJobId, actualRequest.getNotebookExecutionJobId());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createNotebookExecutionJobExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build();
+ String notebookExecutionJobId = "notebookExecutionJobId1598189627";
+ client
+ .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId)
+ .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 createNotebookExecutionJobTest2() throws Exception {
+ NotebookExecutionJob expectedResponse =
+ NotebookExecutionJob.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setExecutionTimeout(Duration.newBuilder().build())
+ .setScheduleResourceName(
+ ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString())
+ .setJobState(JobState.forNumber(0))
+ .setStatus(Status.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .putAllLabels(new HashMap())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("createNotebookExecutionJobTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockNotebookService.addResponse(resultOperation);
+
+ String parent = "parent-995424086";
+ NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build();
+ String notebookExecutionJobId = "notebookExecutionJobId1598189627";
+
+ NotebookExecutionJob actualResponse =
+ client
+ .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId)
+ .get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateNotebookExecutionJobRequest actualRequest =
+ ((CreateNotebookExecutionJobRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertEquals(notebookExecutionJob, actualRequest.getNotebookExecutionJob());
+ Assert.assertEquals(notebookExecutionJobId, actualRequest.getNotebookExecutionJobId());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createNotebookExecutionJobExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build();
+ String notebookExecutionJobId = "notebookExecutionJobId1598189627";
+ client
+ .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId)
+ .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 getNotebookExecutionJobTest() throws Exception {
+ NotebookExecutionJob expectedResponse =
+ NotebookExecutionJob.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setExecutionTimeout(Duration.newBuilder().build())
+ .setScheduleResourceName(
+ ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString())
+ .setJobState(JobState.forNumber(0))
+ .setStatus(Status.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .putAllLabels(new HashMap())
+ .build();
+ mockNotebookService.addResponse(expectedResponse);
+
+ NotebookExecutionJobName name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+
+ NotebookExecutionJob actualResponse = client.getNotebookExecutionJob(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetNotebookExecutionJobRequest actualRequest =
+ ((GetNotebookExecutionJobRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void getNotebookExecutionJobExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ NotebookExecutionJobName name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+ client.getNotebookExecutionJob(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getNotebookExecutionJobTest2() throws Exception {
+ NotebookExecutionJob expectedResponse =
+ NotebookExecutionJob.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setExecutionTimeout(Duration.newBuilder().build())
+ .setScheduleResourceName(
+ ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString())
+ .setJobState(JobState.forNumber(0))
+ .setStatus(Status.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .putAllLabels(new HashMap())
+ .build();
+ mockNotebookService.addResponse(expectedResponse);
+
+ String name = "name3373707";
+
+ NotebookExecutionJob actualResponse = client.getNotebookExecutionJob(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetNotebookExecutionJobRequest actualRequest =
+ ((GetNotebookExecutionJobRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void getNotebookExecutionJobExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.getNotebookExecutionJob(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listNotebookExecutionJobsTest() throws Exception {
+ NotebookExecutionJob responsesElement = NotebookExecutionJob.newBuilder().build();
+ ListNotebookExecutionJobsResponse expectedResponse =
+ ListNotebookExecutionJobsResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllNotebookExecutionJobs(Arrays.asList(responsesElement))
+ .build();
+ mockNotebookService.addResponse(expectedResponse);
+
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+
+ ListNotebookExecutionJobsPagedResponse pagedListResponse =
+ client.listNotebookExecutionJobs(parent);
+
+ List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(expectedResponse.getNotebookExecutionJobsList().get(0), resources.get(0));
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ListNotebookExecutionJobsRequest actualRequest =
+ ((ListNotebookExecutionJobsRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void listNotebookExecutionJobsExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ client.listNotebookExecutionJobs(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listNotebookExecutionJobsTest2() throws Exception {
+ NotebookExecutionJob responsesElement = NotebookExecutionJob.newBuilder().build();
+ ListNotebookExecutionJobsResponse expectedResponse =
+ ListNotebookExecutionJobsResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllNotebookExecutionJobs(Arrays.asList(responsesElement))
+ .build();
+ mockNotebookService.addResponse(expectedResponse);
+
+ String parent = "parent-995424086";
+
+ ListNotebookExecutionJobsPagedResponse pagedListResponse =
+ client.listNotebookExecutionJobs(parent);
+
+ List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(expectedResponse.getNotebookExecutionJobsList().get(0), resources.get(0));
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ListNotebookExecutionJobsRequest actualRequest =
+ ((ListNotebookExecutionJobsRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void listNotebookExecutionJobsExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ client.listNotebookExecutionJobs(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void deleteNotebookExecutionJobTest() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("deleteNotebookExecutionJobTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockNotebookService.addResponse(resultOperation);
+
+ NotebookExecutionJobName name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+
+ client.deleteNotebookExecutionJobAsync(name).get();
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ DeleteNotebookExecutionJobRequest actualRequest =
+ ((DeleteNotebookExecutionJobRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void deleteNotebookExecutionJobExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ NotebookExecutionJobName name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+ client.deleteNotebookExecutionJobAsync(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 deleteNotebookExecutionJobTest2() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("deleteNotebookExecutionJobTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockNotebookService.addResponse(resultOperation);
+
+ String name = "name3373707";
+
+ client.deleteNotebookExecutionJobAsync(name).get();
+
+ List actualRequests = mockNotebookService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ DeleteNotebookExecutionJobRequest actualRequest =
+ ((DeleteNotebookExecutionJobRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void deleteNotebookExecutionJobExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockNotebookService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.deleteNotebookExecutionJobAsync(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 listLocationsTest() throws Exception {
Location responsesElement = Location.newBuilder().build();
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java
index c9bfbf6232b8..216e61a4a517 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java
@@ -130,6 +130,8 @@ public void createDatasetTest() throws Exception {
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -192,6 +194,8 @@ public void createDatasetTest2() throws Exception {
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -254,6 +258,8 @@ public void getDatasetTest() throws Exception {
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDatasetService.addResponse(expectedResponse);
@@ -305,6 +311,8 @@ public void getDatasetTest2() throws Exception {
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDatasetService.addResponse(expectedResponse);
@@ -356,6 +364,8 @@ public void updateDatasetTest() throws Exception {
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDatasetService.addResponse(expectedResponse);
@@ -764,6 +774,8 @@ public void createDatasetVersionTest() throws Exception {
.setDisplayName("displayName1714148973")
.setMetadata(Value.newBuilder().setBoolValue(true).build())
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -823,6 +835,8 @@ public void createDatasetVersionTest2() throws Exception {
.setDisplayName("displayName1714148973")
.setMetadata(Value.newBuilder().setBoolValue(true).build())
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -882,6 +896,8 @@ public void updateDatasetVersionTest() throws Exception {
.setDisplayName("displayName1714148973")
.setMetadata(Value.newBuilder().setBoolValue(true).build())
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDatasetService.addResponse(expectedResponse);
@@ -1021,6 +1037,8 @@ public void getDatasetVersionTest() throws Exception {
.setDisplayName("displayName1714148973")
.setMetadata(Value.newBuilder().setBoolValue(true).build())
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDatasetService.addResponse(expectedResponse);
@@ -1070,6 +1088,8 @@ public void getDatasetVersionTest2() throws Exception {
.setDisplayName("displayName1714148973")
.setMetadata(Value.newBuilder().setBoolValue(true).build())
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDatasetService.addResponse(expectedResponse);
@@ -1205,6 +1225,8 @@ public void restoreDatasetVersionTest() throws Exception {
.setDisplayName("displayName1714148973")
.setMetadata(Value.newBuilder().setBoolValue(true).build())
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -1263,6 +1285,8 @@ public void restoreDatasetVersionTest2() throws Exception {
.setDisplayName("displayName1714148973")
.setMetadata(Value.newBuilder().setBoolValue(true).build())
.setModelReference("modelReference-1524178398")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java
index 384f36dc5cbb..ca9d1d914a13 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java
@@ -121,6 +121,8 @@ public void createDeploymentResourcePoolTest() throws Exception {
.setServiceAccount("serviceAccount1079137720")
.setDisableContainerLogging(true)
.setCreateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -189,6 +191,8 @@ public void createDeploymentResourcePoolTest2() throws Exception {
.setServiceAccount("serviceAccount1079137720")
.setDisableContainerLogging(true)
.setCreateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -257,6 +261,8 @@ public void getDeploymentResourcePoolTest() throws Exception {
.setServiceAccount("serviceAccount1079137720")
.setDisableContainerLogging(true)
.setCreateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDeploymentResourcePoolService.addResponse(expectedResponse);
@@ -306,6 +312,8 @@ public void getDeploymentResourcePoolTest2() throws Exception {
.setServiceAccount("serviceAccount1079137720")
.setDisableContainerLogging(true)
.setCreateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockDeploymentResourcePoolService.addResponse(expectedResponse);
@@ -445,6 +453,8 @@ public void updateDeploymentResourcePoolTest() throws Exception {
.setServiceAccount("serviceAccount1079137720")
.setDisableContainerLogging(true)
.setCreateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
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 b7b8e5556a39..8bf70523a2f7 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
@@ -132,6 +132,10 @@ public void createEndpointTest() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -201,6 +205,10 @@ public void createEndpointTest2() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -270,6 +278,10 @@ public void createEndpointTest3() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -342,6 +354,10 @@ public void createEndpointTest4() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -414,6 +430,10 @@ public void getEndpointTest() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockEndpointService.addResponse(expectedResponse);
@@ -474,6 +494,10 @@ public void getEndpointTest2() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockEndpointService.addResponse(expectedResponse);
@@ -620,6 +644,10 @@ public void updateEndpointTest() throws Exception {
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
+ .setDedicatedEndpointEnabled(true)
+ .setDedicatedEndpointDns("dedicatedEndpointDns1492154853")
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockEndpointService.addResponse(expectedResponse);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClientTest.java
index 4801a3f56add..d1e6f13e7aec 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClientTest.java
@@ -108,6 +108,7 @@ public void createCachedContentTest() throws Exception {
CachedContent expectedResponse =
CachedContent.newBuilder()
.setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+ .setDisplayName("displayName1714148973")
.setModel("model104069929")
.setSystemInstruction(Content.newBuilder().build())
.addAllContents(new ArrayList())
@@ -156,6 +157,7 @@ public void createCachedContentTest2() throws Exception {
CachedContent expectedResponse =
CachedContent.newBuilder()
.setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+ .setDisplayName("displayName1714148973")
.setModel("model104069929")
.setSystemInstruction(Content.newBuilder().build())
.addAllContents(new ArrayList())
@@ -204,6 +206,7 @@ public void getCachedContentTest() throws Exception {
CachedContent expectedResponse =
CachedContent.newBuilder()
.setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+ .setDisplayName("displayName1714148973")
.setModel("model104069929")
.setSystemInstruction(Content.newBuilder().build())
.addAllContents(new ArrayList())
@@ -249,6 +252,7 @@ public void getCachedContentTest2() throws Exception {
CachedContent expectedResponse =
CachedContent.newBuilder()
.setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+ .setDisplayName("displayName1714148973")
.setModel("model104069929")
.setSystemInstruction(Content.newBuilder().build())
.addAllContents(new ArrayList())
@@ -294,6 +298,7 @@ public void updateCachedContentTest() throws Exception {
CachedContent expectedResponse =
CachedContent.newBuilder()
.setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+ .setDisplayName("displayName1714148973")
.setModel("model104069929")
.setSystemInstruction(Content.newBuilder().build())
.addAllContents(new ArrayList())
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClientTest.java
index 5fa90f9b531e..b26251c4d3f1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClientTest.java
@@ -123,6 +123,8 @@ public void createTuningJobTest() throws Exception {
.toString())
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
+ .setPipelineJob(
+ PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.build();
mockGenAiTuningService.addResponse(expectedResponse);
@@ -179,6 +181,8 @@ public void createTuningJobTest2() throws Exception {
.toString())
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
+ .setPipelineJob(
+ PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.build();
mockGenAiTuningService.addResponse(expectedResponse);
@@ -235,6 +239,8 @@ public void getTuningJobTest() throws Exception {
.toString())
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
+ .setPipelineJob(
+ PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.build();
mockGenAiTuningService.addResponse(expectedResponse);
@@ -288,6 +294,8 @@ public void getTuningJobTest2() throws Exception {
.toString())
.setTunedModel(TunedModel.newBuilder().build())
.setTuningDataStats(TuningDataStats.newBuilder().build())
+ .setPipelineJob(
+ PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.build();
mockGenAiTuningService.addResponse(expectedResponse);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java
index 83ce7235f1e3..e2fb16318e0d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java
@@ -2195,6 +2195,8 @@ public void createBatchPredictionJobTest() throws Exception {
.addAllModelMonitoringStatsAnomalies(new ArrayList())
.setModelMonitoringStatus(Status.newBuilder().build())
.setDisableContainerLogging(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockJobService.addResponse(expectedResponse);
@@ -2268,6 +2270,8 @@ public void createBatchPredictionJobTest2() throws Exception {
.addAllModelMonitoringStatsAnomalies(new ArrayList())
.setModelMonitoringStatus(Status.newBuilder().build())
.setDisableContainerLogging(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockJobService.addResponse(expectedResponse);
@@ -2341,6 +2345,8 @@ public void getBatchPredictionJobTest() throws Exception {
.addAllModelMonitoringStatsAnomalies(new ArrayList())
.setModelMonitoringStatus(Status.newBuilder().build())
.setDisableContainerLogging(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockJobService.addResponse(expectedResponse);
@@ -2413,6 +2419,8 @@ public void getBatchPredictionJobTest2() throws Exception {
.addAllModelMonitoringStatsAnomalies(new ArrayList())
.setModelMonitoringStatus(Status.newBuilder().build())
.setDisableContainerLogging(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockJobService.addResponse(expectedResponse);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClientTest.java
index fda9652e5054..d0ba44504ec4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClientTest.java
@@ -124,6 +124,8 @@ public void createModelMonitorTest() throws Exception {
.setModelMonitoringSchema(ModelMonitoringSchema.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -182,6 +184,8 @@ public void createModelMonitorTest2() throws Exception {
.setModelMonitoringSchema(ModelMonitoringSchema.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -240,6 +244,8 @@ public void updateModelMonitorTest() throws Exception {
.setModelMonitoringSchema(ModelMonitoringSchema.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -298,6 +304,8 @@ public void getModelMonitorTest() throws Exception {
.setModelMonitoringSchema(ModelMonitoringSchema.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockModelMonitoringService.addResponse(expectedResponse);
@@ -345,6 +353,8 @@ public void getModelMonitorTest2() throws Exception {
.setModelMonitoringSchema(ModelMonitoringSchema.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockModelMonitoringService.addResponse(expectedResponse);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java
index edc4c5b6e6c1..1cd25f4ef684 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java
@@ -123,6 +123,7 @@ public void createPersistentResourceTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.putAllLabels(new HashMap())
.setNetwork("network1843485230")
+ .setPscInterfaceConfig(PscInterfaceConfig.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build())
.setResourceRuntime(ResourceRuntime.newBuilder().build())
@@ -193,6 +194,7 @@ public void createPersistentResourceTest2() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.putAllLabels(new HashMap())
.setNetwork("network1843485230")
+ .setPscInterfaceConfig(PscInterfaceConfig.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build())
.setResourceRuntime(ResourceRuntime.newBuilder().build())
@@ -263,6 +265,7 @@ public void getPersistentResourceTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.putAllLabels(new HashMap())
.setNetwork("network1843485230")
+ .setPscInterfaceConfig(PscInterfaceConfig.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build())
.setResourceRuntime(ResourceRuntime.newBuilder().build())
@@ -318,6 +321,7 @@ public void getPersistentResourceTest2() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.putAllLabels(new HashMap())
.setNetwork("network1843485230")
+ .setPscInterfaceConfig(PscInterfaceConfig.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build())
.setResourceRuntime(ResourceRuntime.newBuilder().build())
@@ -549,6 +553,7 @@ public void updatePersistentResourceTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.putAllLabels(new HashMap())
.setNetwork("network1843485230")
+ .setPscInterfaceConfig(PscInterfaceConfig.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build())
.setResourceRuntime(ResourceRuntime.newBuilder().build())
@@ -614,6 +619,7 @@ public void rebootPersistentResourceTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.putAllLabels(new HashMap())
.setNetwork("network1843485230")
+ .setPscInterfaceConfig(PscInterfaceConfig.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build())
.setResourceRuntime(ResourceRuntime.newBuilder().build())
@@ -677,6 +683,7 @@ public void rebootPersistentResourceTest2() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.putAllLabels(new HashMap())
.setNetwork("network1843485230")
+ .setPscInterfaceConfig(PscInterfaceConfig.newBuilder().build())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build())
.setResourceRuntime(ResourceRuntime.newBuilder().build())
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java
index 070d45ee9b1e..d8cd2dd6cd62 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java
@@ -618,6 +618,8 @@ public void createPipelineJobTest() throws Exception {
.setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
.setScheduleName("scheduleName1161977282")
.setPreflightValidations(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockPipelineService.addResponse(expectedResponse);
@@ -681,6 +683,8 @@ public void createPipelineJobTest2() throws Exception {
.setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
.setScheduleName("scheduleName1161977282")
.setPreflightValidations(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockPipelineService.addResponse(expectedResponse);
@@ -744,6 +748,8 @@ public void getPipelineJobTest() throws Exception {
.setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
.setScheduleName("scheduleName1161977282")
.setPreflightValidations(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockPipelineService.addResponse(expectedResponse);
@@ -801,6 +807,8 @@ public void getPipelineJobTest2() throws Exception {
.setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
.setScheduleName("scheduleName1161977282")
.setPreflightValidations(true)
+ .setSatisfiesPzs(true)
+ .setSatisfiesPzi(true)
.build();
mockPipelineService.addResponse(expectedResponse);
diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java
index e3148eda155c..e68d99d561ab 100644
--- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java
+++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java
@@ -590,6 +590,211 @@ private NotebookServiceGrpc() {}
return getStartNotebookRuntimeMethod;
}
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>
+ getCreateNotebookExecutionJobMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateNotebookExecutionJob",
+ requestType = com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.class,
+ responseType = com.google.longrunning.Operation.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>
+ getCreateNotebookExecutionJobMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>
+ getCreateNotebookExecutionJobMethod;
+ if ((getCreateNotebookExecutionJobMethod =
+ NotebookServiceGrpc.getCreateNotebookExecutionJobMethod)
+ == null) {
+ synchronized (NotebookServiceGrpc.class) {
+ if ((getCreateNotebookExecutionJobMethod =
+ NotebookServiceGrpc.getCreateNotebookExecutionJobMethod)
+ == null) {
+ NotebookServiceGrpc.getCreateNotebookExecutionJobMethod =
+ getCreateNotebookExecutionJobMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "CreateNotebookExecutionJob"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.longrunning.Operation.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new NotebookServiceMethodDescriptorSupplier("CreateNotebookExecutionJob"))
+ .build();
+ }
+ }
+ }
+ return getCreateNotebookExecutionJobMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest,
+ com.google.cloud.aiplatform.v1.NotebookExecutionJob>
+ getGetNotebookExecutionJobMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetNotebookExecutionJob",
+ requestType = com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.class,
+ responseType = com.google.cloud.aiplatform.v1.NotebookExecutionJob.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest,
+ com.google.cloud.aiplatform.v1.NotebookExecutionJob>
+ getGetNotebookExecutionJobMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest,
+ com.google.cloud.aiplatform.v1.NotebookExecutionJob>
+ getGetNotebookExecutionJobMethod;
+ if ((getGetNotebookExecutionJobMethod = NotebookServiceGrpc.getGetNotebookExecutionJobMethod)
+ == null) {
+ synchronized (NotebookServiceGrpc.class) {
+ if ((getGetNotebookExecutionJobMethod =
+ NotebookServiceGrpc.getGetNotebookExecutionJobMethod)
+ == null) {
+ NotebookServiceGrpc.getGetNotebookExecutionJobMethod =
+ getGetNotebookExecutionJobMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "GetNotebookExecutionJob"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.aiplatform.v1.NotebookExecutionJob
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new NotebookServiceMethodDescriptorSupplier("GetNotebookExecutionJob"))
+ .build();
+ }
+ }
+ }
+ return getGetNotebookExecutionJobMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest,
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>
+ getListNotebookExecutionJobsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ListNotebookExecutionJobs",
+ requestType = com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.class,
+ responseType = com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest,
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>
+ getListNotebookExecutionJobsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest,
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>
+ getListNotebookExecutionJobsMethod;
+ if ((getListNotebookExecutionJobsMethod =
+ NotebookServiceGrpc.getListNotebookExecutionJobsMethod)
+ == null) {
+ synchronized (NotebookServiceGrpc.class) {
+ if ((getListNotebookExecutionJobsMethod =
+ NotebookServiceGrpc.getListNotebookExecutionJobsMethod)
+ == null) {
+ NotebookServiceGrpc.getListNotebookExecutionJobsMethod =
+ getListNotebookExecutionJobsMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "ListNotebookExecutionJobs"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new NotebookServiceMethodDescriptorSupplier("ListNotebookExecutionJobs"))
+ .build();
+ }
+ }
+ }
+ return getListNotebookExecutionJobsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>
+ getDeleteNotebookExecutionJobMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteNotebookExecutionJob",
+ requestType = com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.class,
+ responseType = com.google.longrunning.Operation.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>
+ getDeleteNotebookExecutionJobMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>
+ getDeleteNotebookExecutionJobMethod;
+ if ((getDeleteNotebookExecutionJobMethod =
+ NotebookServiceGrpc.getDeleteNotebookExecutionJobMethod)
+ == null) {
+ synchronized (NotebookServiceGrpc.class) {
+ if ((getDeleteNotebookExecutionJobMethod =
+ NotebookServiceGrpc.getDeleteNotebookExecutionJobMethod)
+ == null) {
+ NotebookServiceGrpc.getDeleteNotebookExecutionJobMethod =
+ getDeleteNotebookExecutionJobMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "DeleteNotebookExecutionJob"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.longrunning.Operation.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new NotebookServiceMethodDescriptorSupplier("DeleteNotebookExecutionJob"))
+ .build();
+ }
+ }
+ }
+ return getDeleteNotebookExecutionJobMethod;
+ }
+
/** Creates a new async stub that supports all call types for the service */
public static NotebookServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
@@ -800,6 +1005,65 @@ default void startNotebookRuntime(
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getStartNotebookRuntimeMethod(), responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * Creates a NotebookExecutionJob.
+ *
+ */
+ default void createNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getCreateNotebookExecutionJobMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets a NotebookExecutionJob.
+ *
+ */
+ default void getNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getGetNotebookExecutionJobMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists NotebookExecutionJobs in a Location.
+ *
+ */
+ default void listNotebookExecutionJobs(
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getListNotebookExecutionJobsMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a NotebookExecutionJob.
+ *
+ */
+ default void deleteNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getDeleteNotebookExecutionJobMethod(), responseObserver);
+ }
}
/**
@@ -1018,6 +1282,73 @@ public void startNotebookRuntime(
request,
responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * Creates a NotebookExecutionJob.
+ *
+ */
+ public void createNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getCreateNotebookExecutionJobMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets a NotebookExecutionJob.
+ *
+ */
+ public void getNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetNotebookExecutionJobMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists NotebookExecutionJobs in a Location.
+ *
+ */
+ public void listNotebookExecutionJobs(
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getListNotebookExecutionJobsMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a NotebookExecutionJob.
+ *
+ */
+ public void deleteNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getDeleteNotebookExecutionJobMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
}
/**
@@ -1183,6 +1514,59 @@ public com.google.longrunning.Operation startNotebookRuntime(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getStartNotebookRuntimeMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * Creates a NotebookExecutionJob.
+ *
+ */
+ public com.google.longrunning.Operation createNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getCreateNotebookExecutionJobMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets a NotebookExecutionJob.
+ *
+ */
+ public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetNotebookExecutionJobMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists NotebookExecutionJobs in a Location.
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse
+ listNotebookExecutionJobs(
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getListNotebookExecutionJobsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a NotebookExecutionJob.
+ *
+ */
+ public com.google.longrunning.Operation deleteNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getDeleteNotebookExecutionJobMethod(), getCallOptions(), request);
+ }
}
/**
@@ -1361,6 +1745,64 @@ protected NotebookServiceFutureStub build(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getStartNotebookRuntimeMethod(), getCallOptions()), request);
}
+
+ /**
+ *
+ *
+ *
+ * Creates a NotebookExecutionJob.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ createNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getCreateNotebookExecutionJobMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets a NotebookExecutionJob.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.aiplatform.v1.NotebookExecutionJob>
+ getNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetNotebookExecutionJobMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists NotebookExecutionJobs in a Location.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>
+ listNotebookExecutionJobs(
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getListNotebookExecutionJobsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a NotebookExecutionJob.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ deleteNotebookExecutionJob(
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getDeleteNotebookExecutionJobMethod(), getCallOptions()), request);
+ }
}
private static final int METHODID_CREATE_NOTEBOOK_RUNTIME_TEMPLATE = 0;
@@ -1374,6 +1816,10 @@ protected NotebookServiceFutureStub build(
private static final int METHODID_DELETE_NOTEBOOK_RUNTIME = 8;
private static final int METHODID_UPGRADE_NOTEBOOK_RUNTIME = 9;
private static final int METHODID_START_NOTEBOOK_RUNTIME = 10;
+ private static final int METHODID_CREATE_NOTEBOOK_EXECUTION_JOB = 11;
+ private static final int METHODID_GET_NOTEBOOK_EXECUTION_JOB = 12;
+ private static final int METHODID_LIST_NOTEBOOK_EXECUTION_JOBS = 13;
+ private static final int METHODID_DELETE_NOTEBOOK_EXECUTION_JOB = 14;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -1454,6 +1900,29 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
(com.google.cloud.aiplatform.v1.StartNotebookRuntimeRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
+ case METHODID_CREATE_NOTEBOOK_EXECUTION_JOB:
+ serviceImpl.createNotebookExecutionJob(
+ (com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_NOTEBOOK_EXECUTION_JOB:
+ serviceImpl.getNotebookExecutionJob(
+ (com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
+ break;
+ case METHODID_LIST_NOTEBOOK_EXECUTION_JOBS:
+ serviceImpl.listNotebookExecutionJobs(
+ (com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) request,
+ (io.grpc.stub.StreamObserver<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>)
+ responseObserver);
+ break;
+ case METHODID_DELETE_NOTEBOOK_EXECUTION_JOB:
+ serviceImpl.deleteNotebookExecutionJob(
+ (com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
default:
throw new AssertionError();
}
@@ -1545,6 +2014,34 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
new MethodHandlers<
com.google.cloud.aiplatform.v1.StartNotebookRuntimeRequest,
com.google.longrunning.Operation>(service, METHODID_START_NOTEBOOK_RUNTIME)))
+ .addMethod(
+ getCreateNotebookExecutionJobMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>(
+ service, METHODID_CREATE_NOTEBOOK_EXECUTION_JOB)))
+ .addMethod(
+ getGetNotebookExecutionJobMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest,
+ com.google.cloud.aiplatform.v1.NotebookExecutionJob>(
+ service, METHODID_GET_NOTEBOOK_EXECUTION_JOB)))
+ .addMethod(
+ getListNotebookExecutionJobsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest,
+ com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse>(
+ service, METHODID_LIST_NOTEBOOK_EXECUTION_JOBS)))
+ .addMethod(
+ getDeleteNotebookExecutionJobMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest,
+ com.google.longrunning.Operation>(
+ service, METHODID_DELETE_NOTEBOOK_EXECUTION_JOB)))
.build();
}
@@ -1607,6 +2104,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getDeleteNotebookRuntimeMethod())
.addMethod(getUpgradeNotebookRuntimeMethod())
.addMethod(getStartNotebookRuntimeMethod())
+ .addMethod(getCreateNotebookExecutionJobMethod())
+ .addMethod(getGetNotebookExecutionJobMethod())
+ .addMethod(getListNotebookExecutionJobsMethod())
+ .addMethod(getDeleteNotebookExecutionJobMethod())
.build();
}
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java
index 39c0d1a0a05a..6e067a216bc5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java
@@ -46,8 +46,9 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
* Nvidia Tesla K80 GPU.
*
*
- * NVIDIA_TESLA_K80 = 1;
+ * NVIDIA_TESLA_K80 = 1 [deprecated = true];
*/
+ @java.lang.Deprecated
NVIDIA_TESLA_K80(1),
/**
*
@@ -189,9 +190,9 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
* Nvidia Tesla K80 GPU.
*
*
- * NVIDIA_TESLA_K80 = 1;
+ * NVIDIA_TESLA_K80 = 1 [deprecated = true];
*/
- public static final int NVIDIA_TESLA_K80_VALUE = 1;
+ @java.lang.Deprecated public static final int NVIDIA_TESLA_K80_VALUE = 1;
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
index 29b845366a65..d98964f7adfc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
@@ -38,20 +38,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n1google/cloud/aiplatform/v1/accelerator"
+ "_type.proto\022\032google.cloud.aiplatform.v1*"
- + "\257\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
- + "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N"
- + "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020"
- + "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T"
- + "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA_A10"
- + "0_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H100_8"
- + "0GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_"
- + "POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\322\001\n\036com.google"
- + ".cloud.aiplatform.v1B\024AcceleratorTypePro"
- + "toP\001Z>cloud.google.com/go/aiplatform/api"
- + "v1/aiplatformpb;aiplatformpb\252\002\032Google.Cl"
- + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf"
- + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006"
- + "proto3"
+ + "\263\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
+ + "UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_K80\020\001\032\002\010\001\022"
+ + "\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V"
+ + "100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TES"
+ + "LA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA"
+ + "_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H1"
+ + "00_80GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU"
+ + "_V4_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\322\001\n\036com.go"
+ + "ogle.cloud.aiplatform.v1B\024AcceleratorTyp"
+ + "eProtoP\001Z>cloud.google.com/go/aiplatform"
+ + "/apiv1/aiplatformpb;aiplatformpb\252\002\032Googl"
+ + "e.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIP"
+ + "latform\\V1\352\002\035Google::Cloud::AIPlatform::"
+ + "V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java
index 429b761d1ca5..beda4e429c61 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java
@@ -464,6 +464,24 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder() {
: content_;
}
+ public static final int SCORE_FIELD_NUMBER = 8;
+ private double score_ = 0D;
+ /**
+ *
+ *
+ *
+ * Output only. Confidence score of the candidate.
+ *
+ *
+ * double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The score.
+ */
+ @java.lang.Override
+ public double getScore() {
+ return score_;
+ }
+
public static final int FINISH_REASON_FIELD_NUMBER = 3;
private int finishReason_ = 0;
/**
@@ -816,6 +834,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(7, getGroundingMetadata());
}
+ if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
+ output.writeDouble(8, score_);
+ }
getUnknownFields().writeTo(output);
}
@@ -848,6 +869,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGroundingMetadata());
}
+ if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, score_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -868,6 +892,8 @@ public boolean equals(final java.lang.Object obj) {
if (hasContent()) {
if (!getContent().equals(other.getContent())) return false;
}
+ if (java.lang.Double.doubleToLongBits(getScore())
+ != java.lang.Double.doubleToLongBits(other.getScore())) return false;
if (finishReason_ != other.finishReason_) return false;
if (!getSafetyRatingsList().equals(other.getSafetyRatingsList())) return false;
if (hasFinishMessage() != other.hasFinishMessage()) return false;
@@ -899,6 +925,10 @@ public int hashCode() {
hash = (37 * hash) + CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getContent().hashCode();
}
+ hash = (37 * hash) + SCORE_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getScore()));
hash = (37 * hash) + FINISH_REASON_FIELD_NUMBER;
hash = (53 * hash) + finishReason_;
if (getSafetyRatingsCount() > 0) {
@@ -1074,6 +1104,7 @@ public Builder clear() {
contentBuilder_.dispose();
contentBuilder_ = null;
}
+ score_ = 0D;
finishReason_ = 0;
if (safetyRatingsBuilder_ == null) {
safetyRatings_ = java.util.Collections.emptyList();
@@ -1081,7 +1112,7 @@ public Builder clear() {
safetyRatings_ = null;
safetyRatingsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
finishMessage_ = "";
citationMetadata_ = null;
if (citationMetadataBuilder_ != null) {
@@ -1130,9 +1161,9 @@ public com.google.cloud.aiplatform.v1.Candidate buildPartial() {
private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Candidate result) {
if (safetyRatingsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
safetyRatings_ = java.util.Collections.unmodifiableList(safetyRatings_);
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
}
result.safetyRatings_ = safetyRatings_;
} else {
@@ -1151,18 +1182,21 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Candidate result) {
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.score_ = score_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.finishReason_ = finishReason_;
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.finishMessage_ = finishMessage_;
to_bitField0_ |= 0x00000002;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.citationMetadata_ =
citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.groundingMetadata_ =
groundingMetadataBuilder_ == null
? groundingMetadata_
@@ -1223,6 +1257,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
if (other.hasContent()) {
mergeContent(other.getContent());
}
+ if (other.getScore() != 0D) {
+ setScore(other.getScore());
+ }
if (other.finishReason_ != 0) {
setFinishReasonValue(other.getFinishReasonValue());
}
@@ -1230,7 +1267,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
if (!other.safetyRatings_.isEmpty()) {
if (safetyRatings_.isEmpty()) {
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSafetyRatingsIsMutable();
safetyRatings_.addAll(other.safetyRatings_);
@@ -1243,7 +1280,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
safetyRatingsBuilder_.dispose();
safetyRatingsBuilder_ = null;
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
safetyRatingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSafetyRatingsFieldBuilder()
@@ -1255,7 +1292,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
}
if (other.hasFinishMessage()) {
finishMessage_ = other.finishMessage_;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasCitationMetadata()) {
@@ -1305,7 +1342,7 @@ public Builder mergeFrom(
case 24:
{
finishReason_ = input.readEnum();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 24
case 34:
@@ -1324,23 +1361,29 @@ public Builder mergeFrom(
case 42:
{
finishMessage_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 42
case 50:
{
input.readMessage(
getCitationMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 50
case 58:
{
input.readMessage(
getGroundingMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 58
+ case 65:
+ {
+ score_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 65
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1616,6 +1659,59 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder() {
return contentBuilder_;
}
+ private double score_;
+ /**
+ *
+ *
+ *
+ * Output only. Confidence score of the candidate.
+ *
+ *
+ * double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The score.
+ */
+ @java.lang.Override
+ public double getScore() {
+ return score_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Confidence score of the candidate.
+ *
+ *
+ * double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The score to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScore(double value) {
+
+ score_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Confidence score of the candidate.
+ *
+ *
+ * double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearScore() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ score_ = 0D;
+ onChanged();
+ return this;
+ }
+
private int finishReason_ = 0;
/**
*
@@ -1652,7 +1748,7 @@ public int getFinishReasonValue() {
*/
public Builder setFinishReasonValue(int value) {
finishReason_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1697,7 +1793,7 @@ public Builder setFinishReason(com.google.cloud.aiplatform.v1.Candidate.FinishRe
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
finishReason_ = value.getNumber();
onChanged();
return this;
@@ -1717,7 +1813,7 @@ public Builder setFinishReason(com.google.cloud.aiplatform.v1.Candidate.FinishRe
* @return This builder for chaining.
*/
public Builder clearFinishReason() {
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
finishReason_ = 0;
onChanged();
return this;
@@ -1727,10 +1823,10 @@ public Builder clearFinishReason() {
java.util.Collections.emptyList();
private void ensureSafetyRatingsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
+ if (!((bitField0_ & 0x00000010) != 0)) {
safetyRatings_ =
new java.util.ArrayList(safetyRatings_);
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
}
}
@@ -1990,7 +2086,7 @@ public Builder addAllSafetyRatings(
public Builder clearSafetyRatings() {
if (safetyRatingsBuilder_ == null) {
safetyRatings_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
safetyRatingsBuilder_.clear();
@@ -2142,7 +2238,7 @@ public com.google.cloud.aiplatform.v1.SafetyRating.Builder addSafetyRatingsBuild
com.google.cloud.aiplatform.v1.SafetyRating.Builder,
com.google.cloud.aiplatform.v1.SafetyRatingOrBuilder>(
safetyRatings_,
- ((bitField0_ & 0x00000008) != 0),
+ ((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
safetyRatings_ = null;
@@ -2164,7 +2260,7 @@ public com.google.cloud.aiplatform.v1.SafetyRating.Builder addSafetyRatingsBuild
* @return Whether the finishMessage field is set.
*/
public boolean hasFinishMessage() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -2230,7 +2326,7 @@ public Builder setFinishMessage(java.lang.String value) {
throw new NullPointerException();
}
finishMessage_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2248,7 +2344,7 @@ public Builder setFinishMessage(java.lang.String value) {
*/
public Builder clearFinishMessage() {
finishMessage_ = getDefaultInstance().getFinishMessage();
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -2271,7 +2367,7 @@ public Builder setFinishMessageBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
finishMessage_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2296,7 +2392,7 @@ public Builder setFinishMessageBytes(com.google.protobuf.ByteString value) {
* @return Whether the citationMetadata field is set.
*/
public boolean hasCitationMetadata() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -2340,7 +2436,7 @@ public Builder setCitationMetadata(com.google.cloud.aiplatform.v1.CitationMetada
} else {
citationMetadataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2362,7 +2458,7 @@ public Builder setCitationMetadata(
} else {
citationMetadataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2379,7 +2475,7 @@ public Builder setCitationMetadata(
*/
public Builder mergeCitationMetadata(com.google.cloud.aiplatform.v1.CitationMetadata value) {
if (citationMetadataBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
+ if (((bitField0_ & 0x00000040) != 0)
&& citationMetadata_ != null
&& citationMetadata_
!= com.google.cloud.aiplatform.v1.CitationMetadata.getDefaultInstance()) {
@@ -2391,7 +2487,7 @@ public Builder mergeCitationMetadata(com.google.cloud.aiplatform.v1.CitationMeta
citationMetadataBuilder_.mergeFrom(value);
}
if (citationMetadata_ != null) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
return this;
@@ -2408,7 +2504,7 @@ public Builder mergeCitationMetadata(com.google.cloud.aiplatform.v1.CitationMeta
*
*/
public Builder clearCitationMetadata() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
citationMetadata_ = null;
if (citationMetadataBuilder_ != null) {
citationMetadataBuilder_.dispose();
@@ -2429,7 +2525,7 @@ public Builder clearCitationMetadata() {
*
*/
public com.google.cloud.aiplatform.v1.CitationMetadata.Builder getCitationMetadataBuilder() {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return getCitationMetadataFieldBuilder().getBuilder();
}
@@ -2501,7 +2597,7 @@ public com.google.cloud.aiplatform.v1.CitationMetadataOrBuilder getCitationMetad
* @return Whether the groundingMetadata field is set.
*/
public boolean hasGroundingMetadata() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -2545,7 +2641,7 @@ public Builder setGroundingMetadata(com.google.cloud.aiplatform.v1.GroundingMeta
} else {
groundingMetadataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2567,7 +2663,7 @@ public Builder setGroundingMetadata(
} else {
groundingMetadataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2584,7 +2680,7 @@ public Builder setGroundingMetadata(
*/
public Builder mergeGroundingMetadata(com.google.cloud.aiplatform.v1.GroundingMetadata value) {
if (groundingMetadataBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
+ if (((bitField0_ & 0x00000080) != 0)
&& groundingMetadata_ != null
&& groundingMetadata_
!= com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance()) {
@@ -2596,7 +2692,7 @@ public Builder mergeGroundingMetadata(com.google.cloud.aiplatform.v1.GroundingMe
groundingMetadataBuilder_.mergeFrom(value);
}
if (groundingMetadata_ != null) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
return this;
@@ -2613,7 +2709,7 @@ public Builder mergeGroundingMetadata(com.google.cloud.aiplatform.v1.GroundingMe
*
*/
public Builder clearGroundingMetadata() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
groundingMetadata_ = null;
if (groundingMetadataBuilder_ != null) {
groundingMetadataBuilder_.dispose();
@@ -2634,7 +2730,7 @@ public Builder clearGroundingMetadata() {
*
*/
public com.google.cloud.aiplatform.v1.GroundingMetadata.Builder getGroundingMetadataBuilder() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return getGroundingMetadataFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java
index dfcd5f067fa6..74a54556e349 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java
@@ -78,6 +78,19 @@ public interface CandidateOrBuilder
*/
com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder();
+ /**
+ *
+ *
+ *
+ * Output only. Confidence score of the candidate.
+ *
+ *
+ * double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The score.
+ */
+ double getScore();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
index 4c93494292d7..1e9fff336568 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
@@ -72,6 +72,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Candidate_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_Segment_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingSupport_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -158,39 +178,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 "
+ "\001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001("
+ "\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publicat"
- + "ion_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\203"
+ + "ion_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\227"
+ "\005\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0229\n\007cont"
+ "ent\030\002 \001(\0132#.google.cloud.aiplatform.v1.C"
- + "ontentB\003\340A\003\022N\n\rfinish_reason\030\003 \001(\01622.goo"
- + "gle.cloud.aiplatform.v1.Candidate.Finish"
- + "ReasonB\003\340A\003\022E\n\016safety_ratings\030\004 \003(\0132(.go"
- + "ogle.cloud.aiplatform.v1.SafetyRatingB\003\340"
- + "A\003\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021"
- + "citation_metadata\030\006 \001(\0132,.google.cloud.a"
- + "iplatform.v1.CitationMetadataB\003\340A\003\022N\n\022gr"
- + "ounding_metadata\030\007 \001(\0132-.google.cloud.ai"
- + "platform.v1.GroundingMetadataB\003\340A\003\"\274\001\n\014F"
- + "inishReason\022\035\n\031FINISH_REASON_UNSPECIFIED"
- + "\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003"
- + "\022\016\n\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST"
- + "\020\006\022\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027"
- + "MALFORMED_FUNCTION_CALL\020\tB\021\n\017_finish_mes"
- + "sage\"\237\001\n\021GroundingMetadata\022\037\n\022web_search"
- + "_queries\030\001 \003(\tB\003\340A\001\022R\n\022search_entry_poin"
- + "t\030\004 \001(\0132,.google.cloud.aiplatform.v1.Sea"
- + "rchEntryPointB\003\340A\001H\000\210\001\001B\025\n\023_search_entry"
- + "_point\"H\n\020SearchEntryPoint\022\035\n\020rendered_c"
- + "ontent\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001"
- + "*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UNSPE"
- + "CIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022"
- + "#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030"
- + "HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEG"
- + "ORY_SEXUALLY_EXPLICIT\020\004B\312\001\n\036com.google.c"
- + "loud.aiplatform.v1B\014ContentProtoP\001Z>clou"
- + "d.google.com/go/aiplatform/apiv1/aiplatf"
- + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat"
- + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G"
- + "oogle::Cloud::AIPlatform::V1b\006proto3"
+ + "ontentB\003\340A\003\022\022\n\005score\030\010 \001(\001B\003\340A\003\022N\n\rfinis"
+ + "h_reason\030\003 \001(\01622.google.cloud.aiplatform"
+ + ".v1.Candidate.FinishReasonB\003\340A\003\022E\n\016safet"
+ + "y_ratings\030\004 \003(\0132(.google.cloud.aiplatfor"
+ + "m.v1.SafetyRatingB\003\340A\003\022 \n\016finish_message"
+ + "\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021citation_metadata\030\006 "
+ + "\001(\0132,.google.cloud.aiplatform.v1.Citatio"
+ + "nMetadataB\003\340A\003\022N\n\022grounding_metadata\030\007 \001"
+ + "(\0132-.google.cloud.aiplatform.v1.Groundin"
+ + "gMetadataB\003\340A\003\"\274\001\n\014FinishReason\022\035\n\031FINIS"
+ + "H_REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_"
+ + "TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t\n\005"
+ + "OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITED_CON"
+ + "TENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MALFORMED_FUNCTION_C"
+ + "ALL\020\tB\021\n\017_finish_message\"g\n\007Segment\022\027\n\np"
+ + "art_index\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001("
+ + "\005B\003\340A\003\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004"
+ + " \001(\tB\003\340A\003\"\302\002\n\016GroundingChunk\022=\n\003web\030\001 \001("
+ + "\0132..google.cloud.aiplatform.v1.Grounding"
+ + "Chunk.WebH\000\022X\n\021retrieved_context\030\002 \001(\0132;"
+ + ".google.cloud.aiplatform.v1.GroundingChu"
+ + "nk.RetrievedContextH\000\032=\n\003Web\022\020\n\003uri\030\001 \001("
+ + "\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_t"
+ + "itle\032J\n\020RetrievedContext\022\020\n\003uri\030\001 \001(\tH\000\210"
+ + "\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_title"
+ + "B\014\n\nchunk_type\"\225\001\n\020GroundingSupport\0229\n\007s"
+ + "egment\030\001 \001(\0132#.google.cloud.aiplatform.v"
+ + "1.SegmentH\000\210\001\001\022\037\n\027grounding_chunk_indice"
+ + "s\030\002 \003(\005\022\031\n\021confidence_scores\030\003 \003(\002B\n\n\010_s"
+ + "egment\"\264\002\n\021GroundingMetadata\022\037\n\022web_sear"
+ + "ch_queries\030\001 \003(\tB\003\340A\001\022R\n\022search_entry_po"
+ + "int\030\004 \001(\0132,.google.cloud.aiplatform.v1.S"
+ + "earchEntryPointB\003\340A\001H\000\210\001\001\022D\n\020grounding_c"
+ + "hunks\030\005 \003(\0132*.google.cloud.aiplatform.v1"
+ + ".GroundingChunk\022M\n\022grounding_supports\030\006 "
+ + "\003(\0132,.google.cloud.aiplatform.v1.Groundi"
+ + "ngSupportB\003\340A\001B\025\n\023_search_entry_point\"H\n"
+ + "\020SearchEntryPoint\022\035\n\020rendered_content\030\001 "
+ + "\001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001*\264\001\n\014Harm"
+ + "Category\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022"
+ + "\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_C"
+ + "ATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATE"
+ + "GORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUA"
+ + "LLY_EXPLICIT\020\004B\312\001\n\036com.google.cloud.aipl"
+ + "atform.v1B\014ContentProtoP\001Z>cloud.google."
+ + "com/go/aiplatform/apiv1/aiplatformpb;aip"
+ + "latformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002"
+ + "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl"
+ + "oud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -306,22 +345,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Index",
"Content",
+ "Score",
"FinishReason",
"SafetyRatings",
"FinishMessage",
"CitationMetadata",
"GroundingMetadata",
});
- internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor =
+ internal_static_google_cloud_aiplatform_v1_Segment_descriptor =
getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_Segment_descriptor,
+ new java.lang.String[] {
+ "PartIndex", "StartIndex", "EndIndex", "Text",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor,
+ new java.lang.String[] {
+ "Web", "RetrievedContext", "ChunkType",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_descriptor =
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_descriptor,
+ new java.lang.String[] {
+ "Uri", "Title",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_descriptor =
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_descriptor,
+ new java.lang.String[] {
+ "Uri", "Title",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_cloud_aiplatform_v1_GroundingSupport_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor,
+ new java.lang.String[] {
+ "Segment", "GroundingChunkIndices", "ConfidenceScores",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor,
new java.lang.String[] {
- "WebSearchQueries", "SearchEntryPoint",
+ "WebSearchQueries", "SearchEntryPoint", "GroundingChunks", "GroundingSupports",
});
internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequest.java
index df9351dd8efb..514905993d8d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequest.java
@@ -43,6 +43,7 @@ private CountTokensRequest() {
model_ = "";
instances_ = java.util.Collections.emptyList();
contents_ = java.util.Collections.emptyList();
+ tools_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -66,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.CountTokensRequest.Builder.class);
}
+ private int bitField0_;
public static final int ENDPOINT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -133,12 +135,12 @@ public com.google.protobuf.ByteString getEndpointBytes() {
*
*
*
- * Required. The name of the publisher model requested to serve the
+ * Optional. The name of the publisher model requested to serve the
* prediction. Format:
* `projects/{project}/locations/{location}/publishers/*/models/*`
*
*
- * string model = 3 [(.google.api.field_behavior) = REQUIRED];
+ * string model = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The model.
*/
@@ -158,12 +160,12 @@ public java.lang.String getModel() {
*
*
*
- * Required. The name of the publisher model requested to serve the
+ * Optional. The name of the publisher model requested to serve the
* prediction. Format:
* `projects/{project}/locations/{location}/publishers/*/models/*`
*
*
- * string model = 3 [(.google.api.field_behavior) = REQUIRED];
+ * string model = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for model.
*/
@@ -188,11 +190,11 @@ public com.google.protobuf.ByteString getModelBytes() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -203,11 +205,11 @@ public java.util.List getInstancesList() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -218,11 +220,11 @@ public java.util.List extends com.google.protobuf.ValueOrBuilder> getInstances
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -233,11 +235,11 @@ public int getInstancesCount() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -248,11 +250,11 @@ public com.google.protobuf.Value getInstances(int index) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -268,11 +270,11 @@ public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index) {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -283,11 +285,11 @@ public java.util.List getContentsList()
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -299,11 +301,11 @@ public java.util.List getContentsList()
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -314,11 +316,11 @@ public int getContentsCount() {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -329,11 +331,11 @@ public com.google.cloud.aiplatform.v1.Content getContents(int index) {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -341,6 +343,174 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int
return contents_.get(index);
}
+ public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 5;
+ private com.google.cloud.aiplatform.v1.Content systemInstruction_;
+ /**
+ *
+ *
+ *
+ * Optional. The user provided system instructions for the model.
+ * Note: only text should be used in parts and content in each part will be in
+ * a separate paragraph.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the systemInstruction field is set.
+ */
+ @java.lang.Override
+ public boolean hasSystemInstruction() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The user provided system instructions for the model.
+ * Note: only text should be used in parts and content in each part will be in
+ * a separate paragraph.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The systemInstruction.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Content getSystemInstruction() {
+ return systemInstruction_ == null
+ ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance()
+ : systemInstruction_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The user provided system instructions for the model.
+ * Note: only text should be used in parts and content in each part will be in
+ * a separate paragraph.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBuilder() {
+ return systemInstruction_ == null
+ ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance()
+ : systemInstruction_;
+ }
+
+ public static final int TOOLS_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private java.util.List tools_;
+ /**
+ *
+ *
+ *
+ * Optional. A list of `Tools` the model may use to generate the next
+ * response.
+ *
+ * A `Tool` is a piece of code that enables the system to interact with
+ * external systems to perform an action, or set of actions, outside of
+ * knowledge and scope of the model.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List getToolsList() {
+ return tools_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of `Tools` the model may use to generate the next
+ * response.
+ *
+ * A `Tool` is a piece of code that enables the system to interact with
+ * external systems to perform an action, or set of actions, outside of
+ * knowledge and scope of the model.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ return tools_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of `Tools` the model may use to generate the next
+ * response.
+ *
+ * A `Tool` is a piece of code that enables the system to interact with
+ * external systems to perform an action, or set of actions, outside of
+ * knowledge and scope of the model.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getToolsCount() {
+ return tools_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of `Tools` the model may use to generate the next
+ * response.
+ *
+ * A `Tool` is a piece of code that enables the system to interact with
+ * external systems to perform an action, or set of actions, outside of
+ * knowledge and scope of the model.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Tool getTools(int index) {
+ return tools_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of `Tools` the model may use to generate the next
+ * response.
+ *
+ * A `Tool` is a piece of code that enables the system to interact with
+ * external systems to perform an action, or set of actions, outside of
+ * knowledge and scope of the model.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) {
+ return tools_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -367,6 +537,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < contents_.size(); i++) {
output.writeMessage(4, contents_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(5, getSystemInstruction());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ output.writeMessage(6, tools_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -388,6 +564,12 @@ public int getSerializedSize() {
for (int i = 0; i < contents_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, contents_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSystemInstruction());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, tools_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -408,6 +590,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getModel().equals(other.getModel())) return false;
if (!getInstancesList().equals(other.getInstancesList())) return false;
if (!getContentsList().equals(other.getContentsList())) return false;
+ if (hasSystemInstruction() != other.hasSystemInstruction()) return false;
+ if (hasSystemInstruction()) {
+ if (!getSystemInstruction().equals(other.getSystemInstruction())) return false;
+ }
+ if (!getToolsList().equals(other.getToolsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -431,6 +618,14 @@ public int hashCode() {
hash = (37 * hash) + CONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getContentsList().hashCode();
}
+ if (hasSystemInstruction()) {
+ hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSystemInstruction().hashCode();
+ }
+ if (getToolsCount() > 0) {
+ hash = (37 * hash) + TOOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getToolsList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -560,10 +755,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.CountTokensRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getInstancesFieldBuilder();
+ getContentsFieldBuilder();
+ getSystemInstructionFieldBuilder();
+ getToolsFieldBuilder();
+ }
}
@java.lang.Override
@@ -586,6 +793,18 @@ public Builder clear() {
contentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
+ systemInstruction_ = null;
+ if (systemInstructionBuilder_ != null) {
+ systemInstructionBuilder_.dispose();
+ systemInstructionBuilder_ = null;
+ }
+ if (toolsBuilder_ == null) {
+ tools_ = java.util.Collections.emptyList();
+ } else {
+ tools_ = null;
+ toolsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@@ -641,6 +860,15 @@ private void buildPartialRepeatedFields(
} else {
result.contents_ = contentsBuilder_.build();
}
+ if (toolsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ tools_ = java.util.Collections.unmodifiableList(tools_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.tools_ = tools_;
+ } else {
+ result.tools_ = toolsBuilder_.build();
+ }
}
private void buildPartial0(com.google.cloud.aiplatform.v1.CountTokensRequest result) {
@@ -651,6 +879,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.CountTokensRequest res
if (((from_bitField0_ & 0x00000002) != 0)) {
result.model_ = model_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.systemInstruction_ =
+ systemInstructionBuilder_ == null
+ ? systemInstruction_
+ : systemInstructionBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -763,6 +1000,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CountTokensRequest other
}
}
}
+ if (other.hasSystemInstruction()) {
+ mergeSystemInstruction(other.getSystemInstruction());
+ }
+ if (toolsBuilder_ == null) {
+ if (!other.tools_.isEmpty()) {
+ if (tools_.isEmpty()) {
+ tools_ = other.tools_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureToolsIsMutable();
+ tools_.addAll(other.tools_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.tools_.isEmpty()) {
+ if (toolsBuilder_.isEmpty()) {
+ toolsBuilder_.dispose();
+ toolsBuilder_ = null;
+ tools_ = other.tools_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ toolsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getToolsFieldBuilder()
+ : null;
+ } else {
+ toolsBuilder_.addAllMessages(other.tools_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -826,6 +1093,26 @@ public Builder mergeFrom(
}
break;
} // case 34
+ case 42:
+ {
+ input.readMessage(
+ getSystemInstructionFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50:
+ {
+ com.google.cloud.aiplatform.v1.Tool m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.Tool.parser(), extensionRegistry);
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(m);
+ } else {
+ toolsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -976,12 +1263,12 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. The name of the publisher model requested to serve the
+ * Optional. The name of the publisher model requested to serve the
* prediction. Format:
* `projects/{project}/locations/{location}/publishers/*/models/*`
*
*
- * string model = 3 [(.google.api.field_behavior) = REQUIRED];
+ * string model = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The model.
*/
@@ -1000,12 +1287,12 @@ public java.lang.String getModel() {
*
*
*
- * Required. The name of the publisher model requested to serve the
+ * Optional. The name of the publisher model requested to serve the
* prediction. Format:
* `projects/{project}/locations/{location}/publishers/*/models/*`
*
*
- * string model = 3 [(.google.api.field_behavior) = REQUIRED];
+ * string model = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for model.
*/
@@ -1024,12 +1311,12 @@ public com.google.protobuf.ByteString getModelBytes() {
*
*
*
- * Required. The name of the publisher model requested to serve the
+ * Optional. The name of the publisher model requested to serve the
* prediction. Format:
* `projects/{project}/locations/{location}/publishers/*/models/*`
*
*
- * string model = 3 [(.google.api.field_behavior) = REQUIRED];
+ * string model = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The model to set.
* @return This builder for chaining.
@@ -1047,12 +1334,12 @@ public Builder setModel(java.lang.String value) {
*
*
*
- * Required. The name of the publisher model requested to serve the
+ * Optional. The name of the publisher model requested to serve the
* prediction. Format:
* `projects/{project}/locations/{location}/publishers/*/models/*`
*
*
- * string model = 3 [(.google.api.field_behavior) = REQUIRED];
+ * string model = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
@@ -1066,12 +1353,12 @@ public Builder clearModel() {
*
*
*
- * Required. The name of the publisher model requested to serve the
+ * Optional. The name of the publisher model requested to serve the
* prediction. Format:
* `projects/{project}/locations/{location}/publishers/*/models/*`
*
*
- * string model = 3 [(.google.api.field_behavior) = REQUIRED];
+ * string model = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for model to set.
* @return This builder for chaining.
@@ -1107,12 +1394,12 @@ private void ensureInstancesIsMutable() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List getInstancesList() {
@@ -1126,12 +1413,12 @@ public java.util.List getInstancesList() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public int getInstancesCount() {
@@ -1145,12 +1432,12 @@ public int getInstancesCount() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.Value getInstances(int index) {
@@ -1164,12 +1451,12 @@ public com.google.protobuf.Value getInstances(int index) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setInstances(int index, com.google.protobuf.Value value) {
@@ -1189,12 +1476,12 @@ public Builder setInstances(int index, com.google.protobuf.Value value) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setInstances(int index, com.google.protobuf.Value.Builder builderForValue) {
@@ -1211,12 +1498,12 @@ public Builder setInstances(int index, com.google.protobuf.Value.Builder builder
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addInstances(com.google.protobuf.Value value) {
@@ -1236,12 +1523,12 @@ public Builder addInstances(com.google.protobuf.Value value) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addInstances(int index, com.google.protobuf.Value value) {
@@ -1261,12 +1548,12 @@ public Builder addInstances(int index, com.google.protobuf.Value value) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addInstances(com.google.protobuf.Value.Builder builderForValue) {
@@ -1283,12 +1570,12 @@ public Builder addInstances(com.google.protobuf.Value.Builder builderForValue) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addInstances(int index, com.google.protobuf.Value.Builder builderForValue) {
@@ -1305,12 +1592,12 @@ public Builder addInstances(int index, com.google.protobuf.Value.Builder builder
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addAllInstances(java.lang.Iterable extends com.google.protobuf.Value> values) {
@@ -1327,12 +1614,12 @@ public Builder addAllInstances(java.lang.Iterable extends com.google.protobuf.
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearInstances() {
@@ -1349,12 +1636,12 @@ public Builder clearInstances() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder removeInstances(int index) {
@@ -1371,12 +1658,12 @@ public Builder removeInstances(int index) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.Value.Builder getInstancesBuilder(int index) {
@@ -1386,12 +1673,12 @@ public com.google.protobuf.Value.Builder getInstancesBuilder(int index) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index) {
@@ -1405,12 +1692,12 @@ public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List extends com.google.protobuf.ValueOrBuilder>
@@ -1425,12 +1712,12 @@ public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.Value.Builder addInstancesBuilder() {
@@ -1440,12 +1727,12 @@ public com.google.protobuf.Value.Builder addInstancesBuilder() {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.Value.Builder addInstancesBuilder(int index) {
@@ -1456,12 +1743,12 @@ public com.google.protobuf.Value.Builder addInstancesBuilder(int index) {
*
*
*
- * Required. The instances that are the input to token counting call.
+ * Optional. The instances that are the input to token counting call.
* Schema is identical to the prediction schema of the underlying model.
*
*
*
- * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List getInstancesBuilderList() {
@@ -1505,11 +1792,11 @@ private void ensureContentsIsMutable() {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List getContentsList() {
@@ -1523,11 +1810,11 @@ public java.util.List getContentsList()
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public int getContentsCount() {
@@ -1541,11 +1828,11 @@ public int getContentsCount() {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.aiplatform.v1.Content getContents(int index) {
@@ -1559,11 +1846,11 @@ public com.google.cloud.aiplatform.v1.Content getContents(int index) {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setContents(int index, com.google.cloud.aiplatform.v1.Content value) {
@@ -1583,11 +1870,11 @@ public Builder setContents(int index, com.google.cloud.aiplatform.v1.Content val
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setContents(
@@ -1605,11 +1892,11 @@ public Builder setContents(
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addContents(com.google.cloud.aiplatform.v1.Content value) {
@@ -1629,11 +1916,11 @@ public Builder addContents(com.google.cloud.aiplatform.v1.Content value) {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addContents(int index, com.google.cloud.aiplatform.v1.Content value) {
@@ -1653,11 +1940,11 @@ public Builder addContents(int index, com.google.cloud.aiplatform.v1.Content val
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addContents(com.google.cloud.aiplatform.v1.Content.Builder builderForValue) {
@@ -1674,11 +1961,11 @@ public Builder addContents(com.google.cloud.aiplatform.v1.Content.Builder builde
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addContents(
@@ -1696,11 +1983,11 @@ public Builder addContents(
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addAllContents(
@@ -1718,11 +2005,11 @@ public Builder addAllContents(
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearContents() {
@@ -1739,11 +2026,11 @@ public Builder clearContents() {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder removeContents(int index) {
@@ -1760,11 +2047,11 @@ public Builder removeContents(int index) {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.aiplatform.v1.Content.Builder getContentsBuilder(int index) {
@@ -1774,11 +2061,11 @@ public com.google.cloud.aiplatform.v1.Content.Builder getContentsBuilder(int ind
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index) {
@@ -1792,11 +2079,11 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List extends com.google.cloud.aiplatform.v1.ContentOrBuilder>
@@ -1811,11 +2098,11 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder() {
@@ -1826,11 +2113,11 @@ public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder() {
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder(int index) {
@@ -1841,11 +2128,11 @@ public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder(int ind
*
*
*
- * Required. Input content.
+ * Optional. Input content.
*
*
*
- * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List getContentsBuilderList() {
@@ -1869,6 +2156,702 @@ public java.util.List getContent
return contentsBuilder_;
}
+ private com.google.cloud.aiplatform.v1.Content systemInstruction_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.Content,
+ com.google.cloud.aiplatform.v1.Content.Builder,
+ com.google.cloud.aiplatform.v1.ContentOrBuilder>
+ systemInstructionBuilder_;
+ /**
+ *
+ *
+ * |